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 | |
| 35 | #define MAX_KEYLEN 56 |
| 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 | |
| 49 | struct cipher_testvec { |
| 50 | char *key; |
| 51 | char *iv; |
| 52 | char *input; |
| 53 | char *result; |
| 54 | unsigned short tap[MAX_TAP]; |
| 55 | int np; |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 56 | unsigned char also_non_np; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 57 | unsigned char fail; |
| 58 | unsigned char wk; /* weak key flag */ |
| 59 | unsigned char klen; |
| 60 | unsigned short ilen; |
| 61 | unsigned short rlen; |
| 62 | }; |
| 63 | |
| 64 | struct aead_testvec { |
| 65 | char *key; |
| 66 | char *iv; |
| 67 | char *input; |
| 68 | char *assoc; |
| 69 | char *result; |
| 70 | unsigned char tap[MAX_TAP]; |
| 71 | unsigned char atap[MAX_TAP]; |
| 72 | int np; |
| 73 | int anp; |
| 74 | unsigned char fail; |
Jarod Wilson | e44a1b4 | 2009-05-04 19:22:11 +0800 | [diff] [blame] | 75 | unsigned char novrfy; /* ccm dec verification failure expected */ |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 76 | unsigned char wk; /* weak key flag */ |
| 77 | unsigned char klen; |
| 78 | unsigned short ilen; |
| 79 | unsigned short alen; |
| 80 | unsigned short rlen; |
| 81 | }; |
| 82 | |
Jarod Wilson | 7647d6c | 2009-05-04 19:44:50 +0800 | [diff] [blame] | 83 | struct cprng_testvec { |
| 84 | char *key; |
| 85 | char *dt; |
| 86 | char *v; |
| 87 | char *result; |
| 88 | unsigned char klen; |
| 89 | unsigned short dtlen; |
| 90 | unsigned short vlen; |
| 91 | unsigned short rlen; |
| 92 | unsigned short loops; |
| 93 | }; |
| 94 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 95 | static char zeroed_string[48]; |
| 96 | |
| 97 | /* |
| 98 | * MD4 test vectors from RFC1320 |
| 99 | */ |
| 100 | #define MD4_TEST_VECTORS 7 |
| 101 | |
| 102 | static struct hash_testvec md4_tv_template [] = { |
| 103 | { |
| 104 | .plaintext = "", |
| 105 | .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31" |
| 106 | "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0", |
| 107 | }, { |
| 108 | .plaintext = "a", |
| 109 | .psize = 1, |
| 110 | .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46" |
| 111 | "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24", |
| 112 | }, { |
| 113 | .plaintext = "abc", |
| 114 | .psize = 3, |
| 115 | .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52" |
| 116 | "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d", |
| 117 | }, { |
| 118 | .plaintext = "message digest", |
| 119 | .psize = 14, |
| 120 | .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8" |
| 121 | "\x18\x87\x48\x06\xe1\xc7\x01\x4b", |
| 122 | }, { |
| 123 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 124 | .psize = 26, |
| 125 | .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd" |
| 126 | "\xee\xa8\xed\x63\xdf\x41\x2d\xa9", |
| 127 | .np = 2, |
| 128 | .tap = { 13, 13 }, |
| 129 | }, { |
| 130 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 131 | .psize = 62, |
| 132 | .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35" |
| 133 | "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4", |
| 134 | }, { |
| 135 | .plaintext = "123456789012345678901234567890123456789012345678901234567890123" |
| 136 | "45678901234567890", |
| 137 | .psize = 80, |
| 138 | .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19" |
| 139 | "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36", |
| 140 | }, |
| 141 | }; |
| 142 | |
| 143 | /* |
| 144 | * MD5 test vectors from RFC1321 |
| 145 | */ |
| 146 | #define MD5_TEST_VECTORS 7 |
| 147 | |
| 148 | static struct hash_testvec md5_tv_template[] = { |
| 149 | { |
| 150 | .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04" |
| 151 | "\xe9\x80\x09\x98\xec\xf8\x42\x7e", |
| 152 | }, { |
| 153 | .plaintext = "a", |
| 154 | .psize = 1, |
| 155 | .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8" |
| 156 | "\x31\xc3\x99\xe2\x69\x77\x26\x61", |
| 157 | }, { |
| 158 | .plaintext = "abc", |
| 159 | .psize = 3, |
| 160 | .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0" |
| 161 | "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72", |
| 162 | }, { |
| 163 | .plaintext = "message digest", |
| 164 | .psize = 14, |
| 165 | .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d" |
| 166 | "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0", |
| 167 | }, { |
| 168 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 169 | .psize = 26, |
| 170 | .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00" |
| 171 | "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b", |
| 172 | .np = 2, |
| 173 | .tap = {13, 13} |
| 174 | }, { |
| 175 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 176 | .psize = 62, |
| 177 | .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5" |
| 178 | "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f", |
| 179 | }, { |
| 180 | .plaintext = "12345678901234567890123456789012345678901234567890123456789012" |
| 181 | "345678901234567890", |
| 182 | .psize = 80, |
| 183 | .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55" |
| 184 | "\xac\x49\xda\x2e\x21\x07\xb6\x7a", |
| 185 | } |
| 186 | |
| 187 | }; |
| 188 | |
| 189 | /* |
| 190 | * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E) |
| 191 | */ |
| 192 | #define RMD128_TEST_VECTORS 10 |
| 193 | |
| 194 | static struct hash_testvec rmd128_tv_template[] = { |
| 195 | { |
| 196 | .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e" |
| 197 | "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46", |
| 198 | }, { |
| 199 | .plaintext = "a", |
| 200 | .psize = 1, |
| 201 | .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7" |
| 202 | "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33", |
| 203 | }, { |
| 204 | .plaintext = "abc", |
| 205 | .psize = 3, |
| 206 | .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba" |
| 207 | "\x84\x63\x6b\x0f\x69\x14\x4c\x77", |
| 208 | }, { |
| 209 | .plaintext = "message digest", |
| 210 | .psize = 14, |
| 211 | .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62" |
| 212 | "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8", |
| 213 | }, { |
| 214 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 215 | .psize = 26, |
| 216 | .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5" |
| 217 | "\x10\x71\x49\x22\xb3\x71\x83\x4e", |
| 218 | }, { |
| 219 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 220 | "fghijklmnopqrstuvwxyz0123456789", |
| 221 | .psize = 62, |
| 222 | .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f" |
| 223 | "\xae\xa4\x62\x4c\x60\xc5\xc7\x02", |
| 224 | }, { |
| 225 | .plaintext = "1234567890123456789012345678901234567890" |
| 226 | "1234567890123456789012345678901234567890", |
| 227 | .psize = 80, |
| 228 | .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb" |
| 229 | "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3", |
| 230 | }, { |
| 231 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 232 | "hijkijkljklmklmnlmnomnopnopq", |
| 233 | .psize = 56, |
| 234 | .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d" |
| 235 | "\xdc\x22\xe8\x8b\x49\x13\x3a\x06", |
| 236 | .np = 2, |
| 237 | .tap = { 28, 28 }, |
| 238 | }, { |
| 239 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 240 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 241 | "lmnopqrsmnopqrstnopqrstu", |
| 242 | .psize = 112, |
| 243 | .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b" |
| 244 | "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46", |
| 245 | }, { |
| 246 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 247 | .psize = 32, |
| 248 | .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d" |
| 249 | "\xe1\x93\xff\x46\xdb\xac\xcf\xd4", |
| 250 | } |
| 251 | }; |
| 252 | |
| 253 | /* |
| 254 | * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E) |
| 255 | */ |
| 256 | #define RMD160_TEST_VECTORS 10 |
| 257 | |
| 258 | static struct hash_testvec rmd160_tv_template[] = { |
| 259 | { |
| 260 | .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28" |
| 261 | "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31", |
| 262 | }, { |
| 263 | .plaintext = "a", |
| 264 | .psize = 1, |
| 265 | .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae" |
| 266 | "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe", |
| 267 | }, { |
| 268 | .plaintext = "abc", |
| 269 | .psize = 3, |
| 270 | .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04" |
| 271 | "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc", |
| 272 | }, { |
| 273 | .plaintext = "message digest", |
| 274 | .psize = 14, |
| 275 | .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8" |
| 276 | "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36", |
| 277 | }, { |
| 278 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 279 | .psize = 26, |
| 280 | .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb" |
| 281 | "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc", |
| 282 | }, { |
| 283 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 284 | "fghijklmnopqrstuvwxyz0123456789", |
| 285 | .psize = 62, |
| 286 | .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed" |
| 287 | "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89", |
| 288 | }, { |
| 289 | .plaintext = "1234567890123456789012345678901234567890" |
| 290 | "1234567890123456789012345678901234567890", |
| 291 | .psize = 80, |
| 292 | .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb" |
| 293 | "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb", |
| 294 | }, { |
| 295 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 296 | "hijkijkljklmklmnlmnomnopnopq", |
| 297 | .psize = 56, |
| 298 | .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05" |
| 299 | "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b", |
| 300 | .np = 2, |
| 301 | .tap = { 28, 28 }, |
| 302 | }, { |
| 303 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 304 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 305 | "lmnopqrsmnopqrstnopqrstu", |
| 306 | .psize = 112, |
| 307 | .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91" |
| 308 | "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45", |
| 309 | }, { |
| 310 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 311 | .psize = 32, |
| 312 | .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d" |
| 313 | "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f", |
| 314 | } |
| 315 | }; |
| 316 | |
| 317 | /* |
| 318 | * RIPEMD-256 test vectors |
| 319 | */ |
| 320 | #define RMD256_TEST_VECTORS 8 |
| 321 | |
| 322 | static struct hash_testvec rmd256_tv_template[] = { |
| 323 | { |
| 324 | .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18" |
| 325 | "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a" |
| 326 | "\x2d\x97\x74\xfb\x1e\x5d\x02\x63" |
| 327 | "\x80\xae\x01\x68\xe3\xc5\x52\x2d", |
| 328 | }, { |
| 329 | .plaintext = "a", |
| 330 | .psize = 1, |
| 331 | .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9" |
| 332 | "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c" |
| 333 | "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf" |
| 334 | "\xcd\x88\x3a\x91\x34\x69\x29\x25", |
| 335 | }, { |
| 336 | .plaintext = "abc", |
| 337 | .psize = 3, |
| 338 | .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb" |
| 339 | "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1" |
| 340 | "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e" |
| 341 | "\x1e\x42\xd2\xe9\x75\x45\x9b\x65", |
| 342 | }, { |
| 343 | .plaintext = "message digest", |
| 344 | .psize = 14, |
| 345 | .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a" |
| 346 | "\x51\x4d\x5c\x91\x4c\x39\x2c\x90" |
| 347 | "\x18\xc7\xc4\x6b\xc1\x44\x65\x55" |
| 348 | "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e", |
| 349 | }, { |
| 350 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 351 | .psize = 26, |
| 352 | .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16" |
| 353 | "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc" |
| 354 | "\x78\x96\x11\x8a\x51\x97\x96\x87" |
| 355 | "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33", |
| 356 | }, { |
| 357 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 358 | "fghijklmnopqrstuvwxyz0123456789", |
| 359 | .psize = 62, |
| 360 | .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20" |
| 361 | "\xb8\x44\x24\xae\x93\x1c\xbb\x1f" |
| 362 | "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1" |
| 363 | "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8", |
| 364 | }, { |
| 365 | .plaintext = "1234567890123456789012345678901234567890" |
| 366 | "1234567890123456789012345678901234567890", |
| 367 | .psize = 80, |
| 368 | .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa" |
| 369 | "\xf9\x13\x68\xc0\x6a\x62\x75\xb5" |
| 370 | "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed" |
| 371 | "\xfd\x67\x78\xdf\x89\xa8\x90\xdd", |
| 372 | }, { |
| 373 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 374 | "hijkijkljklmklmnlmnomnopnopq", |
| 375 | .psize = 56, |
| 376 | .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8" |
| 377 | "\xc8\xd9\x12\x85\x73\xe7\xa9\x80" |
| 378 | "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e" |
| 379 | "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f", |
| 380 | .np = 2, |
| 381 | .tap = { 28, 28 }, |
| 382 | } |
| 383 | }; |
| 384 | |
| 385 | /* |
| 386 | * RIPEMD-320 test vectors |
| 387 | */ |
| 388 | #define RMD320_TEST_VECTORS 8 |
| 389 | |
| 390 | static struct hash_testvec rmd320_tv_template[] = { |
| 391 | { |
| 392 | .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1" |
| 393 | "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25" |
| 394 | "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e" |
| 395 | "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8", |
| 396 | }, { |
| 397 | .plaintext = "a", |
| 398 | .psize = 1, |
| 399 | .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5" |
| 400 | "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57" |
| 401 | "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54" |
| 402 | "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d", |
| 403 | }, { |
| 404 | .plaintext = "abc", |
| 405 | .psize = 3, |
| 406 | .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d" |
| 407 | "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08" |
| 408 | "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74" |
| 409 | "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d", |
| 410 | }, { |
| 411 | .plaintext = "message digest", |
| 412 | .psize = 14, |
| 413 | .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68" |
| 414 | "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa" |
| 415 | "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d" |
| 416 | "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97", |
| 417 | }, { |
| 418 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 419 | .psize = 26, |
| 420 | .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93" |
| 421 | "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4" |
| 422 | "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed" |
| 423 | "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09", |
| 424 | }, { |
| 425 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 426 | "fghijklmnopqrstuvwxyz0123456789", |
| 427 | .psize = 62, |
| 428 | .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2" |
| 429 | "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c" |
| 430 | "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9" |
| 431 | "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4", |
| 432 | }, { |
| 433 | .plaintext = "1234567890123456789012345678901234567890" |
| 434 | "1234567890123456789012345678901234567890", |
| 435 | .psize = 80, |
| 436 | .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6" |
| 437 | "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41" |
| 438 | "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f" |
| 439 | "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42", |
| 440 | }, { |
| 441 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 442 | "hijkijkljklmklmnlmnomnopnopq", |
| 443 | .psize = 56, |
| 444 | .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4" |
| 445 | "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59" |
| 446 | "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b" |
| 447 | "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac", |
| 448 | .np = 2, |
| 449 | .tap = { 28, 28 }, |
| 450 | } |
| 451 | }; |
| 452 | |
Herbert Xu | 68411521 | 2013-09-07 12:56:26 +1000 | [diff] [blame] | 453 | #define CRCT10DIF_TEST_VECTORS 3 |
| 454 | static struct hash_testvec crct10dif_tv_template[] = { |
| 455 | { |
| 456 | .plaintext = "abc", |
| 457 | .psize = 3, |
| 458 | #ifdef __LITTLE_ENDIAN |
| 459 | .digest = "\x3b\x44", |
| 460 | #else |
| 461 | .digest = "\x44\x3b", |
| 462 | #endif |
| 463 | }, { |
| 464 | .plaintext = "1234567890123456789012345678901234567890" |
| 465 | "123456789012345678901234567890123456789", |
| 466 | .psize = 79, |
| 467 | #ifdef __LITTLE_ENDIAN |
| 468 | .digest = "\x70\x4b", |
| 469 | #else |
| 470 | .digest = "\x4b\x70", |
| 471 | #endif |
| 472 | }, { |
| 473 | .plaintext = |
| 474 | "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd", |
| 475 | .psize = 56, |
| 476 | #ifdef __LITTLE_ENDIAN |
| 477 | .digest = "\xe3\x9c", |
| 478 | #else |
| 479 | .digest = "\x9c\xe3", |
| 480 | #endif |
| 481 | .np = 2, |
| 482 | .tap = { 28, 28 } |
| 483 | } |
| 484 | }; |
| 485 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 486 | /* |
| 487 | * SHA1 test vectors from from FIPS PUB 180-1 |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 488 | * Long vector from CAVS 5.0 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 489 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 490 | #define SHA1_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 491 | |
| 492 | static struct hash_testvec sha1_tv_template[] = { |
| 493 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 494 | .plaintext = "", |
| 495 | .psize = 0, |
| 496 | .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55" |
| 497 | "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09", |
| 498 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 499 | .plaintext = "abc", |
| 500 | .psize = 3, |
| 501 | .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e" |
| 502 | "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d", |
| 503 | }, { |
| 504 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 505 | .psize = 56, |
| 506 | .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae" |
| 507 | "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1", |
| 508 | .np = 2, |
| 509 | .tap = { 28, 28 } |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 510 | }, { |
| 511 | .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06" |
| 512 | "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44" |
| 513 | "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f" |
| 514 | "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5" |
| 515 | "\x73\x6a\x10\x6e\x92\xe1\x71\x39" |
| 516 | "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3" |
| 517 | "\xfb\x95\x46\xab\x42\x96\xfa\x9f" |
| 518 | "\x72\x28\x26\xc0\x66\x86\x9e\xda" |
| 519 | "\xcd\x73\xb2\x54\x80\x35\x18\x58" |
| 520 | "\x13\xe2\x26\x34\xa9\xda\x44\x00" |
| 521 | "\x0d\x95\xa2\x81\xff\x9f\x26\x4e" |
| 522 | "\xcc\xe0\xa9\x31\x22\x21\x62\xd0" |
| 523 | "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa" |
| 524 | "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13" |
| 525 | "\xae\x29\x81\x0f\xd7\x94\xca\xd5" |
| 526 | "\xdf\xaf\x29\xec\x43\xcb\x38\xd1" |
| 527 | "\x98\xfe\x4a\xe1\xda\x23\x59\x78" |
| 528 | "\x02\x21\x40\x5b\xd6\x71\x2a\x53" |
| 529 | "\x05\xda\x4b\x1b\x73\x7f\xce\x7c" |
| 530 | "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23" |
| 531 | "\x5a\x90\x11", |
| 532 | .psize = 163, |
| 533 | .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20" |
| 534 | "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17", |
| 535 | .np = 4, |
| 536 | .tap = { 63, 64, 31, 5 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 537 | }, { |
| 538 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 539 | .psize = 64, |
| 540 | .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82" |
| 541 | "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 542 | }, { |
| 543 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 544 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 545 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 546 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 547 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 548 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 549 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 550 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 551 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 552 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 553 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 554 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 555 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 556 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 557 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 558 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 559 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 560 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 561 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 562 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 563 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 564 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 565 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 566 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 567 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 568 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 569 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 570 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 571 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 572 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 573 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 574 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 575 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 576 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 577 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 578 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 579 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 580 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 581 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 582 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 583 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 584 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 585 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 586 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 587 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 588 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 589 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 590 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 591 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 592 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 593 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 594 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 595 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 596 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 597 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 598 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 599 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 600 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 601 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 602 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 603 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 604 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 605 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 606 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 607 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 608 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 609 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 610 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 611 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 612 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 613 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 614 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 615 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 616 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 617 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 618 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 619 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 620 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 621 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 622 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 623 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 624 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 625 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 626 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 627 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 628 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 629 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 630 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 631 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 632 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 633 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 634 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 635 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 636 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 637 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 638 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 639 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 640 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 641 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 642 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 643 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 644 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 645 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 646 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 647 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 648 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 649 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 650 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 651 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 652 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 653 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 654 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 655 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 656 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 657 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 658 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 659 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 660 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 661 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 662 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 663 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 664 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 665 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 666 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 667 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 668 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 669 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 670 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 671 | .psize = 1023, |
| 672 | .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4" |
| 673 | "\x55\x73\x4a\x81\x99\xe4\x47\x2a" |
| 674 | "\x30\xd6\xc9\x85", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 675 | } |
| 676 | }; |
| 677 | |
| 678 | |
| 679 | /* |
| 680 | * SHA224 test vectors from from FIPS PUB 180-2 |
| 681 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 682 | #define SHA224_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 683 | |
| 684 | static struct hash_testvec sha224_tv_template[] = { |
| 685 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 686 | .plaintext = "", |
| 687 | .psize = 0, |
| 688 | .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9" |
| 689 | "\x47\x61\x02\xbb\x28\x82\x34\xc4" |
| 690 | "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a" |
| 691 | "\xc5\xb3\xe4\x2f", |
| 692 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 693 | .plaintext = "abc", |
| 694 | .psize = 3, |
| 695 | .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22" |
| 696 | "\x86\x42\xA4\x77\xBD\xA2\x55\xB3" |
| 697 | "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7" |
| 698 | "\xE3\x6C\x9D\xA7", |
| 699 | }, { |
| 700 | .plaintext = |
| 701 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 702 | .psize = 56, |
| 703 | .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC" |
| 704 | "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50" |
| 705 | "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19" |
| 706 | "\x52\x52\x25\x25", |
| 707 | .np = 2, |
| 708 | .tap = { 28, 28 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 709 | }, { |
| 710 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 711 | .psize = 64, |
| 712 | .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01" |
| 713 | "\x42\xfd\x10\x92\xaa\x4e\x04\x08" |
| 714 | "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c" |
| 715 | "\xef\x3b\xcb\x0e", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 716 | }, { |
| 717 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 718 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 719 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 720 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 721 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 722 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 723 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 724 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 725 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 726 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 727 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 728 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 729 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 730 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 731 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 732 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 733 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 734 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 735 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 736 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 737 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 738 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 739 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 740 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 741 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 742 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 743 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 744 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 745 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 746 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 747 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 748 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 749 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 750 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 751 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 752 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 753 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 754 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 755 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 756 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 757 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 758 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 759 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 760 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 761 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 762 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 763 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 764 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 765 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 766 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 767 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 768 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 769 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 770 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 771 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 772 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 773 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 774 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 775 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 776 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 777 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 778 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 779 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 780 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 781 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 782 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 783 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 784 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 785 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 786 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 787 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 788 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 789 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 790 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 791 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 792 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 793 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 794 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 795 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 796 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 797 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 798 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 799 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 800 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 801 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 802 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 803 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 804 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 805 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 806 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 807 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 808 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 809 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 810 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 811 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 812 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 813 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 814 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 815 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 816 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 817 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 818 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 819 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 820 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 821 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 822 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 823 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 824 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 825 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 826 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 827 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 828 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 829 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 830 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 831 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 832 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 833 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 834 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 835 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 836 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 837 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 838 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 839 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 840 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 841 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 842 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 843 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 844 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 845 | .psize = 1023, |
| 846 | .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c" |
| 847 | "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91" |
| 848 | "\x20\x48\xa4\x28\xff\x55\xb1\xd3" |
| 849 | "\xe6\xf9\x4f\xcc", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 850 | } |
| 851 | }; |
| 852 | |
| 853 | /* |
| 854 | * SHA256 test vectors from from NIST |
| 855 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 856 | #define SHA256_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 857 | |
| 858 | static struct hash_testvec sha256_tv_template[] = { |
| 859 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 860 | .plaintext = "", |
| 861 | .psize = 0, |
| 862 | .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14" |
| 863 | "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24" |
| 864 | "\x27\xae\x41\xe4\x64\x9b\x93\x4c" |
| 865 | "\xa4\x95\x99\x1b\x78\x52\xb8\x55", |
| 866 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 867 | .plaintext = "abc", |
| 868 | .psize = 3, |
| 869 | .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea" |
| 870 | "\x41\x41\x40\xde\x5d\xae\x22\x23" |
| 871 | "\xb0\x03\x61\xa3\x96\x17\x7a\x9c" |
| 872 | "\xb4\x10\xff\x61\xf2\x00\x15\xad", |
| 873 | }, { |
| 874 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 875 | .psize = 56, |
| 876 | .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8" |
| 877 | "\xe5\xc0\x26\x93\x0c\x3e\x60\x39" |
| 878 | "\xa3\x3c\xe4\x59\x64\xff\x21\x67" |
| 879 | "\xf6\xec\xed\xd4\x19\xdb\x06\xc1", |
| 880 | .np = 2, |
| 881 | .tap = { 28, 28 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 882 | }, { |
| 883 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 884 | .psize = 64, |
| 885 | .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4" |
| 886 | "\x2c\x32\x29\x32\x19\xbb\xfb\xfa" |
| 887 | "\xd6\xff\x94\xa3\x72\x91\x85\x66" |
| 888 | "\x3b\xa7\x87\x77\x58\xa3\x40\x3a", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 889 | }, { |
| 890 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 891 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 892 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 893 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 894 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 895 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 896 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 897 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 898 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 899 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 900 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 901 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 902 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 903 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 904 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 905 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 906 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 907 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 908 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 909 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 910 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 911 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 912 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 913 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 914 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 915 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 916 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 917 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 918 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 919 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 920 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 921 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 922 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 923 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 924 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 925 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 926 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 927 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 928 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 929 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 930 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 931 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 932 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 933 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 934 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 935 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 936 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 937 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 938 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 939 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 940 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 941 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 942 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 943 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 944 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 945 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 946 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 947 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 948 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 949 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 950 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 951 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 952 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 953 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 954 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 955 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 956 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 957 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 958 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 959 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 960 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 961 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 962 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 963 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 964 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 965 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 966 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 967 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 968 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 969 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 970 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 971 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 972 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 973 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 974 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 975 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 976 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 977 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 978 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 979 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 980 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 981 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 982 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 983 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 984 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 985 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 986 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 987 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 988 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 989 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 990 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 991 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 992 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 993 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 994 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 995 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 996 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 997 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 998 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 999 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1000 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1001 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1002 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1003 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1004 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1005 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1006 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1007 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1008 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1009 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1010 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1011 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1012 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1013 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1014 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1015 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1016 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1017 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1018 | .psize = 1023, |
| 1019 | .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a" |
| 1020 | "\x32\x32\x17\xcc\xd4\x6a\x71\xa9" |
| 1021 | "\xf3\xed\x50\x10\x64\x8e\x06\xbe" |
| 1022 | "\x9b\x4a\xa6\xbb\x05\x89\x59\x51", |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 1023 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1024 | }; |
| 1025 | |
| 1026 | /* |
| 1027 | * SHA384 test vectors from from NIST and kerneli |
| 1028 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 1029 | #define SHA384_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1030 | |
| 1031 | static struct hash_testvec sha384_tv_template[] = { |
| 1032 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 1033 | .plaintext = "", |
| 1034 | .psize = 0, |
| 1035 | .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38" |
| 1036 | "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a" |
| 1037 | "\x21\xfd\xb7\x11\x14\xbe\x07\x43" |
| 1038 | "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda" |
| 1039 | "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb" |
| 1040 | "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b", |
| 1041 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1042 | .plaintext= "abc", |
| 1043 | .psize = 3, |
| 1044 | .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b" |
| 1045 | "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07" |
| 1046 | "\x27\x2c\x32\xab\x0e\xde\xd1\x63" |
| 1047 | "\x1a\x8b\x60\x5a\x43\xff\x5b\xed" |
| 1048 | "\x80\x86\x07\x2b\xa1\xe7\xcc\x23" |
| 1049 | "\x58\xba\xec\xa1\x34\xc8\x25\xa7", |
| 1050 | }, { |
| 1051 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1052 | .psize = 56, |
| 1053 | .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39" |
| 1054 | "\x37\x07\xa6\x5b\x1b\x47\x09\x39" |
| 1055 | "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab" |
| 1056 | "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6" |
| 1057 | "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f" |
| 1058 | "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b", |
| 1059 | }, { |
| 1060 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 1061 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 1062 | .psize = 112, |
| 1063 | .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8" |
| 1064 | "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47" |
| 1065 | "\x53\x11\x1b\x17\x3b\x3b\x05\xd2" |
| 1066 | "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12" |
| 1067 | "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9" |
| 1068 | "\x66\xc3\xe9\xfa\x91\x74\x60\x39", |
| 1069 | }, { |
| 1070 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 1071 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 1072 | .psize = 104, |
| 1073 | .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb" |
| 1074 | "\xbd\x7e\x2c\x28\x62\xba\x29\x0a" |
| 1075 | "\xd3\x01\x0e\x49\x78\xc1\x98\xdc" |
| 1076 | "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a" |
| 1077 | "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a" |
| 1078 | "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4", |
| 1079 | .np = 4, |
| 1080 | .tap = { 26, 26, 26, 26 } |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 1081 | }, { |
| 1082 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1083 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1084 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1085 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1086 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1087 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1088 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1089 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1090 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1091 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1092 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1093 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1094 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1095 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1096 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1097 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1098 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1099 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1100 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1101 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1102 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1103 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1104 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1105 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1106 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1107 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1108 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1109 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1110 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1111 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1112 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1113 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1114 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1115 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1116 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1117 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1118 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1119 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1120 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1121 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1122 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1123 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1124 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1125 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1126 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1127 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1128 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1129 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1130 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1131 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1132 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1133 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1134 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1135 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1136 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1137 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1138 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1139 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1140 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1141 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1142 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1143 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1144 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1145 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1146 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1147 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1148 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1149 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1150 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1151 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1152 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1153 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1154 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1155 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1156 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1157 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1158 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1159 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1160 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1161 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1162 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1163 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1164 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1165 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1166 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1167 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1168 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1169 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1170 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1171 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1172 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1173 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1174 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1175 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1176 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1177 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1178 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1179 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1180 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1181 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1182 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1183 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1184 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1185 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1186 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1187 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1188 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1189 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1190 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1191 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1192 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1193 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1194 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1195 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1196 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1197 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1198 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1199 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1200 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1201 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1202 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1203 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1204 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1205 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1206 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1207 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1208 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1209 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1210 | .psize = 1023, |
| 1211 | .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15" |
| 1212 | "\xb8\xff\x97\x9c\xf5\x13\x4f\x31" |
| 1213 | "\xde\x67\xf7\x24\x73\xcd\x70\x1c" |
| 1214 | "\x03\x4a\xba\x8a\x87\x49\xfe\xdc" |
| 1215 | "\x75\x29\x62\x83\xae\x3f\x17\xab" |
| 1216 | "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca", |
| 1217 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1218 | }; |
| 1219 | |
| 1220 | /* |
| 1221 | * SHA512 test vectors from from NIST and kerneli |
| 1222 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 1223 | #define SHA512_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1224 | |
| 1225 | static struct hash_testvec sha512_tv_template[] = { |
| 1226 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 1227 | .plaintext = "", |
| 1228 | .psize = 0, |
| 1229 | .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd" |
| 1230 | "\xf1\x54\x28\x50\xd6\x6d\x80\x07" |
| 1231 | "\xd6\x20\xe4\x05\x0b\x57\x15\xdc" |
| 1232 | "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce" |
| 1233 | "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0" |
| 1234 | "\xff\x83\x18\xd2\x87\x7e\xec\x2f" |
| 1235 | "\x63\xb9\x31\xbd\x47\x41\x7a\x81" |
| 1236 | "\xa5\x38\x32\x7a\xf9\x27\xda\x3e", |
| 1237 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1238 | .plaintext = "abc", |
| 1239 | .psize = 3, |
| 1240 | .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba" |
| 1241 | "\xcc\x41\x73\x49\xae\x20\x41\x31" |
| 1242 | "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2" |
| 1243 | "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a" |
| 1244 | "\x21\x92\x99\x2a\x27\x4f\xc1\xa8" |
| 1245 | "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd" |
| 1246 | "\x45\x4d\x44\x23\x64\x3c\xe8\x0e" |
| 1247 | "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f", |
| 1248 | }, { |
| 1249 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1250 | .psize = 56, |
| 1251 | .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a" |
| 1252 | "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16" |
| 1253 | "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8" |
| 1254 | "\x27\x9b\xe3\x31\xa7\x03\xc3\x35" |
| 1255 | "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9" |
| 1256 | "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0" |
| 1257 | "\x31\xad\x85\xc7\xa7\x1d\xd7\x03" |
| 1258 | "\x54\xec\x63\x12\x38\xca\x34\x45", |
| 1259 | }, { |
| 1260 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 1261 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 1262 | .psize = 112, |
| 1263 | .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda" |
| 1264 | "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f" |
| 1265 | "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1" |
| 1266 | "\x72\x99\xae\xad\xb6\x88\x90\x18" |
| 1267 | "\x50\x1d\x28\x9e\x49\x00\xf7\xe4" |
| 1268 | "\x33\x1b\x99\xde\xc4\xb5\x43\x3a" |
| 1269 | "\xc7\xd3\x29\xee\xb6\xdd\x26\x54" |
| 1270 | "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09", |
| 1271 | }, { |
| 1272 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 1273 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 1274 | .psize = 104, |
| 1275 | .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11" |
| 1276 | "\x33\xb6\x89\x81\x21\xf1\xcf\x3d" |
| 1277 | "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c" |
| 1278 | "\x52\x57\xcf\x06\x99\x11\xf7\x5d" |
| 1279 | "\x8f\x58\x31\xb5\x6e\xbf\xda\x67" |
| 1280 | "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe" |
| 1281 | "\x2b\x28\x70\xf7\x42\xa5\x80\xd8" |
| 1282 | "\xed\xb4\x19\x87\x23\x28\x50\xc9", |
| 1283 | .np = 4, |
| 1284 | .tap = { 26, 26, 26, 26 } |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame^] | 1285 | }, { |
| 1286 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1287 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1288 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1289 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1290 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1291 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1292 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1293 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1294 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1295 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1296 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1297 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1298 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1299 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1300 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1301 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1302 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1303 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1304 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1305 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1306 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1307 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1308 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1309 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1310 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1311 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1312 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1313 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1314 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1315 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1316 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1317 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1318 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1319 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1320 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1321 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1322 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1323 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1324 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1325 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1326 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1327 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1328 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1329 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1330 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1331 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1332 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1333 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1334 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1335 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1336 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1337 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1338 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1339 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1340 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1341 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1342 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1343 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1344 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1345 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1346 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1347 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1348 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1349 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1350 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1351 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1352 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1353 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1354 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1355 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1356 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1357 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1358 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1359 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1360 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1361 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1362 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1363 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1364 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1365 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1366 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1367 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1368 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1369 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1370 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1371 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1372 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1373 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1374 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1375 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1376 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1377 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1378 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1379 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1380 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1381 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1382 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1383 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1384 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1385 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1386 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1387 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1388 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1389 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1390 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1391 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1392 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1393 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1394 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1395 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1396 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1397 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1398 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1399 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1400 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1401 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1402 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1403 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1404 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1405 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1406 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1407 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1408 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1409 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1410 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1411 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1412 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1413 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1414 | .psize = 1023, |
| 1415 | .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa" |
| 1416 | "\x13\x39\xf3\x01\x7a\xfa\xe5\x41" |
| 1417 | "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0" |
| 1418 | "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb" |
| 1419 | "\x1c\x19\xde\xe2\x75\xdc\x34\x64" |
| 1420 | "\x5f\x35\x9c\x61\x2f\x10\xf9\xec" |
| 1421 | "\x59\xca\x9d\xcc\x25\x0c\x43\xba" |
| 1422 | "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee", |
| 1423 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1424 | }; |
| 1425 | |
| 1426 | |
| 1427 | /* |
| 1428 | * WHIRLPOOL test vectors from Whirlpool package |
| 1429 | * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE |
| 1430 | * submission |
| 1431 | */ |
| 1432 | #define WP512_TEST_VECTORS 8 |
| 1433 | |
| 1434 | static struct hash_testvec wp512_tv_template[] = { |
| 1435 | { |
| 1436 | .plaintext = "", |
| 1437 | .psize = 0, |
| 1438 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 1439 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 1440 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 1441 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 1442 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 1443 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57" |
| 1444 | "\xEA\x89\x64\xE5\x9B\x63\xD9\x37" |
| 1445 | "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3", |
| 1446 | |
| 1447 | |
| 1448 | }, { |
| 1449 | .plaintext = "a", |
| 1450 | .psize = 1, |
| 1451 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 1452 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 1453 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 1454 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 1455 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 1456 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59" |
| 1457 | "\x1A\x92\x20\x0D\x56\x01\x95\xE5" |
| 1458 | "\x3B\x47\x85\x84\xFD\xAE\x23\x1A", |
| 1459 | }, { |
| 1460 | .plaintext = "abc", |
| 1461 | .psize = 3, |
| 1462 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 1463 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 1464 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 1465 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 1466 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 1467 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6" |
| 1468 | "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82" |
| 1469 | "\xD2\x25\x29\x20\x76\xD4\xEE\xF5", |
| 1470 | }, { |
| 1471 | .plaintext = "message digest", |
| 1472 | .psize = 14, |
| 1473 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 1474 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 1475 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 1476 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 1477 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 1478 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6" |
| 1479 | "\x92\xED\x92\x00\x52\x83\x8F\x33" |
| 1480 | "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E", |
| 1481 | }, { |
| 1482 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1483 | .psize = 26, |
| 1484 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 1485 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 1486 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 1487 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 1488 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 1489 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6" |
| 1490 | "\xF6\x8F\x67\x3E\x72\x07\x86\x5D" |
| 1491 | "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B", |
| 1492 | }, { |
| 1493 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 1494 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 1495 | .psize = 62, |
| 1496 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 1497 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 1498 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 1499 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 1500 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 1501 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6" |
| 1502 | "\x55\x17\xCC\x87\x9D\x7B\x96\x21" |
| 1503 | "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67", |
| 1504 | }, { |
| 1505 | .plaintext = "1234567890123456789012345678901234567890" |
| 1506 | "1234567890123456789012345678901234567890", |
| 1507 | .psize = 80, |
| 1508 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 1509 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 1510 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 1511 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 1512 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 1513 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A" |
| 1514 | "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B" |
| 1515 | "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B", |
| 1516 | }, { |
| 1517 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1518 | .psize = 32, |
| 1519 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 1520 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 1521 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 1522 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 1523 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 1524 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56" |
| 1525 | "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6" |
| 1526 | "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD", |
| 1527 | }, |
| 1528 | }; |
| 1529 | |
| 1530 | #define WP384_TEST_VECTORS 8 |
| 1531 | |
| 1532 | static struct hash_testvec wp384_tv_template[] = { |
| 1533 | { |
| 1534 | .plaintext = "", |
| 1535 | .psize = 0, |
| 1536 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 1537 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 1538 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 1539 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 1540 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 1541 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57", |
| 1542 | |
| 1543 | |
| 1544 | }, { |
| 1545 | .plaintext = "a", |
| 1546 | .psize = 1, |
| 1547 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 1548 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 1549 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 1550 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 1551 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 1552 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59", |
| 1553 | }, { |
| 1554 | .plaintext = "abc", |
| 1555 | .psize = 3, |
| 1556 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 1557 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 1558 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 1559 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 1560 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 1561 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6", |
| 1562 | }, { |
| 1563 | .plaintext = "message digest", |
| 1564 | .psize = 14, |
| 1565 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 1566 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 1567 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 1568 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 1569 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 1570 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6", |
| 1571 | }, { |
| 1572 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1573 | .psize = 26, |
| 1574 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 1575 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 1576 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 1577 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 1578 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 1579 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6", |
| 1580 | }, { |
| 1581 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 1582 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 1583 | .psize = 62, |
| 1584 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 1585 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 1586 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 1587 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 1588 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 1589 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6", |
| 1590 | }, { |
| 1591 | .plaintext = "1234567890123456789012345678901234567890" |
| 1592 | "1234567890123456789012345678901234567890", |
| 1593 | .psize = 80, |
| 1594 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 1595 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 1596 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 1597 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 1598 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 1599 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A", |
| 1600 | }, { |
| 1601 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1602 | .psize = 32, |
| 1603 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 1604 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 1605 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 1606 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 1607 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 1608 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56", |
| 1609 | }, |
| 1610 | }; |
| 1611 | |
| 1612 | #define WP256_TEST_VECTORS 8 |
| 1613 | |
| 1614 | static struct hash_testvec wp256_tv_template[] = { |
| 1615 | { |
| 1616 | .plaintext = "", |
| 1617 | .psize = 0, |
| 1618 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 1619 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 1620 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 1621 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7", |
| 1622 | |
| 1623 | |
| 1624 | }, { |
| 1625 | .plaintext = "a", |
| 1626 | .psize = 1, |
| 1627 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 1628 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 1629 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 1630 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42", |
| 1631 | }, { |
| 1632 | .plaintext = "abc", |
| 1633 | .psize = 3, |
| 1634 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 1635 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 1636 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 1637 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C", |
| 1638 | }, { |
| 1639 | .plaintext = "message digest", |
| 1640 | .psize = 14, |
| 1641 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 1642 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 1643 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 1644 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B", |
| 1645 | }, { |
| 1646 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1647 | .psize = 26, |
| 1648 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 1649 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 1650 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 1651 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B", |
| 1652 | }, { |
| 1653 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 1654 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 1655 | .psize = 62, |
| 1656 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 1657 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 1658 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 1659 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E", |
| 1660 | }, { |
| 1661 | .plaintext = "1234567890123456789012345678901234567890" |
| 1662 | "1234567890123456789012345678901234567890", |
| 1663 | .psize = 80, |
| 1664 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 1665 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 1666 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 1667 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29", |
| 1668 | }, { |
| 1669 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1670 | .psize = 32, |
| 1671 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 1672 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 1673 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 1674 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69", |
| 1675 | }, |
| 1676 | }; |
| 1677 | |
| 1678 | /* |
| 1679 | * TIGER test vectors from Tiger website |
| 1680 | */ |
| 1681 | #define TGR192_TEST_VECTORS 6 |
| 1682 | |
| 1683 | static struct hash_testvec tgr192_tv_template[] = { |
| 1684 | { |
| 1685 | .plaintext = "", |
| 1686 | .psize = 0, |
| 1687 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 1688 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 1689 | "\xf3\x73\xde\x2d\x49\x58\x4e\x7a", |
| 1690 | }, { |
| 1691 | .plaintext = "abc", |
| 1692 | .psize = 3, |
| 1693 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 1694 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 1695 | "\x93\x5f\x7b\x95\x1c\x13\x29\x51", |
| 1696 | }, { |
| 1697 | .plaintext = "Tiger", |
| 1698 | .psize = 5, |
| 1699 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 1700 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 1701 | "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf", |
| 1702 | }, { |
| 1703 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1704 | .psize = 64, |
| 1705 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 1706 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 1707 | "\xb5\x86\x44\x50\x34\xa5\xa3\x86", |
| 1708 | }, { |
| 1709 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 1710 | .psize = 64, |
| 1711 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 1712 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 1713 | "\x57\x89\x65\x65\x97\x5f\x91\x97", |
| 1714 | }, { |
| 1715 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 1716 | "by Ross Anderson and Eli Biham, " |
| 1717 | "proceedings of Fast Software Encryption 3, " |
| 1718 | "Cambridge, 1996.", |
| 1719 | .psize = 125, |
| 1720 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 1721 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 1722 | "\xdd\x68\x15\x1d\x50\x39\x74\xfc", |
| 1723 | }, |
| 1724 | }; |
| 1725 | |
| 1726 | #define TGR160_TEST_VECTORS 6 |
| 1727 | |
| 1728 | static struct hash_testvec tgr160_tv_template[] = { |
| 1729 | { |
| 1730 | .plaintext = "", |
| 1731 | .psize = 0, |
| 1732 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 1733 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 1734 | "\xf3\x73\xde\x2d", |
| 1735 | }, { |
| 1736 | .plaintext = "abc", |
| 1737 | .psize = 3, |
| 1738 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 1739 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 1740 | "\x93\x5f\x7b\x95", |
| 1741 | }, { |
| 1742 | .plaintext = "Tiger", |
| 1743 | .psize = 5, |
| 1744 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 1745 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 1746 | "\x37\x79\x0c\x11", |
| 1747 | }, { |
| 1748 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1749 | .psize = 64, |
| 1750 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 1751 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 1752 | "\xb5\x86\x44\x50", |
| 1753 | }, { |
| 1754 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 1755 | .psize = 64, |
| 1756 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 1757 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 1758 | "\x57\x89\x65\x65", |
| 1759 | }, { |
| 1760 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 1761 | "by Ross Anderson and Eli Biham, " |
| 1762 | "proceedings of Fast Software Encryption 3, " |
| 1763 | "Cambridge, 1996.", |
| 1764 | .psize = 125, |
| 1765 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 1766 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 1767 | "\xdd\x68\x15\x1d", |
| 1768 | }, |
| 1769 | }; |
| 1770 | |
| 1771 | #define TGR128_TEST_VECTORS 6 |
| 1772 | |
| 1773 | static struct hash_testvec tgr128_tv_template[] = { |
| 1774 | { |
| 1775 | .plaintext = "", |
| 1776 | .psize = 0, |
| 1777 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 1778 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f", |
| 1779 | }, { |
| 1780 | .plaintext = "abc", |
| 1781 | .psize = 3, |
| 1782 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 1783 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf", |
| 1784 | }, { |
| 1785 | .plaintext = "Tiger", |
| 1786 | .psize = 5, |
| 1787 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 1788 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec", |
| 1789 | }, { |
| 1790 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1791 | .psize = 64, |
| 1792 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 1793 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e", |
| 1794 | }, { |
| 1795 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 1796 | .psize = 64, |
| 1797 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 1798 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9", |
| 1799 | }, { |
| 1800 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 1801 | "by Ross Anderson and Eli Biham, " |
| 1802 | "proceedings of Fast Software Encryption 3, " |
| 1803 | "Cambridge, 1996.", |
| 1804 | .psize = 125, |
| 1805 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 1806 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24", |
| 1807 | }, |
| 1808 | }; |
| 1809 | |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 1810 | #define GHASH_TEST_VECTORS 1 |
| 1811 | |
| 1812 | static struct hash_testvec ghash_tv_template[] = |
| 1813 | { |
| 1814 | { |
| 1815 | |
| 1816 | .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61", |
| 1817 | .ksize = 16, |
| 1818 | .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6", |
| 1819 | .psize = 16, |
| 1820 | .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6" |
| 1821 | "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60", |
| 1822 | }, |
| 1823 | }; |
| 1824 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1825 | /* |
| 1826 | * HMAC-MD5 test vectors from RFC2202 |
| 1827 | * (These need to be fixed to not use strlen). |
| 1828 | */ |
| 1829 | #define HMAC_MD5_TEST_VECTORS 7 |
| 1830 | |
| 1831 | static struct hash_testvec hmac_md5_tv_template[] = |
| 1832 | { |
| 1833 | { |
| 1834 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1835 | .ksize = 16, |
| 1836 | .plaintext = "Hi There", |
| 1837 | .psize = 8, |
| 1838 | .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c" |
| 1839 | "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d", |
| 1840 | }, { |
| 1841 | .key = "Jefe", |
| 1842 | .ksize = 4, |
| 1843 | .plaintext = "what do ya want for nothing?", |
| 1844 | .psize = 28, |
| 1845 | .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03" |
| 1846 | "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38", |
| 1847 | .np = 2, |
| 1848 | .tap = {14, 14} |
| 1849 | }, { |
| 1850 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 1851 | .ksize = 16, |
| 1852 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1853 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1854 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1855 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 1856 | .psize = 50, |
| 1857 | .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88" |
| 1858 | "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6", |
| 1859 | }, { |
| 1860 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1861 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1862 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 1863 | .ksize = 25, |
| 1864 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1865 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1866 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1867 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 1868 | .psize = 50, |
| 1869 | .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea" |
| 1870 | "\x3a\x75\x16\x47\x46\xff\xaa\x79", |
| 1871 | }, { |
| 1872 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 1873 | .ksize = 16, |
| 1874 | .plaintext = "Test With Truncation", |
| 1875 | .psize = 20, |
| 1876 | .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00" |
| 1877 | "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c", |
| 1878 | }, { |
| 1879 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1880 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1881 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1882 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1883 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1884 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1885 | "\xaa\xaa", |
| 1886 | .ksize = 80, |
| 1887 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 1888 | .psize = 54, |
| 1889 | .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f" |
| 1890 | "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd", |
| 1891 | }, { |
| 1892 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1893 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1894 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1895 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1896 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1897 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1898 | "\xaa\xaa", |
| 1899 | .ksize = 80, |
| 1900 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 1901 | "Block-Size Data", |
| 1902 | .psize = 73, |
| 1903 | .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee" |
| 1904 | "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e", |
| 1905 | }, |
| 1906 | }; |
| 1907 | |
| 1908 | /* |
| 1909 | * HMAC-RIPEMD128 test vectors from RFC2286 |
| 1910 | */ |
| 1911 | #define HMAC_RMD128_TEST_VECTORS 7 |
| 1912 | |
| 1913 | static struct hash_testvec hmac_rmd128_tv_template[] = { |
| 1914 | { |
| 1915 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1916 | .ksize = 16, |
| 1917 | .plaintext = "Hi There", |
| 1918 | .psize = 8, |
| 1919 | .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf" |
| 1920 | "\x81\xc1\x72\xe8\x4e\x07\x34\xdb", |
| 1921 | }, { |
| 1922 | .key = "Jefe", |
| 1923 | .ksize = 4, |
| 1924 | .plaintext = "what do ya want for nothing?", |
| 1925 | .psize = 28, |
| 1926 | .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34" |
| 1927 | "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b", |
| 1928 | .np = 2, |
| 1929 | .tap = { 14, 14 }, |
| 1930 | }, { |
| 1931 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 1932 | .ksize = 16, |
| 1933 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1934 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1935 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1936 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 1937 | .psize = 50, |
| 1938 | .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d" |
| 1939 | "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d", |
| 1940 | }, { |
| 1941 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1942 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1943 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 1944 | .ksize = 25, |
| 1945 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1946 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1947 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1948 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 1949 | .psize = 50, |
| 1950 | .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a" |
| 1951 | "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94", |
| 1952 | }, { |
| 1953 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 1954 | .ksize = 16, |
| 1955 | .plaintext = "Test With Truncation", |
| 1956 | .psize = 20, |
| 1957 | .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03" |
| 1958 | "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a", |
| 1959 | }, { |
| 1960 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1961 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1962 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1963 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1964 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1965 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1966 | "\xaa\xaa", |
| 1967 | .ksize = 80, |
| 1968 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 1969 | .psize = 54, |
| 1970 | .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a" |
| 1971 | "\x1f\x59\xd3\x73\xc1\x50\xac\xbb", |
| 1972 | }, { |
| 1973 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1974 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1975 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1976 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1977 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1978 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1979 | "\xaa\xaa", |
| 1980 | .ksize = 80, |
| 1981 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 1982 | "Block-Size Data", |
| 1983 | .psize = 73, |
| 1984 | .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4" |
| 1985 | "\x06\x90\xc2\x37\x63\x5f\x30\xc5", |
| 1986 | }, |
| 1987 | }; |
| 1988 | |
| 1989 | /* |
| 1990 | * HMAC-RIPEMD160 test vectors from RFC2286 |
| 1991 | */ |
| 1992 | #define HMAC_RMD160_TEST_VECTORS 7 |
| 1993 | |
| 1994 | static struct hash_testvec hmac_rmd160_tv_template[] = { |
| 1995 | { |
| 1996 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1997 | .ksize = 20, |
| 1998 | .plaintext = "Hi There", |
| 1999 | .psize = 8, |
| 2000 | .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e" |
| 2001 | "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68", |
| 2002 | }, { |
| 2003 | .key = "Jefe", |
| 2004 | .ksize = 4, |
| 2005 | .plaintext = "what do ya want for nothing?", |
| 2006 | .psize = 28, |
| 2007 | .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4" |
| 2008 | "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69", |
| 2009 | .np = 2, |
| 2010 | .tap = { 14, 14 }, |
| 2011 | }, { |
| 2012 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2013 | .ksize = 20, |
| 2014 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2015 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2016 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2017 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2018 | .psize = 50, |
| 2019 | .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4" |
| 2020 | "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1", |
| 2021 | }, { |
| 2022 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2023 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2024 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2025 | .ksize = 25, |
| 2026 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2027 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2028 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2029 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2030 | .psize = 50, |
| 2031 | .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1" |
| 2032 | "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4", |
| 2033 | }, { |
| 2034 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2035 | .ksize = 20, |
| 2036 | .plaintext = "Test With Truncation", |
| 2037 | .psize = 20, |
| 2038 | .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a" |
| 2039 | "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39", |
| 2040 | }, { |
| 2041 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2042 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2043 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2044 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2045 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2046 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2047 | "\xaa\xaa", |
| 2048 | .ksize = 80, |
| 2049 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2050 | .psize = 54, |
| 2051 | .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd" |
| 2052 | "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b", |
| 2053 | }, { |
| 2054 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2055 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2056 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2057 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2058 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2059 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2060 | "\xaa\xaa", |
| 2061 | .ksize = 80, |
| 2062 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2063 | "Block-Size Data", |
| 2064 | .psize = 73, |
| 2065 | .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f" |
| 2066 | "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a", |
| 2067 | }, |
| 2068 | }; |
| 2069 | |
| 2070 | /* |
| 2071 | * HMAC-SHA1 test vectors from RFC2202 |
| 2072 | */ |
| 2073 | #define HMAC_SHA1_TEST_VECTORS 7 |
| 2074 | |
| 2075 | static struct hash_testvec hmac_sha1_tv_template[] = { |
| 2076 | { |
| 2077 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2078 | .ksize = 20, |
| 2079 | .plaintext = "Hi There", |
| 2080 | .psize = 8, |
| 2081 | .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64" |
| 2082 | "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1" |
| 2083 | "\x46\xbe", |
| 2084 | }, { |
| 2085 | .key = "Jefe", |
| 2086 | .ksize = 4, |
| 2087 | .plaintext = "what do ya want for nothing?", |
| 2088 | .psize = 28, |
| 2089 | .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74" |
| 2090 | "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79", |
| 2091 | .np = 2, |
| 2092 | .tap = { 14, 14 } |
| 2093 | }, { |
| 2094 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2095 | .ksize = 20, |
| 2096 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2097 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2098 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2099 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2100 | .psize = 50, |
| 2101 | .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3" |
| 2102 | "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3", |
| 2103 | }, { |
| 2104 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2105 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2106 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2107 | .ksize = 25, |
| 2108 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2109 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2110 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2111 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2112 | .psize = 50, |
| 2113 | .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84" |
| 2114 | "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda", |
| 2115 | }, { |
| 2116 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2117 | .ksize = 20, |
| 2118 | .plaintext = "Test With Truncation", |
| 2119 | .psize = 20, |
| 2120 | .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2" |
| 2121 | "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04", |
| 2122 | }, { |
| 2123 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2124 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2125 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2126 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2127 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2128 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2129 | "\xaa\xaa", |
| 2130 | .ksize = 80, |
| 2131 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2132 | .psize = 54, |
| 2133 | .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70" |
| 2134 | "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12", |
| 2135 | }, { |
| 2136 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2137 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2138 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2139 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2140 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2141 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2142 | "\xaa\xaa", |
| 2143 | .ksize = 80, |
| 2144 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2145 | "Block-Size Data", |
| 2146 | .psize = 73, |
| 2147 | .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b" |
| 2148 | "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91", |
| 2149 | }, |
| 2150 | }; |
| 2151 | |
| 2152 | |
| 2153 | /* |
| 2154 | * SHA224 HMAC test vectors from RFC4231 |
| 2155 | */ |
| 2156 | #define HMAC_SHA224_TEST_VECTORS 4 |
| 2157 | |
| 2158 | static struct hash_testvec hmac_sha224_tv_template[] = { |
| 2159 | { |
| 2160 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2161 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2162 | "\x0b\x0b\x0b\x0b", |
| 2163 | .ksize = 20, |
| 2164 | /* ("Hi There") */ |
| 2165 | .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65", |
| 2166 | .psize = 8, |
| 2167 | .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19" |
| 2168 | "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f" |
| 2169 | "\x47\xb4\xb1\x16\x99\x12\xba\x4f" |
| 2170 | "\x53\x68\x4b\x22", |
| 2171 | }, { |
| 2172 | .key = "Jefe", |
| 2173 | .ksize = 4, |
| 2174 | /* ("what do ya want for nothing?") */ |
| 2175 | .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20" |
| 2176 | "\x79\x61\x20\x77\x61\x6e\x74\x20" |
| 2177 | "\x66\x6f\x72\x20\x6e\x6f\x74\x68" |
| 2178 | "\x69\x6e\x67\x3f", |
| 2179 | .psize = 28, |
| 2180 | .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf" |
| 2181 | "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f" |
| 2182 | "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00" |
| 2183 | "\x8f\xd0\x5e\x44", |
| 2184 | .np = 4, |
| 2185 | .tap = { 7, 7, 7, 7 } |
| 2186 | }, { |
| 2187 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2188 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2189 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2190 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2191 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2192 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2193 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2194 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2195 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2196 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2197 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2198 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2199 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2200 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2201 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2202 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2203 | "\xaa\xaa\xaa", |
| 2204 | .ksize = 131, |
| 2205 | /* ("Test Using Larger Than Block-Size Key - Hash Key First") */ |
| 2206 | .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69" |
| 2207 | "\x6e\x67\x20\x4c\x61\x72\x67\x65" |
| 2208 | "\x72\x20\x54\x68\x61\x6e\x20\x42" |
| 2209 | "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a" |
| 2210 | "\x65\x20\x4b\x65\x79\x20\x2d\x20" |
| 2211 | "\x48\x61\x73\x68\x20\x4b\x65\x79" |
| 2212 | "\x20\x46\x69\x72\x73\x74", |
| 2213 | .psize = 54, |
| 2214 | .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad" |
| 2215 | "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2" |
| 2216 | "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27" |
| 2217 | "\x3f\xa6\x87\x0e", |
| 2218 | }, { |
| 2219 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2220 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2221 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2222 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2223 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2224 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2225 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2226 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2227 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2228 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2229 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2230 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2231 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2232 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2233 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2234 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2235 | "\xaa\xaa\xaa", |
| 2236 | .ksize = 131, |
| 2237 | /* ("This is a test using a larger than block-size key and a") |
| 2238 | (" larger than block-size data. The key needs to be") |
| 2239 | (" hashed before being used by the HMAC algorithm.") */ |
| 2240 | .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20" |
| 2241 | "\x61\x20\x74\x65\x73\x74\x20\x75" |
| 2242 | "\x73\x69\x6e\x67\x20\x61\x20\x6c" |
| 2243 | "\x61\x72\x67\x65\x72\x20\x74\x68" |
| 2244 | "\x61\x6e\x20\x62\x6c\x6f\x63\x6b" |
| 2245 | "\x2d\x73\x69\x7a\x65\x20\x6b\x65" |
| 2246 | "\x79\x20\x61\x6e\x64\x20\x61\x20" |
| 2247 | "\x6c\x61\x72\x67\x65\x72\x20\x74" |
| 2248 | "\x68\x61\x6e\x20\x62\x6c\x6f\x63" |
| 2249 | "\x6b\x2d\x73\x69\x7a\x65\x20\x64" |
| 2250 | "\x61\x74\x61\x2e\x20\x54\x68\x65" |
| 2251 | "\x20\x6b\x65\x79\x20\x6e\x65\x65" |
| 2252 | "\x64\x73\x20\x74\x6f\x20\x62\x65" |
| 2253 | "\x20\x68\x61\x73\x68\x65\x64\x20" |
| 2254 | "\x62\x65\x66\x6f\x72\x65\x20\x62" |
| 2255 | "\x65\x69\x6e\x67\x20\x75\x73\x65" |
| 2256 | "\x64\x20\x62\x79\x20\x74\x68\x65" |
| 2257 | "\x20\x48\x4d\x41\x43\x20\x61\x6c" |
| 2258 | "\x67\x6f\x72\x69\x74\x68\x6d\x2e", |
| 2259 | .psize = 152, |
| 2260 | .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02" |
| 2261 | "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd" |
| 2262 | "\x94\x67\x70\xdb\x9c\x2b\x95\xc9" |
| 2263 | "\xf6\xf5\x65\xd1", |
| 2264 | }, |
| 2265 | }; |
| 2266 | |
| 2267 | /* |
| 2268 | * HMAC-SHA256 test vectors from |
| 2269 | * draft-ietf-ipsec-ciph-sha-256-01.txt |
| 2270 | */ |
| 2271 | #define HMAC_SHA256_TEST_VECTORS 10 |
| 2272 | |
| 2273 | static struct hash_testvec hmac_sha256_tv_template[] = { |
| 2274 | { |
| 2275 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2276 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2277 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2278 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 2279 | .ksize = 32, |
| 2280 | .plaintext = "abc", |
| 2281 | .psize = 3, |
| 2282 | .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a" |
| 2283 | "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a" |
| 2284 | "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66" |
| 2285 | "\x92\x75\x90\x21\xcf\xab\x81\x81", |
| 2286 | }, { |
| 2287 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2288 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2289 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2290 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 2291 | .ksize = 32, |
| 2292 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 2293 | .psize = 56, |
| 2294 | .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08" |
| 2295 | "\x18\x4b\xa7\x31\x31\xc5\x3c\xae" |
| 2296 | "\xe6\x98\xe3\x61\x19\x42\x11\x49" |
| 2297 | "\xea\x8c\x71\x24\x56\x69\x7d\x30", |
| 2298 | }, { |
| 2299 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2300 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2301 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2302 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 2303 | .ksize = 32, |
| 2304 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" |
| 2305 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 2306 | .psize = 112, |
| 2307 | .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34" |
| 2308 | "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab" |
| 2309 | "\x73\xac\xf0\xfd\x06\x04\x47\xa5" |
| 2310 | "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3", |
| 2311 | }, { |
| 2312 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2313 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2314 | "\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2315 | .ksize = 32, |
| 2316 | .plaintext = "Hi There", |
| 2317 | .psize = 8, |
| 2318 | .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6" |
| 2319 | "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5" |
| 2320 | "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c" |
| 2321 | "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7", |
| 2322 | }, { |
| 2323 | .key = "Jefe", |
| 2324 | .ksize = 4, |
| 2325 | .plaintext = "what do ya want for nothing?", |
| 2326 | .psize = 28, |
| 2327 | .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e" |
| 2328 | "\x6a\x04\x24\x26\x08\x95\x75\xc7" |
| 2329 | "\x5a\x00\x3f\x08\x9d\x27\x39\x83" |
| 2330 | "\x9d\xec\x58\xb9\x64\xec\x38\x43", |
| 2331 | .np = 2, |
| 2332 | .tap = { 14, 14 } |
| 2333 | }, { |
| 2334 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2335 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2336 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2337 | .ksize = 32, |
| 2338 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2339 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2340 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2341 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2342 | .psize = 50, |
| 2343 | .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea" |
| 2344 | "\x91\xe5\x3a\xba\x30\x92\xf9\x62" |
| 2345 | "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc" |
| 2346 | "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0", |
| 2347 | }, { |
| 2348 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2349 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2350 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2351 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 2352 | "\x21\x22\x23\x24\x25", |
| 2353 | .ksize = 37, |
| 2354 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2355 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2356 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2357 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2358 | .psize = 50, |
| 2359 | .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74" |
| 2360 | "\x4c\x66\xde\xe0\xf8\xf0\x74\x55" |
| 2361 | "\x6e\xc4\xaf\x55\xef\x07\x99\x85" |
| 2362 | "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17", |
| 2363 | }, { |
| 2364 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 2365 | "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 2366 | "\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2367 | .ksize = 32, |
| 2368 | .plaintext = "Test With Truncation", |
| 2369 | .psize = 20, |
| 2370 | .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b" |
| 2371 | "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17" |
| 2372 | "\xd4\xf5\x89\x66\x8a\x58\x7b\x27" |
| 2373 | "\x00\xa9\xc9\x7c\x11\x93\xcf\x42", |
| 2374 | }, { |
| 2375 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2376 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2377 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2378 | "\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", |
| 2382 | .ksize = 80, |
| 2383 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2384 | .psize = 54, |
| 2385 | .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09" |
| 2386 | "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb" |
| 2387 | "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e" |
| 2388 | "\x7d\xdd\x39\x09\x1b\x32\x35\x2f", |
| 2389 | }, { |
| 2390 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2391 | "\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", |
| 2397 | .ksize = 80, |
| 2398 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than " |
| 2399 | "One Block-Size Data", |
| 2400 | .psize = 73, |
| 2401 | .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3" |
| 2402 | "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8" |
| 2403 | "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc" |
| 2404 | "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6", |
| 2405 | }, |
| 2406 | }; |
| 2407 | |
Jussi Kivilinna | 93b5e86 | 2013-04-08 10:48:44 +0300 | [diff] [blame] | 2408 | #define CMAC_AES_TEST_VECTORS 6 |
| 2409 | |
| 2410 | static struct hash_testvec aes_cmac128_tv_template[] = { |
| 2411 | { /* From NIST Special Publication 800-38B, AES-128 */ |
| 2412 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2413 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2414 | .plaintext = zeroed_string, |
| 2415 | .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28" |
| 2416 | "\x7f\xa3\x7d\x12\x9b\x75\x67\x46", |
| 2417 | .psize = 0, |
| 2418 | .ksize = 16, |
| 2419 | }, { |
| 2420 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2421 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2422 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2423 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a", |
| 2424 | .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44" |
| 2425 | "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c", |
| 2426 | .psize = 16, |
| 2427 | .ksize = 16, |
| 2428 | }, { |
| 2429 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2430 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2431 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2432 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2433 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2434 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 2435 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11", |
| 2436 | .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30" |
| 2437 | "\x30\xca\x32\x61\x14\x97\xc8\x27", |
| 2438 | .psize = 40, |
| 2439 | .ksize = 16, |
| 2440 | }, { |
| 2441 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2442 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2443 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2444 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2445 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2446 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 2447 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 2448 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 2449 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 2450 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 2451 | .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92" |
| 2452 | "\xfc\x49\x74\x17\x79\x36\x3c\xfe", |
| 2453 | .psize = 64, |
| 2454 | .ksize = 16, |
| 2455 | }, { /* From NIST Special Publication 800-38B, AES-256 */ |
| 2456 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 2457 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 2458 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 2459 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 2460 | .plaintext = zeroed_string, |
| 2461 | .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e" |
| 2462 | "\xfc\x6b\x55\x1f\x46\x67\xd9\x83", |
| 2463 | .psize = 0, |
| 2464 | .ksize = 32, |
| 2465 | }, { |
| 2466 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 2467 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 2468 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 2469 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 2470 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2471 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2472 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2473 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 2474 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 2475 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 2476 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 2477 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 2478 | .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5" |
| 2479 | "\x69\x6a\x2c\x05\x6c\x31\x54\x10", |
| 2480 | .psize = 64, |
| 2481 | .ksize = 32, |
| 2482 | } |
| 2483 | }; |
| 2484 | |
| 2485 | #define CMAC_DES3_EDE_TEST_VECTORS 4 |
| 2486 | |
| 2487 | static struct hash_testvec des3_ede_cmac64_tv_template[] = { |
| 2488 | /* |
| 2489 | * From NIST Special Publication 800-38B, Three Key TDEA |
| 2490 | * Corrected test vectors from: |
| 2491 | * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf |
| 2492 | */ |
| 2493 | { |
| 2494 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2495 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2496 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2497 | .plaintext = zeroed_string, |
| 2498 | .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95", |
| 2499 | .psize = 0, |
| 2500 | .ksize = 24, |
| 2501 | }, { |
| 2502 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2503 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2504 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2505 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96", |
| 2506 | .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97", |
| 2507 | .psize = 8, |
| 2508 | .ksize = 24, |
| 2509 | }, { |
| 2510 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2511 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2512 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2513 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2514 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2515 | "\xae\x2d\x8a\x57", |
| 2516 | .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed", |
| 2517 | .psize = 20, |
| 2518 | .ksize = 24, |
| 2519 | }, { |
| 2520 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2521 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2522 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2523 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2524 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2525 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2526 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51", |
| 2527 | .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5", |
| 2528 | .psize = 32, |
| 2529 | .ksize = 24, |
| 2530 | } |
| 2531 | }; |
| 2532 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2533 | #define XCBC_AES_TEST_VECTORS 6 |
| 2534 | |
| 2535 | static struct hash_testvec aes_xcbc128_tv_template[] = { |
| 2536 | { |
| 2537 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2538 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2539 | .plaintext = zeroed_string, |
| 2540 | .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c" |
| 2541 | "\x45\x73\xdf\xd5\x84\xd7\x9f\x29", |
| 2542 | .psize = 0, |
| 2543 | .ksize = 16, |
| 2544 | }, { |
| 2545 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2546 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2547 | .plaintext = "\x00\x01\x02", |
| 2548 | .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf" |
| 2549 | "\xe7\x21\x9c\xee\xf1\x72\x75\x6f", |
| 2550 | .psize = 3, |
| 2551 | .ksize = 16, |
| 2552 | } , { |
| 2553 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2554 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2555 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2556 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2557 | .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7" |
| 2558 | "\x99\x98\xa4\x39\x4f\xf7\xa2\x63", |
| 2559 | .psize = 16, |
| 2560 | .ksize = 16, |
| 2561 | }, { |
| 2562 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2563 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2564 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2565 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 2566 | "\x10\x11\x12\x13", |
| 2567 | .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15" |
| 2568 | "\xb8\x98\x5c\x63\x05\x5e\xd3\x08", |
| 2569 | .tap = { 10, 10 }, |
| 2570 | .psize = 20, |
| 2571 | .np = 2, |
| 2572 | .ksize = 16, |
| 2573 | }, { |
| 2574 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2575 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2576 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2577 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 2578 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 2579 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 2580 | .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3" |
| 2581 | "\x68\x07\x73\x4b\xd5\x28\x3f\xd4", |
| 2582 | .psize = 32, |
| 2583 | .ksize = 16, |
| 2584 | }, { |
| 2585 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2586 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2587 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2588 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 2589 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 2590 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 2591 | "\x20\x21", |
| 2592 | .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3" |
| 2593 | "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8", |
| 2594 | .tap = { 17, 17 }, |
| 2595 | .psize = 34, |
| 2596 | .np = 2, |
| 2597 | .ksize = 16, |
| 2598 | } |
| 2599 | }; |
| 2600 | |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 2601 | #define VMAC_AES_TEST_VECTORS 11 |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2602 | static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01', |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2603 | '\x02', '\x03', '\x02', '\x02', |
| 2604 | '\x02', '\x04', '\x01', '\x07', |
| 2605 | '\x04', '\x01', '\x04', '\x03',}; |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2606 | static char vmac_string2[128] = {'a', 'b', 'c',}; |
| 2607 | static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c', |
| 2608 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2609 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2610 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2611 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2612 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2613 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2614 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2615 | }; |
| 2616 | |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 2617 | static char vmac_string4[17] = {'b', 'c', 'e', 'f', |
| 2618 | 'i', 'j', 'l', 'm', |
| 2619 | 'o', 'p', 'r', 's', |
| 2620 | 't', 'u', 'w', 'x', 'z'}; |
| 2621 | |
| 2622 | static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c', |
| 2623 | 'o', 'l', 'k', ']', '%', |
| 2624 | '9', '2', '7', '!', 'A'}; |
| 2625 | |
| 2626 | static char vmac_string6[129] = {'p', 't', '*', '7', 'l', |
| 2627 | 'i', '!', '#', 'w', '0', |
| 2628 | 'z', '/', '4', 'A', 'n'}; |
| 2629 | |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2630 | static struct hash_testvec aes_vmac128_tv_template[] = { |
| 2631 | { |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2632 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2633 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2634 | .plaintext = NULL, |
| 2635 | .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54", |
| 2636 | .psize = 0, |
| 2637 | .ksize = 16, |
| 2638 | }, { |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2639 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2640 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2641 | .plaintext = vmac_string1, |
| 2642 | .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1", |
| 2643 | .psize = 128, |
| 2644 | .ksize = 16, |
| 2645 | }, { |
| 2646 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2647 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2648 | .plaintext = vmac_string2, |
| 2649 | .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d", |
| 2650 | .psize = 128, |
| 2651 | .ksize = 16, |
| 2652 | }, { |
| 2653 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2654 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2655 | .plaintext = vmac_string3, |
| 2656 | .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19", |
| 2657 | .psize = 128, |
| 2658 | .ksize = 16, |
| 2659 | }, { |
| 2660 | .key = "abcdefghijklmnop", |
| 2661 | .plaintext = NULL, |
| 2662 | .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84", |
| 2663 | .psize = 0, |
| 2664 | .ksize = 16, |
| 2665 | }, { |
| 2666 | .key = "abcdefghijklmnop", |
| 2667 | .plaintext = vmac_string1, |
| 2668 | .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2", |
| 2669 | .psize = 128, |
| 2670 | .ksize = 16, |
| 2671 | }, { |
| 2672 | .key = "abcdefghijklmnop", |
| 2673 | .plaintext = vmac_string2, |
| 2674 | .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf", |
| 2675 | .psize = 128, |
| 2676 | .ksize = 16, |
| 2677 | }, { |
| 2678 | .key = "abcdefghijklmnop", |
| 2679 | .plaintext = vmac_string3, |
| 2680 | .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4", |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2681 | .psize = 128, |
| 2682 | .ksize = 16, |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 2683 | }, { |
| 2684 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 2685 | .plaintext = vmac_string4, |
| 2686 | .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f", |
| 2687 | .psize = sizeof(vmac_string4), |
| 2688 | .ksize = 16, |
| 2689 | }, { |
| 2690 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 2691 | .plaintext = vmac_string5, |
| 2692 | .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60", |
| 2693 | .psize = sizeof(vmac_string5), |
| 2694 | .ksize = 16, |
| 2695 | }, { |
| 2696 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 2697 | .plaintext = vmac_string6, |
| 2698 | .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41", |
| 2699 | .psize = sizeof(vmac_string6), |
| 2700 | .ksize = 16, |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2701 | }, |
| 2702 | }; |
| 2703 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2704 | /* |
| 2705 | * SHA384 HMAC test vectors from RFC4231 |
| 2706 | */ |
| 2707 | |
| 2708 | #define HMAC_SHA384_TEST_VECTORS 4 |
| 2709 | |
| 2710 | static struct hash_testvec hmac_sha384_tv_template[] = { |
| 2711 | { |
| 2712 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2713 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2714 | "\x0b\x0b\x0b\x0b", |
| 2715 | .ksize = 20, |
| 2716 | .plaintext = "Hi There", |
| 2717 | .psize = 8, |
| 2718 | .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62" |
| 2719 | "\x6b\x08\x25\xf4\xab\x46\x90\x7f" |
| 2720 | "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6" |
| 2721 | "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c" |
| 2722 | "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f" |
| 2723 | "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6", |
| 2724 | }, { |
| 2725 | .key = "Jefe", |
| 2726 | .ksize = 4, |
| 2727 | .plaintext = "what do ya want for nothing?", |
| 2728 | .psize = 28, |
| 2729 | .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31" |
| 2730 | "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b" |
| 2731 | "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47" |
| 2732 | "\xe4\x2e\xc3\x73\x63\x22\x44\x5e" |
| 2733 | "\x8e\x22\x40\xca\x5e\x69\xe2\xc7" |
| 2734 | "\x8b\x32\x39\xec\xfa\xb2\x16\x49", |
| 2735 | .np = 4, |
| 2736 | .tap = { 7, 7, 7, 7 } |
| 2737 | }, { |
| 2738 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2739 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2740 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2741 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2742 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2743 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2744 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2745 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2746 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2747 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2748 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2749 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2750 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2751 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2752 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2753 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2754 | "\xaa\xaa\xaa", |
| 2755 | .ksize = 131, |
| 2756 | .plaintext = "Test Using Larger Than Block-Siz" |
| 2757 | "e Key - Hash Key First", |
| 2758 | .psize = 54, |
| 2759 | .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90" |
| 2760 | "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4" |
| 2761 | "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f" |
| 2762 | "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6" |
| 2763 | "\x0c\x2e\xf6\xab\x40\x30\xfe\x82" |
| 2764 | "\x96\x24\x8d\xf1\x63\xf4\x49\x52", |
| 2765 | }, { |
| 2766 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2767 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2768 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2769 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2770 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2771 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2772 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2773 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2774 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2775 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2776 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2777 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2778 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2779 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2780 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2781 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2782 | "\xaa\xaa\xaa", |
| 2783 | .ksize = 131, |
| 2784 | .plaintext = "This is a test u" |
| 2785 | "sing a larger th" |
| 2786 | "an block-size ke" |
| 2787 | "y and a larger t" |
| 2788 | "han block-size d" |
| 2789 | "ata. The key nee" |
| 2790 | "ds to be hashed " |
| 2791 | "before being use" |
| 2792 | "d by the HMAC al" |
| 2793 | "gorithm.", |
| 2794 | .psize = 152, |
| 2795 | .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d" |
| 2796 | "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c" |
| 2797 | "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a" |
| 2798 | "\xdc\xce\xbb\x82\x46\x1e\x99\xc5" |
| 2799 | "\xa6\x78\xcc\x31\xe7\x99\x17\x6d" |
| 2800 | "\x38\x60\xe6\x11\x0c\x46\x52\x3e", |
| 2801 | }, |
| 2802 | }; |
| 2803 | |
| 2804 | /* |
| 2805 | * SHA512 HMAC test vectors from RFC4231 |
| 2806 | */ |
| 2807 | |
| 2808 | #define HMAC_SHA512_TEST_VECTORS 4 |
| 2809 | |
| 2810 | static struct hash_testvec hmac_sha512_tv_template[] = { |
| 2811 | { |
| 2812 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2813 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2814 | "\x0b\x0b\x0b\x0b", |
| 2815 | .ksize = 20, |
| 2816 | .plaintext = "Hi There", |
| 2817 | .psize = 8, |
| 2818 | .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d" |
| 2819 | "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0" |
| 2820 | "\x23\x79\xf4\xe2\xce\x4e\xc2\x78" |
| 2821 | "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde" |
| 2822 | "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02" |
| 2823 | "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4" |
| 2824 | "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70" |
| 2825 | "\x2e\x69\x6c\x20\x3a\x12\x68\x54", |
| 2826 | }, { |
| 2827 | .key = "Jefe", |
| 2828 | .ksize = 4, |
| 2829 | .plaintext = "what do ya want for nothing?", |
| 2830 | .psize = 28, |
| 2831 | .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2" |
| 2832 | "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3" |
| 2833 | "\x87\xbd\x64\x22\x2e\x83\x1f\xd6" |
| 2834 | "\x10\x27\x0c\xd7\xea\x25\x05\x54" |
| 2835 | "\x97\x58\xbf\x75\xc0\x5a\x99\x4a" |
| 2836 | "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd" |
| 2837 | "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b" |
| 2838 | "\x63\x6e\x07\x0a\x38\xbc\xe7\x37", |
| 2839 | .np = 4, |
| 2840 | .tap = { 7, 7, 7, 7 } |
| 2841 | }, { |
| 2842 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2843 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2844 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2845 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2846 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2847 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2848 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2849 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2850 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2851 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2852 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2853 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2854 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2855 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2856 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2857 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2858 | "\xaa\xaa\xaa", |
| 2859 | .ksize = 131, |
| 2860 | .plaintext = "Test Using Large" |
| 2861 | "r Than Block-Siz" |
| 2862 | "e Key - Hash Key" |
| 2863 | " First", |
| 2864 | .psize = 54, |
| 2865 | .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb" |
| 2866 | "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4" |
| 2867 | "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1" |
| 2868 | "\x12\x1b\x01\x37\x83\xf8\xf3\x52" |
| 2869 | "\x6b\x56\xd0\x37\xe0\x5f\x25\x98" |
| 2870 | "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52" |
| 2871 | "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec" |
| 2872 | "\x8b\x91\x5a\x98\x5d\x78\x65\x98", |
| 2873 | }, { |
| 2874 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2875 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2876 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2877 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2878 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2879 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2880 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2881 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2882 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2883 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2884 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2885 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2886 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2887 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2888 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2889 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2890 | "\xaa\xaa\xaa", |
| 2891 | .ksize = 131, |
| 2892 | .plaintext = |
| 2893 | "This is a test u" |
| 2894 | "sing a larger th" |
| 2895 | "an block-size ke" |
| 2896 | "y and a larger t" |
| 2897 | "han block-size d" |
| 2898 | "ata. The key nee" |
| 2899 | "ds to be hashed " |
| 2900 | "before being use" |
| 2901 | "d by the HMAC al" |
| 2902 | "gorithm.", |
| 2903 | .psize = 152, |
| 2904 | .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba" |
| 2905 | "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd" |
| 2906 | "\xde\xbd\x71\xf8\x86\x72\x89\x86" |
| 2907 | "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44" |
| 2908 | "\xb6\x02\x2c\xac\x3c\x49\x82\xb1" |
| 2909 | "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15" |
| 2910 | "\x13\x46\x76\xfb\x6d\xe0\x44\x60" |
| 2911 | "\x65\xc9\x74\x40\xfa\x8c\x6a\x58", |
| 2912 | }, |
| 2913 | }; |
| 2914 | |
| 2915 | /* |
| 2916 | * DES test vectors. |
| 2917 | */ |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 2918 | #define DES_ENC_TEST_VECTORS 11 |
| 2919 | #define DES_DEC_TEST_VECTORS 5 |
| 2920 | #define DES_CBC_ENC_TEST_VECTORS 6 |
| 2921 | #define DES_CBC_DEC_TEST_VECTORS 5 |
| 2922 | #define DES_CTR_ENC_TEST_VECTORS 2 |
| 2923 | #define DES_CTR_DEC_TEST_VECTORS 2 |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 2924 | #define DES3_EDE_ENC_TEST_VECTORS 4 |
| 2925 | #define DES3_EDE_DEC_TEST_VECTORS 4 |
| 2926 | #define DES3_EDE_CBC_ENC_TEST_VECTORS 2 |
| 2927 | #define DES3_EDE_CBC_DEC_TEST_VECTORS 2 |
| 2928 | #define DES3_EDE_CTR_ENC_TEST_VECTORS 2 |
| 2929 | #define DES3_EDE_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2930 | |
| 2931 | static struct cipher_testvec des_enc_tv_template[] = { |
| 2932 | { /* From Applied Cryptography */ |
| 2933 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2934 | .klen = 8, |
| 2935 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 2936 | .ilen = 8, |
| 2937 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 2938 | .rlen = 8, |
| 2939 | }, { /* Same key, different plaintext block */ |
| 2940 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2941 | .klen = 8, |
| 2942 | .input = "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 2943 | .ilen = 8, |
| 2944 | .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 2945 | .rlen = 8, |
| 2946 | }, { /* Sbox test from NBS */ |
| 2947 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 2948 | .klen = 8, |
| 2949 | .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 2950 | .ilen = 8, |
| 2951 | .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 2952 | .rlen = 8, |
| 2953 | }, { /* Three blocks */ |
| 2954 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2955 | .klen = 8, |
| 2956 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2957 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 2958 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 2959 | .ilen = 24, |
| 2960 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2961 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 2962 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 2963 | .rlen = 24, |
| 2964 | }, { /* Weak key */ |
| 2965 | .fail = 1, |
| 2966 | .wk = 1, |
| 2967 | .key = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 2968 | .klen = 8, |
| 2969 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 2970 | .ilen = 8, |
| 2971 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 2972 | .rlen = 8, |
| 2973 | }, { /* Two blocks -- for testing encryption across pages */ |
| 2974 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2975 | .klen = 8, |
| 2976 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2977 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 2978 | .ilen = 16, |
| 2979 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2980 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 2981 | .rlen = 16, |
| 2982 | .np = 2, |
| 2983 | .tap = { 8, 8 } |
| 2984 | }, { /* Four blocks -- for testing encryption with chunking */ |
| 2985 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2986 | .klen = 8, |
| 2987 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2988 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 2989 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef" |
| 2990 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 2991 | .ilen = 32, |
| 2992 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2993 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 2994 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90" |
| 2995 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 2996 | .rlen = 32, |
| 2997 | .np = 3, |
| 2998 | .tap = { 14, 10, 8 } |
| 2999 | }, { |
| 3000 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3001 | .klen = 8, |
| 3002 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3003 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 3004 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 3005 | .ilen = 24, |
| 3006 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3007 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 3008 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 3009 | .rlen = 24, |
| 3010 | .np = 4, |
| 3011 | .tap = { 2, 1, 3, 18 } |
| 3012 | }, { |
| 3013 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3014 | .klen = 8, |
| 3015 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3016 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 3017 | .ilen = 16, |
| 3018 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3019 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 3020 | .rlen = 16, |
| 3021 | .np = 5, |
| 3022 | .tap = { 2, 2, 2, 2, 8 } |
| 3023 | }, { |
| 3024 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3025 | .klen = 8, |
| 3026 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 3027 | .ilen = 8, |
| 3028 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 3029 | .rlen = 8, |
| 3030 | .np = 8, |
| 3031 | .tap = { 1, 1, 1, 1, 1, 1, 1, 1 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3032 | }, { /* Generated with Crypto++ */ |
| 3033 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3034 | .klen = 8, |
| 3035 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3036 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3037 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3038 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3039 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3040 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3041 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3042 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3043 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3044 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3045 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3046 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3047 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3048 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3049 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3050 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3051 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3052 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3053 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3054 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3055 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3056 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3057 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3058 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3059 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3060 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3061 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3062 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3063 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3064 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3065 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3066 | .ilen = 248, |
| 3067 | .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" |
| 3068 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" |
| 3069 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" |
| 3070 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" |
| 3071 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" |
| 3072 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" |
| 3073 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" |
| 3074 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" |
| 3075 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" |
| 3076 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" |
| 3077 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" |
| 3078 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" |
| 3079 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" |
| 3080 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" |
| 3081 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" |
| 3082 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" |
| 3083 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" |
| 3084 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" |
| 3085 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" |
| 3086 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" |
| 3087 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" |
| 3088 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" |
| 3089 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" |
| 3090 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" |
| 3091 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" |
| 3092 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" |
| 3093 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" |
| 3094 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" |
| 3095 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" |
| 3096 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" |
| 3097 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", |
| 3098 | .rlen = 248, |
| 3099 | .also_non_np = 1, |
| 3100 | .np = 2, |
| 3101 | .tap = { 248 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3102 | }, |
| 3103 | }; |
| 3104 | |
| 3105 | static struct cipher_testvec des_dec_tv_template[] = { |
| 3106 | { /* From Applied Cryptography */ |
| 3107 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3108 | .klen = 8, |
| 3109 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 3110 | .ilen = 8, |
| 3111 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 3112 | .rlen = 8, |
| 3113 | }, { /* Sbox test from NBS */ |
| 3114 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 3115 | .klen = 8, |
| 3116 | .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 3117 | .ilen = 8, |
| 3118 | .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 3119 | .rlen = 8, |
| 3120 | }, { /* Two blocks, for chunking test */ |
| 3121 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3122 | .klen = 8, |
| 3123 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3124 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 3125 | .ilen = 16, |
| 3126 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3127 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 3128 | .rlen = 16, |
| 3129 | .np = 2, |
| 3130 | .tap = { 8, 8 } |
| 3131 | }, { |
| 3132 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3133 | .klen = 8, |
| 3134 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3135 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 3136 | .ilen = 16, |
| 3137 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3138 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 3139 | .rlen = 16, |
| 3140 | .np = 3, |
| 3141 | .tap = { 3, 12, 1 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3142 | }, { /* Generated with Crypto++ */ |
| 3143 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3144 | .klen = 8, |
| 3145 | .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" |
| 3146 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" |
| 3147 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" |
| 3148 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" |
| 3149 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" |
| 3150 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" |
| 3151 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" |
| 3152 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" |
| 3153 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" |
| 3154 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" |
| 3155 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" |
| 3156 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" |
| 3157 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" |
| 3158 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" |
| 3159 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" |
| 3160 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" |
| 3161 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" |
| 3162 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" |
| 3163 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" |
| 3164 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" |
| 3165 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" |
| 3166 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" |
| 3167 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" |
| 3168 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" |
| 3169 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" |
| 3170 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" |
| 3171 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" |
| 3172 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" |
| 3173 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" |
| 3174 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" |
| 3175 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", |
| 3176 | .ilen = 248, |
| 3177 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3178 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3179 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3180 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3181 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3182 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3183 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3184 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3185 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3186 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3187 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3188 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3189 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3190 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3191 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3192 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3193 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3194 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3195 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3196 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3197 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3198 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3199 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3200 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3201 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3202 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3203 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3204 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3205 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3206 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3207 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3208 | .rlen = 248, |
| 3209 | .also_non_np = 1, |
| 3210 | .np = 2, |
| 3211 | .tap = { 248 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3212 | }, |
| 3213 | }; |
| 3214 | |
| 3215 | static struct cipher_testvec des_cbc_enc_tv_template[] = { |
| 3216 | { /* From OpenSSL */ |
| 3217 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3218 | .klen = 8, |
| 3219 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 3220 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 3221 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 3222 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3223 | .ilen = 24, |
| 3224 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 3225 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 3226 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 3227 | .rlen = 24, |
| 3228 | }, { /* FIPS Pub 81 */ |
| 3229 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3230 | .klen = 8, |
| 3231 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 3232 | .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 3233 | .ilen = 8, |
| 3234 | .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3235 | .rlen = 8, |
| 3236 | }, { |
| 3237 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3238 | .klen = 8, |
| 3239 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3240 | .input = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3241 | .ilen = 8, |
| 3242 | .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3243 | .rlen = 8, |
| 3244 | }, { |
| 3245 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3246 | .klen = 8, |
| 3247 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3248 | .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 3249 | .ilen = 8, |
| 3250 | .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 3251 | .rlen = 8, |
| 3252 | }, { /* Copy of openssl vector for chunk testing */ |
| 3253 | /* From OpenSSL */ |
| 3254 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3255 | .klen = 8, |
| 3256 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 3257 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 3258 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 3259 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3260 | .ilen = 24, |
| 3261 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 3262 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 3263 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 3264 | .rlen = 24, |
| 3265 | .np = 2, |
| 3266 | .tap = { 13, 11 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3267 | }, { /* Generated with Crypto++ */ |
| 3268 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3269 | .klen = 8, |
| 3270 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 3271 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3272 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3273 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3274 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3275 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3276 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3277 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3278 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3279 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3280 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3281 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3282 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3283 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3284 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3285 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3286 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3287 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3288 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3289 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3290 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3291 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3292 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3293 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3294 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3295 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3296 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3297 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3298 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3299 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3300 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3301 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3302 | .ilen = 248, |
| 3303 | .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" |
| 3304 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" |
| 3305 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" |
| 3306 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" |
| 3307 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" |
| 3308 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" |
| 3309 | "\x81\x72\x74\xDE\x30\x19\x69\x49" |
| 3310 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" |
| 3311 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" |
| 3312 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" |
| 3313 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" |
| 3314 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" |
| 3315 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" |
| 3316 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" |
| 3317 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" |
| 3318 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" |
| 3319 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" |
| 3320 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" |
| 3321 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" |
| 3322 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" |
| 3323 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" |
| 3324 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" |
| 3325 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" |
| 3326 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" |
| 3327 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" |
| 3328 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" |
| 3329 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" |
| 3330 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" |
| 3331 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" |
| 3332 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" |
| 3333 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", |
| 3334 | .rlen = 248, |
| 3335 | .also_non_np = 1, |
| 3336 | .np = 2, |
| 3337 | .tap = { 248 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3338 | }, |
| 3339 | }; |
| 3340 | |
| 3341 | static struct cipher_testvec des_cbc_dec_tv_template[] = { |
| 3342 | { /* FIPS Pub 81 */ |
| 3343 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3344 | .klen = 8, |
| 3345 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 3346 | .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3347 | .ilen = 8, |
| 3348 | .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 3349 | .rlen = 8, |
| 3350 | }, { |
| 3351 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3352 | .klen = 8, |
| 3353 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3354 | .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3355 | .ilen = 8, |
| 3356 | .result = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3357 | .rlen = 8, |
| 3358 | }, { |
| 3359 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3360 | .klen = 8, |
| 3361 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3362 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 3363 | .ilen = 8, |
| 3364 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 3365 | .rlen = 8, |
| 3366 | }, { /* Copy of above, for chunk testing */ |
| 3367 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3368 | .klen = 8, |
| 3369 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3370 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 3371 | .ilen = 8, |
| 3372 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 3373 | .rlen = 8, |
| 3374 | .np = 2, |
| 3375 | .tap = { 4, 4 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3376 | }, { /* Generated with Crypto++ */ |
| 3377 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3378 | .klen = 8, |
| 3379 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 3380 | .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" |
| 3381 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" |
| 3382 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" |
| 3383 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" |
| 3384 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" |
| 3385 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" |
| 3386 | "\x81\x72\x74\xDE\x30\x19\x69\x49" |
| 3387 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" |
| 3388 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" |
| 3389 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" |
| 3390 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" |
| 3391 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" |
| 3392 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" |
| 3393 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" |
| 3394 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" |
| 3395 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" |
| 3396 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" |
| 3397 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" |
| 3398 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" |
| 3399 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" |
| 3400 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" |
| 3401 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" |
| 3402 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" |
| 3403 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" |
| 3404 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" |
| 3405 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" |
| 3406 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" |
| 3407 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" |
| 3408 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" |
| 3409 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" |
| 3410 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", |
| 3411 | .ilen = 248, |
| 3412 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3413 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3414 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3415 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3416 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3417 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3418 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3419 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3420 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3421 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3422 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3423 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3424 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3425 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3426 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3427 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3428 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3429 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3430 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3431 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3432 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3433 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3434 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3435 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3436 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3437 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3438 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3439 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3440 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3441 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3442 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3443 | .rlen = 248, |
| 3444 | .also_non_np = 1, |
| 3445 | .np = 2, |
| 3446 | .tap = { 248 - 8, 8 }, |
| 3447 | }, |
| 3448 | }; |
| 3449 | |
| 3450 | static struct cipher_testvec des_ctr_enc_tv_template[] = { |
| 3451 | { /* Generated with Crypto++ */ |
| 3452 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3453 | .klen = 8, |
| 3454 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 3455 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3456 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3457 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3458 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3459 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3460 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3461 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3462 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3463 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3464 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3465 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3466 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3467 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3468 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3469 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3470 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3471 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3472 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3473 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3474 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3475 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3476 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3477 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3478 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3479 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3480 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3481 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3482 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3483 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3484 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3485 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3486 | .ilen = 248, |
| 3487 | .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" |
| 3488 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" |
| 3489 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" |
| 3490 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" |
| 3491 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" |
| 3492 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" |
| 3493 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" |
| 3494 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" |
| 3495 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" |
| 3496 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" |
| 3497 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" |
| 3498 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" |
| 3499 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" |
| 3500 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" |
| 3501 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" |
| 3502 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" |
| 3503 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" |
| 3504 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" |
| 3505 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" |
| 3506 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" |
| 3507 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" |
| 3508 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" |
| 3509 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" |
| 3510 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" |
| 3511 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" |
| 3512 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" |
| 3513 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" |
| 3514 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" |
| 3515 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" |
| 3516 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" |
| 3517 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", |
| 3518 | .rlen = 248, |
| 3519 | .also_non_np = 1, |
| 3520 | .np = 2, |
| 3521 | .tap = { 248 - 8, 8 }, |
| 3522 | }, { /* Generated with Crypto++ */ |
| 3523 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3524 | .klen = 8, |
| 3525 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 3526 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3527 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3528 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3529 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3530 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3531 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3532 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3533 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3534 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3535 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3536 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3537 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3538 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3539 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3540 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3541 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3542 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3543 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3544 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3545 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3546 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3547 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3548 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3549 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3550 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3551 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3552 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3553 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3554 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3555 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3556 | "\xC6\x2F\xBB\x24\x8D\x19\x82", |
| 3557 | .ilen = 247, |
| 3558 | .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" |
| 3559 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" |
| 3560 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" |
| 3561 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" |
| 3562 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" |
| 3563 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" |
| 3564 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" |
| 3565 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" |
| 3566 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" |
| 3567 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" |
| 3568 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" |
| 3569 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" |
| 3570 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" |
| 3571 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" |
| 3572 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" |
| 3573 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" |
| 3574 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" |
| 3575 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" |
| 3576 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" |
| 3577 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" |
| 3578 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" |
| 3579 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" |
| 3580 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" |
| 3581 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" |
| 3582 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" |
| 3583 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" |
| 3584 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" |
| 3585 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" |
| 3586 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" |
| 3587 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" |
| 3588 | "\x91\x45\x05\x3E\x58\xBF\x32", |
| 3589 | .rlen = 247, |
| 3590 | .also_non_np = 1, |
| 3591 | .np = 2, |
| 3592 | .tap = { 247 - 8, 8 }, |
| 3593 | }, |
| 3594 | }; |
| 3595 | |
| 3596 | static struct cipher_testvec des_ctr_dec_tv_template[] = { |
| 3597 | { /* Generated with Crypto++ */ |
| 3598 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3599 | .klen = 8, |
| 3600 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 3601 | .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" |
| 3602 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" |
| 3603 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" |
| 3604 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" |
| 3605 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" |
| 3606 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" |
| 3607 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" |
| 3608 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" |
| 3609 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" |
| 3610 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" |
| 3611 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" |
| 3612 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" |
| 3613 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" |
| 3614 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" |
| 3615 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" |
| 3616 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" |
| 3617 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" |
| 3618 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" |
| 3619 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" |
| 3620 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" |
| 3621 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" |
| 3622 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" |
| 3623 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" |
| 3624 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" |
| 3625 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" |
| 3626 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" |
| 3627 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" |
| 3628 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" |
| 3629 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" |
| 3630 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" |
| 3631 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", |
| 3632 | .ilen = 248, |
| 3633 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3634 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3635 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3636 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3637 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3638 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3639 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3640 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3641 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3642 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3643 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3644 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3645 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3646 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3647 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3648 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3649 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3650 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3651 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3652 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3653 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3654 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3655 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3656 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3657 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3658 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3659 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3660 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3661 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3662 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3663 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3664 | .rlen = 248, |
| 3665 | .also_non_np = 1, |
| 3666 | .np = 2, |
| 3667 | .tap = { 248 - 8, 8 }, |
| 3668 | }, { /* Generated with Crypto++ */ |
| 3669 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3670 | .klen = 8, |
| 3671 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 3672 | .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" |
| 3673 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" |
| 3674 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" |
| 3675 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" |
| 3676 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" |
| 3677 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" |
| 3678 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" |
| 3679 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" |
| 3680 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" |
| 3681 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" |
| 3682 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" |
| 3683 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" |
| 3684 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" |
| 3685 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" |
| 3686 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" |
| 3687 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" |
| 3688 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" |
| 3689 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" |
| 3690 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" |
| 3691 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" |
| 3692 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" |
| 3693 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" |
| 3694 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" |
| 3695 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" |
| 3696 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" |
| 3697 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" |
| 3698 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" |
| 3699 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" |
| 3700 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" |
| 3701 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" |
| 3702 | "\x91\x45\x05\x3E\x58\xBF\x32", |
| 3703 | .ilen = 247, |
| 3704 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3705 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3706 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3707 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3708 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3709 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3710 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3711 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3712 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3713 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3714 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3715 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3716 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3717 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3718 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3719 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3720 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3721 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3722 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3723 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3724 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3725 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3726 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3727 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3728 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3729 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3730 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3731 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3732 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3733 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3734 | "\xC6\x2F\xBB\x24\x8D\x19\x82", |
| 3735 | .rlen = 247, |
| 3736 | .also_non_np = 1, |
| 3737 | .np = 2, |
| 3738 | .tap = { 247 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3739 | }, |
| 3740 | }; |
| 3741 | |
| 3742 | static struct cipher_testvec des3_ede_enc_tv_template[] = { |
| 3743 | { /* These are from openssl */ |
| 3744 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 3745 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 3746 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 3747 | .klen = 24, |
| 3748 | .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 3749 | .ilen = 8, |
| 3750 | .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 3751 | .rlen = 8, |
| 3752 | }, { |
| 3753 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 3754 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 3755 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 3756 | .klen = 24, |
| 3757 | .input = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 3758 | .ilen = 8, |
| 3759 | .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 3760 | .rlen = 8, |
| 3761 | }, { |
| 3762 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 3763 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 3764 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 3765 | .klen = 24, |
| 3766 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3767 | .ilen = 8, |
| 3768 | .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 3769 | .rlen = 8, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 3770 | }, { /* Generated with Crypto++ */ |
| 3771 | .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67" |
| 3772 | "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D" |
| 3773 | "\xCE\xEB\xB4\x51\x72\xB4\x51\x72", |
| 3774 | .klen = 24, |
| 3775 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 3776 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 3777 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 3778 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 3779 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 3780 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 3781 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 3782 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 3783 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 3784 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 3785 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 3786 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 3787 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 3788 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 3789 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 3790 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 3791 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 3792 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 3793 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 3794 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 3795 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 3796 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 3797 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 3798 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 3799 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 3800 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 3801 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 3802 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 3803 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 3804 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 3805 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 3806 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 3807 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 3808 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 3809 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 3810 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 3811 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 3812 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 3813 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 3814 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 3815 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 3816 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 3817 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 3818 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 3819 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 3820 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 3821 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 3822 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 3823 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 3824 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 3825 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 3826 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 3827 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 3828 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 3829 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 3830 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 3831 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 3832 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 3833 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 3834 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 3835 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 3836 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 3837 | .ilen = 496, |
| 3838 | .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA" |
| 3839 | "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4" |
| 3840 | "\x81\x01\x04\x00\x76\xFA\xED\xD3" |
| 3841 | "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64" |
| 3842 | "\xCA\x4E\x90\xE0\xC0\x63\x28\x92" |
| 3843 | "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77" |
| 3844 | "\x69\x56\xD0\x19\xAD\x00\x2D\x97" |
| 3845 | "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2" |
| 3846 | "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B" |
| 3847 | "\xEA\x32\x56\xE4\x0B\xAF\x27\x36" |
| 3848 | "\xAF\x08\xB9\x61\xB7\x48\x23\x27" |
| 3849 | "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7" |
| 3850 | "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6" |
| 3851 | "\x9D\xDA\x04\x59\xE2\x09\x48\x7E" |
| 3852 | "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E" |
| 3853 | "\x0D\x19\xFA\x33\x0F\xEE\x36\x68" |
| 3854 | "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA" |
| 3855 | "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16" |
| 3856 | "\x45\x86\x50\x01\x70\x35\x99\x92" |
| 3857 | "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B" |
| 3858 | "\xD2\x04\x84\x90\xC4\x27\xDF\x0A" |
| 3859 | "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA" |
| 3860 | "\xB3\x18\x5C\xC3\x93\x63\x5A\x68" |
| 3861 | "\x77\x02\xBA\xED\x62\x71\xB1\xD9" |
| 3862 | "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E" |
| 3863 | "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4" |
| 3864 | "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70" |
| 3865 | "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD" |
| 3866 | "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1" |
| 3867 | "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2" |
| 3868 | "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52" |
| 3869 | "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3" |
| 3870 | "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F" |
| 3871 | "\xDB\xEA\x84\x13\x26\x6C\x85\x4E" |
| 3872 | "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06" |
| 3873 | "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2" |
| 3874 | "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C" |
| 3875 | "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5" |
| 3876 | "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7" |
| 3877 | "\xD1\x17\x25\x08\xF9\xA9\xA6\x67" |
| 3878 | "\x38\x80\xD1\x22\xAB\x1A\xD7\x26" |
| 3879 | "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57" |
| 3880 | "\x31\xEC\xC9\xED\xDB\x79\xC0\x48" |
| 3881 | "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E" |
| 3882 | "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC" |
| 3883 | "\x58\xC8\xDE\x51\x4E\x17\x15\x11" |
| 3884 | "\x66\x58\xB6\x90\xDC\xDF\xA1\x49" |
| 3885 | "\xCA\x79\xE9\x31\x31\x42\xDC\x56" |
| 3886 | "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19" |
| 3887 | "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90" |
| 3888 | "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B" |
| 3889 | "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46" |
| 3890 | "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84" |
| 3891 | "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA" |
| 3892 | "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F" |
| 3893 | "\xE4\x82\x77\xCE\x87\xC0\x09\xF0" |
| 3894 | "\xD6\x10\x9E\x34\xE1\x0C\x67\x55" |
| 3895 | "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA" |
| 3896 | "\xF2\x7B\xBE\x75\x07\x42\x9D\x99" |
| 3897 | "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6" |
| 3898 | "\x93\x03\xD7\x51\x09\xFA\xBE\x68" |
| 3899 | "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63", |
| 3900 | .rlen = 496, |
| 3901 | .also_non_np = 1, |
| 3902 | .np = 2, |
| 3903 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3904 | }, |
| 3905 | }; |
| 3906 | |
| 3907 | static struct cipher_testvec des3_ede_dec_tv_template[] = { |
| 3908 | { /* These are from openssl */ |
| 3909 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 3910 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 3911 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 3912 | .klen = 24, |
| 3913 | .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 3914 | .ilen = 8, |
| 3915 | .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 3916 | .rlen = 8, |
| 3917 | }, { |
| 3918 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 3919 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 3920 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 3921 | .klen = 24, |
| 3922 | .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 3923 | .ilen = 8, |
| 3924 | .result = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 3925 | .rlen = 8, |
| 3926 | }, { |
| 3927 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 3928 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 3929 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 3930 | .klen = 24, |
| 3931 | .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 3932 | .ilen = 8, |
| 3933 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3934 | .rlen = 8, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 3935 | }, { /* Generated with Crypto++ */ |
| 3936 | .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67" |
| 3937 | "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D" |
| 3938 | "\xCE\xEB\xB4\x51\x72\xB4\x51\x72", |
| 3939 | .klen = 24, |
| 3940 | .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA" |
| 3941 | "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4" |
| 3942 | "\x81\x01\x04\x00\x76\xFA\xED\xD3" |
| 3943 | "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64" |
| 3944 | "\xCA\x4E\x90\xE0\xC0\x63\x28\x92" |
| 3945 | "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77" |
| 3946 | "\x69\x56\xD0\x19\xAD\x00\x2D\x97" |
| 3947 | "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2" |
| 3948 | "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B" |
| 3949 | "\xEA\x32\x56\xE4\x0B\xAF\x27\x36" |
| 3950 | "\xAF\x08\xB9\x61\xB7\x48\x23\x27" |
| 3951 | "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7" |
| 3952 | "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6" |
| 3953 | "\x9D\xDA\x04\x59\xE2\x09\x48\x7E" |
| 3954 | "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E" |
| 3955 | "\x0D\x19\xFA\x33\x0F\xEE\x36\x68" |
| 3956 | "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA" |
| 3957 | "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16" |
| 3958 | "\x45\x86\x50\x01\x70\x35\x99\x92" |
| 3959 | "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B" |
| 3960 | "\xD2\x04\x84\x90\xC4\x27\xDF\x0A" |
| 3961 | "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA" |
| 3962 | "\xB3\x18\x5C\xC3\x93\x63\x5A\x68" |
| 3963 | "\x77\x02\xBA\xED\x62\x71\xB1\xD9" |
| 3964 | "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E" |
| 3965 | "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4" |
| 3966 | "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70" |
| 3967 | "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD" |
| 3968 | "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1" |
| 3969 | "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2" |
| 3970 | "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52" |
| 3971 | "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3" |
| 3972 | "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F" |
| 3973 | "\xDB\xEA\x84\x13\x26\x6C\x85\x4E" |
| 3974 | "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06" |
| 3975 | "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2" |
| 3976 | "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C" |
| 3977 | "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5" |
| 3978 | "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7" |
| 3979 | "\xD1\x17\x25\x08\xF9\xA9\xA6\x67" |
| 3980 | "\x38\x80\xD1\x22\xAB\x1A\xD7\x26" |
| 3981 | "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57" |
| 3982 | "\x31\xEC\xC9\xED\xDB\x79\xC0\x48" |
| 3983 | "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E" |
| 3984 | "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC" |
| 3985 | "\x58\xC8\xDE\x51\x4E\x17\x15\x11" |
| 3986 | "\x66\x58\xB6\x90\xDC\xDF\xA1\x49" |
| 3987 | "\xCA\x79\xE9\x31\x31\x42\xDC\x56" |
| 3988 | "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19" |
| 3989 | "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90" |
| 3990 | "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B" |
| 3991 | "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46" |
| 3992 | "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84" |
| 3993 | "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA" |
| 3994 | "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F" |
| 3995 | "\xE4\x82\x77\xCE\x87\xC0\x09\xF0" |
| 3996 | "\xD6\x10\x9E\x34\xE1\x0C\x67\x55" |
| 3997 | "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA" |
| 3998 | "\xF2\x7B\xBE\x75\x07\x42\x9D\x99" |
| 3999 | "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6" |
| 4000 | "\x93\x03\xD7\x51\x09\xFA\xBE\x68" |
| 4001 | "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63", |
| 4002 | .ilen = 496, |
| 4003 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4004 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4005 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4006 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4007 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4008 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4009 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4010 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4011 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4012 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4013 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4014 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4015 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4016 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4017 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4018 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4019 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4020 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4021 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4022 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4023 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4024 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4025 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4026 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4027 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4028 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4029 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4030 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4031 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4032 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4033 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4034 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4035 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4036 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4037 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4038 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4039 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4040 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4041 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4042 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4043 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4044 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4045 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4046 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4047 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4048 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4049 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4050 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4051 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4052 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4053 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4054 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4055 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4056 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4057 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4058 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4059 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4060 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4061 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4062 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4063 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4064 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4065 | .rlen = 496, |
| 4066 | .also_non_np = 1, |
| 4067 | .np = 2, |
| 4068 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4069 | }, |
| 4070 | }; |
| 4071 | |
| 4072 | static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = { |
| 4073 | { /* Generated from openssl */ |
| 4074 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 4075 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 4076 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 4077 | .klen = 24, |
| 4078 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 4079 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 4080 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 4081 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 4082 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 4083 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 4084 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 4085 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 4086 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 4087 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 4088 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 4089 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 4090 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 4091 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 4092 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 4093 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 4094 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 4095 | .ilen = 128, |
| 4096 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 4097 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 4098 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 4099 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 4100 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 4101 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 4102 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 4103 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 4104 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 4105 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 4106 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 4107 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 4108 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 4109 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 4110 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 4111 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 4112 | .rlen = 128, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 4113 | }, { /* Generated with Crypto++ */ |
| 4114 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4115 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4116 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4117 | .klen = 24, |
| 4118 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 4119 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 4120 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4121 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4122 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4123 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4124 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4125 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4126 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4127 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4128 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4129 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4130 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4131 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4132 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4133 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4134 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4135 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4136 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4137 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4138 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4139 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4140 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4141 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4142 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4143 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4144 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4145 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4146 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4147 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4148 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4149 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4150 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4151 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4152 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4153 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4154 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4155 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4156 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4157 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4158 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4159 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4160 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4161 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4162 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4163 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4164 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4165 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4166 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4167 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4168 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4169 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4170 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4171 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4172 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4173 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4174 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4175 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4176 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4177 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4178 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4179 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4180 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4181 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4182 | .ilen = 496, |
| 4183 | .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84" |
| 4184 | "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5" |
| 4185 | "\x1E\x68\x8E\x85\x12\x86\x1D\x38" |
| 4186 | "\x1C\x91\x40\xCC\x69\x6A\xD5\x35" |
| 4187 | "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF" |
| 4188 | "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C" |
| 4189 | "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37" |
| 4190 | "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90" |
| 4191 | "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B" |
| 4192 | "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B" |
| 4193 | "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9" |
| 4194 | "\xE6\xA5\xAD\x25\xE6\x17\x69\x63" |
| 4195 | "\x11\x35\x61\x94\x88\x7B\x1C\x48" |
| 4196 | "\xF1\x24\x20\x29\x6B\x93\x1A\x8E" |
| 4197 | "\x43\x03\x89\xD8\xB1\xDA\x47\x7B" |
| 4198 | "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB" |
| 4199 | "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8" |
| 4200 | "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73" |
| 4201 | "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6" |
| 4202 | "\x67\x88\xA5\x20\x6F\x5F\x97\xC7" |
| 4203 | "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7" |
| 4204 | "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7" |
| 4205 | "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E" |
| 4206 | "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6" |
| 4207 | "\xEE\xFE\x55\xA3\x29\x65\xE0\x12" |
| 4208 | "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96" |
| 4209 | "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF" |
| 4210 | "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE" |
| 4211 | "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99" |
| 4212 | "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D" |
| 4213 | "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6" |
| 4214 | "\x2B\x1C\xD5\xFB\x96\x24\x60\x60" |
| 4215 | "\x54\x40\xB8\x62\xA4\xF8\x46\x95" |
| 4216 | "\x73\x28\xA3\xA6\x16\x2B\x17\xE7" |
| 4217 | "\x7A\xF8\x62\x54\x3B\x64\x69\xE1" |
| 4218 | "\x71\x34\x29\x5B\x4E\x05\x9B\xFA" |
| 4219 | "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59" |
| 4220 | "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2" |
| 4221 | "\x3B\x8E\x71\x69\x6A\x91\xB6\x65" |
| 4222 | "\x32\x09\xB8\xE4\x09\x1F\xEA\x39" |
| 4223 | "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0" |
| 4224 | "\x73\x50\x08\x56\x20\x9B\x94\x23" |
| 4225 | "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F" |
| 4226 | "\x41\x5B\xCC\xE2\x18\xAE\x62\x89" |
| 4227 | "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5" |
| 4228 | "\x25\xC9\x48\x97\xB5\xD3\x17\xD5" |
| 4229 | "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B" |
| 4230 | "\x57\x08\xAE\x91\xF2\xB7\x57\x89" |
| 4231 | "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF" |
| 4232 | "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02" |
| 4233 | "\xD4\x56\x42\x79\x79\x7F\x2A\x77" |
| 4234 | "\x25\xE9\x7D\xC1\x88\x19\x2B\x49" |
| 4235 | "\x6F\x46\x59\xAB\x56\x1F\x61\xE0" |
| 4236 | "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12" |
| 4237 | "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8" |
| 4238 | "\x21\x85\x1A\x62\x7E\x34\xBB\xEB" |
| 4239 | "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5" |
| 4240 | "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38" |
| 4241 | "\x02\x80\xA3\x28\x22\x75\xE1\xE9" |
| 4242 | "\x90\xE9\xFA\x4B\x00\x10\xAC\x58" |
| 4243 | "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F" |
| 4244 | "\x95\x63\x73\xA2\x44\xAC\xF8\xA5", |
| 4245 | .rlen = 496, |
| 4246 | .also_non_np = 1, |
| 4247 | .np = 2, |
| 4248 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4249 | }, |
| 4250 | }; |
| 4251 | |
| 4252 | static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = { |
| 4253 | { /* Generated from openssl */ |
| 4254 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 4255 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 4256 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 4257 | .klen = 24, |
| 4258 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 4259 | .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 4260 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 4261 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 4262 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 4263 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 4264 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 4265 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 4266 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 4267 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 4268 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 4269 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 4270 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 4271 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 4272 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 4273 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 4274 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 4275 | .ilen = 128, |
| 4276 | .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 4277 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 4278 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 4279 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 4280 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 4281 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 4282 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 4283 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 4284 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 4285 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 4286 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 4287 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 4288 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 4289 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 4290 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 4291 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 4292 | .rlen = 128, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 4293 | }, { /* Generated with Crypto++ */ |
| 4294 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4295 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4296 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4297 | .klen = 24, |
| 4298 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 4299 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 4300 | .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84" |
| 4301 | "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5" |
| 4302 | "\x1E\x68\x8E\x85\x12\x86\x1D\x38" |
| 4303 | "\x1C\x91\x40\xCC\x69\x6A\xD5\x35" |
| 4304 | "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF" |
| 4305 | "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C" |
| 4306 | "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37" |
| 4307 | "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90" |
| 4308 | "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B" |
| 4309 | "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B" |
| 4310 | "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9" |
| 4311 | "\xE6\xA5\xAD\x25\xE6\x17\x69\x63" |
| 4312 | "\x11\x35\x61\x94\x88\x7B\x1C\x48" |
| 4313 | "\xF1\x24\x20\x29\x6B\x93\x1A\x8E" |
| 4314 | "\x43\x03\x89\xD8\xB1\xDA\x47\x7B" |
| 4315 | "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB" |
| 4316 | "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8" |
| 4317 | "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73" |
| 4318 | "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6" |
| 4319 | "\x67\x88\xA5\x20\x6F\x5F\x97\xC7" |
| 4320 | "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7" |
| 4321 | "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7" |
| 4322 | "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E" |
| 4323 | "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6" |
| 4324 | "\xEE\xFE\x55\xA3\x29\x65\xE0\x12" |
| 4325 | "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96" |
| 4326 | "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF" |
| 4327 | "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE" |
| 4328 | "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99" |
| 4329 | "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D" |
| 4330 | "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6" |
| 4331 | "\x2B\x1C\xD5\xFB\x96\x24\x60\x60" |
| 4332 | "\x54\x40\xB8\x62\xA4\xF8\x46\x95" |
| 4333 | "\x73\x28\xA3\xA6\x16\x2B\x17\xE7" |
| 4334 | "\x7A\xF8\x62\x54\x3B\x64\x69\xE1" |
| 4335 | "\x71\x34\x29\x5B\x4E\x05\x9B\xFA" |
| 4336 | "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59" |
| 4337 | "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2" |
| 4338 | "\x3B\x8E\x71\x69\x6A\x91\xB6\x65" |
| 4339 | "\x32\x09\xB8\xE4\x09\x1F\xEA\x39" |
| 4340 | "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0" |
| 4341 | "\x73\x50\x08\x56\x20\x9B\x94\x23" |
| 4342 | "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F" |
| 4343 | "\x41\x5B\xCC\xE2\x18\xAE\x62\x89" |
| 4344 | "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5" |
| 4345 | "\x25\xC9\x48\x97\xB5\xD3\x17\xD5" |
| 4346 | "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B" |
| 4347 | "\x57\x08\xAE\x91\xF2\xB7\x57\x89" |
| 4348 | "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF" |
| 4349 | "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02" |
| 4350 | "\xD4\x56\x42\x79\x79\x7F\x2A\x77" |
| 4351 | "\x25\xE9\x7D\xC1\x88\x19\x2B\x49" |
| 4352 | "\x6F\x46\x59\xAB\x56\x1F\x61\xE0" |
| 4353 | "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12" |
| 4354 | "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8" |
| 4355 | "\x21\x85\x1A\x62\x7E\x34\xBB\xEB" |
| 4356 | "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5" |
| 4357 | "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38" |
| 4358 | "\x02\x80\xA3\x28\x22\x75\xE1\xE9" |
| 4359 | "\x90\xE9\xFA\x4B\x00\x10\xAC\x58" |
| 4360 | "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F" |
| 4361 | "\x95\x63\x73\xA2\x44\xAC\xF8\xA5", |
| 4362 | .ilen = 496, |
| 4363 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4364 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4365 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4366 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4367 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4368 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4369 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4370 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4371 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4372 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4373 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4374 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4375 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4376 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4377 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4378 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4379 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4380 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4381 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4382 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4383 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4384 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4385 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4386 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4387 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4388 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4389 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4390 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4391 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4392 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4393 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4394 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4395 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4396 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4397 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4398 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4399 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4400 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4401 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4402 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4403 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4404 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4405 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4406 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4407 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4408 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4409 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4410 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4411 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4412 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4413 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4414 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4415 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4416 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4417 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4418 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4419 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4420 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4421 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4422 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4423 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4424 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4425 | .rlen = 496, |
| 4426 | .also_non_np = 1, |
| 4427 | .np = 2, |
| 4428 | .tap = { 496 - 16, 16 }, |
| 4429 | }, |
| 4430 | }; |
| 4431 | |
| 4432 | static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = { |
| 4433 | { /* Generated with Crypto++ */ |
| 4434 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4435 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4436 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4437 | .klen = 24, |
| 4438 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 4439 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 4440 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4441 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4442 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4443 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4444 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4445 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4446 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4447 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4448 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4449 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4450 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4451 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4452 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4453 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4454 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4455 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4456 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4457 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4458 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4459 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4460 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4461 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4462 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4463 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4464 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4465 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4466 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4467 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4468 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4469 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4470 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4471 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4472 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4473 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4474 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4475 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4476 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4477 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4478 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4479 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4480 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4481 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4482 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4483 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4484 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4485 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4486 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4487 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4488 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4489 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4490 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4491 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4492 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4493 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4494 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4495 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4496 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4497 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4498 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4499 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4500 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4501 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4502 | .ilen = 496, |
| 4503 | .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF" |
| 4504 | "\x19\xCD\x6F\x32\x53\x05\x22\x15" |
| 4505 | "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9" |
| 4506 | "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4" |
| 4507 | "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE" |
| 4508 | "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E" |
| 4509 | "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C" |
| 4510 | "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA" |
| 4511 | "\x13\x78\xDC\x89\x12\x12\x43\xFA" |
| 4512 | "\xF6\x12\xEF\x8D\x87\x62\x78\x83" |
| 4513 | "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B" |
| 4514 | "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03" |
| 4515 | "\xBF\x45\x73\xD4\xE5\x59\x95\xD1" |
| 4516 | "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F" |
| 4517 | "\xA4\xD2\x39\x80\xAA\x50\x23\xF0" |
| 4518 | "\x74\x88\x3D\xA8\x6A\x18\x79\x3B" |
| 4519 | "\xC4\x96\x6C\x8D\x22\x40\x92\x6E" |
| 4520 | "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7" |
| 4521 | "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC" |
| 4522 | "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA" |
| 4523 | "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B" |
| 4524 | "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B" |
| 4525 | "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D" |
| 4526 | "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01" |
| 4527 | "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0" |
| 4528 | "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA" |
| 4529 | "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA" |
| 4530 | "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2" |
| 4531 | "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F" |
| 4532 | "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9" |
| 4533 | "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C" |
| 4534 | "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4" |
| 4535 | "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08" |
| 4536 | "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D" |
| 4537 | "\x14\x28\x0C\xCF\x99\x13\x7A\xF1" |
| 4538 | "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1" |
| 4539 | "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E" |
| 4540 | "\x83\x37\x4F\x1F\x48\x30\xED\x04" |
| 4541 | "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C" |
| 4542 | "\x41\x8F\x63\x37\x78\x2F\x86\xA6" |
| 4543 | "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67" |
| 4544 | "\x52\x71\xC3\x8E\xF8\x26\x93\x72" |
| 4545 | "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A" |
| 4546 | "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C" |
| 4547 | "\x52\xBC\x8B\x05\x56\xB2\xBC\x31" |
| 4548 | "\x9B\x74\xB9\x29\x29\x96\x9A\x50" |
| 4549 | "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4" |
| 4550 | "\xD3\x05\x7E\x59\x55\xC3\xF4\x90" |
| 4551 | "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1" |
| 4552 | "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC" |
| 4553 | "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA" |
| 4554 | "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65" |
| 4555 | "\x32\xDC\x48\xC4\xF2\x00\x6B\x77" |
| 4556 | "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A" |
| 4557 | "\xA5\x3A\x62\xC8\x91\xB1\x03\x65" |
| 4558 | "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC" |
| 4559 | "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0" |
| 4560 | "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0" |
| 4561 | "\x40\x77\x72\xC2\xEA\x0E\x3A\x78" |
| 4562 | "\x46\xB9\x91\xB6\xE7\x3D\x51\x42" |
| 4563 | "\xFD\x51\xB0\xC6\x2C\x63\x13\x78" |
| 4564 | "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34", |
| 4565 | .rlen = 496, |
| 4566 | .also_non_np = 1, |
| 4567 | .np = 2, |
| 4568 | .tap = { 496 - 16, 16 }, |
| 4569 | }, { /* Generated with Crypto++ */ |
| 4570 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4571 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4572 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4573 | .klen = 24, |
| 4574 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 4575 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 4576 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4577 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4578 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4579 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4580 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4581 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4582 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4583 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4584 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4585 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4586 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4587 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4588 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4589 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4590 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4591 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4592 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4593 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4594 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4595 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4596 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4597 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4598 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4599 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4600 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4601 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4602 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4603 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4604 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4605 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4606 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4607 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4608 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4609 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4610 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4611 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4612 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4613 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4614 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4615 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4616 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4617 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4618 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4619 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4620 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4621 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4622 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4623 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4624 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4625 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4626 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4627 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4628 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4629 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4630 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4631 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4632 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4633 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4634 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4635 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4636 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4637 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47" |
| 4638 | "\x2E\xB1\x18", |
| 4639 | .ilen = 499, |
| 4640 | .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4" |
| 4641 | "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7" |
| 4642 | "\x94\x9D\x1B\xFF\x8E\x95\x57\x89" |
| 4643 | "\x8C\x2E\x33\x70\x43\x61\xE6\xD2" |
| 4644 | "\x82\x33\x63\xB6\xC4\x34\x5E\xF8" |
| 4645 | "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA" |
| 4646 | "\x7C\xA0\x55\x89\x2E\xE1\x85\x25" |
| 4647 | "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF" |
| 4648 | "\x08\x2E\x69\xD4\x54\xDE\x22\x84" |
| 4649 | "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05" |
| 4650 | "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F" |
| 4651 | "\x58\x5C\x46\xEA\x07\x40\xDA\xE1" |
| 4652 | "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54" |
| 4653 | "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5" |
| 4654 | "\x97\x5D\x61\x78\x2E\x46\xEC\x6A" |
| 4655 | "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29" |
| 4656 | "\x9F\x17\x33\x24\xD8\xB9\xB2\x05" |
| 4657 | "\x93\x88\xEA\xF7\xA0\x70\x69\x49" |
| 4658 | "\x88\x6B\x73\x40\x41\x8D\xD9\xD9" |
| 4659 | "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A" |
| 4660 | "\x66\xE1\xDA\xED\x10\xFF\x69\x1D" |
| 4661 | "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2" |
| 4662 | "\x45\x54\x8B\xA3\x70\x23\xB4\x5E" |
| 4663 | "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2" |
| 4664 | "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2" |
| 4665 | "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8" |
| 4666 | "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0" |
| 4667 | "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E" |
| 4668 | "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71" |
| 4669 | "\xCE\x05\x49\x89\xBA\xD6\x72\xE7" |
| 4670 | "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02" |
| 4671 | "\xD6\x43\x22\xAF\xA2\xE4\x80\x85" |
| 4672 | "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF" |
| 4673 | "\x5C\x82\x2E\x98\x0D\x30\x41\x6B" |
| 4674 | "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D" |
| 4675 | "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58" |
| 4676 | "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40" |
| 4677 | "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC" |
| 4678 | "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B" |
| 4679 | "\xC6\x12\x13\x4F\xCB\x35\xBA\x35" |
| 4680 | "\xDD\x7A\x36\x9C\x12\x57\x55\x83" |
| 4681 | "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C" |
| 4682 | "\x38\xCF\xBD\x79\x5B\x13\x4D\x97" |
| 4683 | "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4" |
| 4684 | "\x98\xE2\xBD\x77\x6B\x53\x39\x1A" |
| 4685 | "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69" |
| 4686 | "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15" |
| 4687 | "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F" |
| 4688 | "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F" |
| 4689 | "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA" |
| 4690 | "\x8A\x19\x08\xE1\x08\x48\x59\x51" |
| 4691 | "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F" |
| 4692 | "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA" |
| 4693 | "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4" |
| 4694 | "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED" |
| 4695 | "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75" |
| 4696 | "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4" |
| 4697 | "\x97\x73\x28\xDE\xCF\xAF\x82\xBD" |
| 4698 | "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42" |
| 4699 | "\x42\x39\x7C\x53\xA4\xD4\xDD\x40" |
| 4700 | "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7" |
| 4701 | "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B" |
| 4702 | "\xF2\x79\xD9", |
| 4703 | .rlen = 499, |
| 4704 | .also_non_np = 1, |
| 4705 | .np = 2, |
| 4706 | .tap = { 499 - 16, 16 }, |
| 4707 | }, |
| 4708 | }; |
| 4709 | |
| 4710 | static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = { |
| 4711 | { /* Generated with Crypto++ */ |
| 4712 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4713 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4714 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4715 | .klen = 24, |
| 4716 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 4717 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 4718 | .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF" |
| 4719 | "\x19\xCD\x6F\x32\x53\x05\x22\x15" |
| 4720 | "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9" |
| 4721 | "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4" |
| 4722 | "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE" |
| 4723 | "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E" |
| 4724 | "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C" |
| 4725 | "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA" |
| 4726 | "\x13\x78\xDC\x89\x12\x12\x43\xFA" |
| 4727 | "\xF6\x12\xEF\x8D\x87\x62\x78\x83" |
| 4728 | "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B" |
| 4729 | "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03" |
| 4730 | "\xBF\x45\x73\xD4\xE5\x59\x95\xD1" |
| 4731 | "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F" |
| 4732 | "\xA4\xD2\x39\x80\xAA\x50\x23\xF0" |
| 4733 | "\x74\x88\x3D\xA8\x6A\x18\x79\x3B" |
| 4734 | "\xC4\x96\x6C\x8D\x22\x40\x92\x6E" |
| 4735 | "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7" |
| 4736 | "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC" |
| 4737 | "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA" |
| 4738 | "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B" |
| 4739 | "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B" |
| 4740 | "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D" |
| 4741 | "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01" |
| 4742 | "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0" |
| 4743 | "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA" |
| 4744 | "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA" |
| 4745 | "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2" |
| 4746 | "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F" |
| 4747 | "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9" |
| 4748 | "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C" |
| 4749 | "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4" |
| 4750 | "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08" |
| 4751 | "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D" |
| 4752 | "\x14\x28\x0C\xCF\x99\x13\x7A\xF1" |
| 4753 | "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1" |
| 4754 | "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E" |
| 4755 | "\x83\x37\x4F\x1F\x48\x30\xED\x04" |
| 4756 | "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C" |
| 4757 | "\x41\x8F\x63\x37\x78\x2F\x86\xA6" |
| 4758 | "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67" |
| 4759 | "\x52\x71\xC3\x8E\xF8\x26\x93\x72" |
| 4760 | "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A" |
| 4761 | "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C" |
| 4762 | "\x52\xBC\x8B\x05\x56\xB2\xBC\x31" |
| 4763 | "\x9B\x74\xB9\x29\x29\x96\x9A\x50" |
| 4764 | "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4" |
| 4765 | "\xD3\x05\x7E\x59\x55\xC3\xF4\x90" |
| 4766 | "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1" |
| 4767 | "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC" |
| 4768 | "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA" |
| 4769 | "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65" |
| 4770 | "\x32\xDC\x48\xC4\xF2\x00\x6B\x77" |
| 4771 | "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A" |
| 4772 | "\xA5\x3A\x62\xC8\x91\xB1\x03\x65" |
| 4773 | "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC" |
| 4774 | "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0" |
| 4775 | "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0" |
| 4776 | "\x40\x77\x72\xC2\xEA\x0E\x3A\x78" |
| 4777 | "\x46\xB9\x91\xB6\xE7\x3D\x51\x42" |
| 4778 | "\xFD\x51\xB0\xC6\x2C\x63\x13\x78" |
| 4779 | "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34", |
| 4780 | .ilen = 496, |
| 4781 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4782 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4783 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4784 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4785 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4786 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4787 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4788 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4789 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4790 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4791 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4792 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4793 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4794 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4795 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4796 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4797 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4798 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4799 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4800 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4801 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4802 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4803 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4804 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4805 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4806 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4807 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4808 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4809 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4810 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4811 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4812 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4813 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4814 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4815 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4816 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4817 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4818 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4819 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4820 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4821 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4822 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4823 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4824 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4825 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4826 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4827 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4828 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4829 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4830 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4831 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4832 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4833 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4834 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4835 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4836 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4837 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4838 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4839 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4840 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4841 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4842 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4843 | .rlen = 496, |
| 4844 | .also_non_np = 1, |
| 4845 | .np = 2, |
| 4846 | .tap = { 496 - 16, 16 }, |
| 4847 | }, { /* Generated with Crypto++ */ |
| 4848 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4849 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4850 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4851 | .klen = 24, |
| 4852 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 4853 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 4854 | .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4" |
| 4855 | "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7" |
| 4856 | "\x94\x9D\x1B\xFF\x8E\x95\x57\x89" |
| 4857 | "\x8C\x2E\x33\x70\x43\x61\xE6\xD2" |
| 4858 | "\x82\x33\x63\xB6\xC4\x34\x5E\xF8" |
| 4859 | "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA" |
| 4860 | "\x7C\xA0\x55\x89\x2E\xE1\x85\x25" |
| 4861 | "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF" |
| 4862 | "\x08\x2E\x69\xD4\x54\xDE\x22\x84" |
| 4863 | "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05" |
| 4864 | "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F" |
| 4865 | "\x58\x5C\x46\xEA\x07\x40\xDA\xE1" |
| 4866 | "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54" |
| 4867 | "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5" |
| 4868 | "\x97\x5D\x61\x78\x2E\x46\xEC\x6A" |
| 4869 | "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29" |
| 4870 | "\x9F\x17\x33\x24\xD8\xB9\xB2\x05" |
| 4871 | "\x93\x88\xEA\xF7\xA0\x70\x69\x49" |
| 4872 | "\x88\x6B\x73\x40\x41\x8D\xD9\xD9" |
| 4873 | "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A" |
| 4874 | "\x66\xE1\xDA\xED\x10\xFF\x69\x1D" |
| 4875 | "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2" |
| 4876 | "\x45\x54\x8B\xA3\x70\x23\xB4\x5E" |
| 4877 | "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2" |
| 4878 | "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2" |
| 4879 | "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8" |
| 4880 | "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0" |
| 4881 | "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E" |
| 4882 | "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71" |
| 4883 | "\xCE\x05\x49\x89\xBA\xD6\x72\xE7" |
| 4884 | "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02" |
| 4885 | "\xD6\x43\x22\xAF\xA2\xE4\x80\x85" |
| 4886 | "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF" |
| 4887 | "\x5C\x82\x2E\x98\x0D\x30\x41\x6B" |
| 4888 | "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D" |
| 4889 | "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58" |
| 4890 | "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40" |
| 4891 | "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC" |
| 4892 | "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B" |
| 4893 | "\xC6\x12\x13\x4F\xCB\x35\xBA\x35" |
| 4894 | "\xDD\x7A\x36\x9C\x12\x57\x55\x83" |
| 4895 | "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C" |
| 4896 | "\x38\xCF\xBD\x79\x5B\x13\x4D\x97" |
| 4897 | "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4" |
| 4898 | "\x98\xE2\xBD\x77\x6B\x53\x39\x1A" |
| 4899 | "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69" |
| 4900 | "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15" |
| 4901 | "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F" |
| 4902 | "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F" |
| 4903 | "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA" |
| 4904 | "\x8A\x19\x08\xE1\x08\x48\x59\x51" |
| 4905 | "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F" |
| 4906 | "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA" |
| 4907 | "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4" |
| 4908 | "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED" |
| 4909 | "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75" |
| 4910 | "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4" |
| 4911 | "\x97\x73\x28\xDE\xCF\xAF\x82\xBD" |
| 4912 | "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42" |
| 4913 | "\x42\x39\x7C\x53\xA4\xD4\xDD\x40" |
| 4914 | "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7" |
| 4915 | "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B" |
| 4916 | "\xF2\x79\xD9", |
| 4917 | .ilen = 499, |
| 4918 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4919 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4920 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4921 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4922 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4923 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4924 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4925 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4926 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4927 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4928 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4929 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4930 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4931 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4932 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4933 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4934 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4935 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4936 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4937 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4938 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4939 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4940 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4941 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4942 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4943 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4944 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4945 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4946 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4947 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4948 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4949 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4950 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4951 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4952 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4953 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4954 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4955 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4956 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4957 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4958 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4959 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4960 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4961 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4962 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4963 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4964 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4965 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4966 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4967 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4968 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4969 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4970 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4971 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4972 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4973 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4974 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4975 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4976 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4977 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4978 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4979 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47" |
| 4980 | "\x2E\xB1\x18", |
| 4981 | .rlen = 499, |
| 4982 | .also_non_np = 1, |
| 4983 | .np = 2, |
| 4984 | .tap = { 499 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4985 | }, |
| 4986 | }; |
| 4987 | |
| 4988 | /* |
| 4989 | * Blowfish test vectors. |
| 4990 | */ |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 4991 | #define BF_ENC_TEST_VECTORS 7 |
| 4992 | #define BF_DEC_TEST_VECTORS 7 |
| 4993 | #define BF_CBC_ENC_TEST_VECTORS 2 |
| 4994 | #define BF_CBC_DEC_TEST_VECTORS 2 |
| 4995 | #define BF_CTR_ENC_TEST_VECTORS 2 |
| 4996 | #define BF_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4997 | |
| 4998 | static struct cipher_testvec bf_enc_tv_template[] = { |
| 4999 | { /* DES test vectors from OpenSSL */ |
| 5000 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5001 | .klen = 8, |
| 5002 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5003 | .ilen = 8, |
| 5004 | .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 5005 | .rlen = 8, |
| 5006 | }, { |
| 5007 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 5008 | .klen = 8, |
| 5009 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 5010 | .ilen = 8, |
| 5011 | .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 5012 | .rlen = 8, |
| 5013 | }, { |
| 5014 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 5015 | .klen = 8, |
| 5016 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5017 | .ilen = 8, |
| 5018 | .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 5019 | .rlen = 8, |
| 5020 | }, { /* Vary the keylength... */ |
| 5021 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5022 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 5023 | .klen = 16, |
| 5024 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5025 | .ilen = 8, |
| 5026 | .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 5027 | .rlen = 8, |
| 5028 | }, { |
| 5029 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5030 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5031 | "\x00\x11\x22\x33\x44", |
| 5032 | .klen = 21, |
| 5033 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5034 | .ilen = 8, |
| 5035 | .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 5036 | .rlen = 8, |
| 5037 | }, { /* Generated with bf488 */ |
| 5038 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5039 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5040 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 5041 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 5042 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 5043 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 5044 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 5045 | .klen = 56, |
| 5046 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5047 | .ilen = 8, |
| 5048 | .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 5049 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5050 | }, { /* Generated with Crypto++ */ |
| 5051 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5052 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5053 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5054 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5055 | .klen = 32, |
| 5056 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5057 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5058 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5059 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5060 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5061 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5062 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5063 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5064 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5065 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5066 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5067 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5068 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5069 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5070 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5071 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5072 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5073 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5074 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5075 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5076 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5077 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5078 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5079 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5080 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5081 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5082 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5083 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5084 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5085 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5086 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5087 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5088 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5089 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5090 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5091 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5092 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5093 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5094 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5095 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5096 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5097 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5098 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5099 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5100 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5101 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5102 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5103 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5104 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5105 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5106 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5107 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5108 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5109 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5110 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5111 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5112 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5113 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5114 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5115 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5116 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5117 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5118 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 5119 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5120 | .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 5121 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 5122 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 5123 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5124 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B" |
| 5125 | "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9" |
| 5126 | "\xCD\xF3\x88\x39\x39\x7A\xDF\x19" |
| 5127 | "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86" |
| 5128 | "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5" |
| 5129 | "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D" |
| 5130 | "\x6E\x66\xAF\x38\x6C\xD3\x13\xED" |
| 5131 | "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A" |
| 5132 | "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B" |
| 5133 | "\x9D\x5B\x54\x65\x4F\x16\x8A\x97" |
| 5134 | "\xF3\xF6\xD4\xAA\x87\x36\x77\x72" |
| 5135 | "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D" |
| 5136 | "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F" |
| 5137 | "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8" |
| 5138 | "\x47\x82\x98\x23\x33\x36\xBC\x1B" |
| 5139 | "\x36\xE7\xF6\xCF\x97\x37\x16\xC0" |
| 5140 | "\x87\x31\x8B\xB0\xDB\x19\x42\xA5" |
| 5141 | "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9" |
| 5142 | "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71" |
| 5143 | "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B" |
| 5144 | "\x60\x00\x55\x57\x06\x8B\xD5\xB3" |
| 5145 | "\x86\x30\x78\xDA\x33\x9A\x9D\xCC" |
| 5146 | "\xBA\x0B\x81\x06\x77\x43\xC7\xC9" |
| 5147 | "\xDB\x37\x60\x11\x45\x59\x6D\x2D" |
| 5148 | "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C" |
| 5149 | "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B" |
| 5150 | "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9" |
| 5151 | "\x98\xE4\x7F\xC3\x6E\x51\x24\x70" |
| 5152 | "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3" |
| 5153 | "\xE0\x8A\x44\xA2\x5C\x94\x74\x34" |
| 5154 | "\x37\x52\x7C\x03\xE8\x8E\x97\xE1" |
| 5155 | "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F" |
| 5156 | "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45" |
| 5157 | "\x55\xC5\xA7\xA3\x19\x80\x28\x51" |
| 5158 | "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB" |
| 5159 | "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC" |
| 5160 | "\x3E\x42\x14\x49\x88\x51\xBF\x68" |
| 5161 | "\x45\x75\x27\x1B\x0A\x72\xED\xAF" |
| 5162 | "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3" |
| 5163 | "\x34\xDD\x91\x19\x42\x3A\xCB\xDA" |
| 5164 | "\x38\xFA\x3C\x93\x62\xF2\xE3\x81" |
| 5165 | "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09" |
| 5166 | "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2" |
| 5167 | "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E" |
| 5168 | "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC" |
| 5169 | "\x36\x56\x6E\x85\x73\xD7\x52\xBA" |
| 5170 | "\x35\x5E\x32\x89\x5D\x42\xF5\x36" |
| 5171 | "\x52\x8D\x46\x7D\xC8\x71\xAD\x33" |
| 5172 | "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC" |
| 5173 | "\xFE\x88\xE6\x16\xE4\xC8\x13\x00" |
| 5174 | "\x3C\xDA\x59\x32\x38\x19\xD5\xEB" |
| 5175 | "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C" |
| 5176 | "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B" |
| 5177 | "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29" |
| 5178 | "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D" |
| 5179 | "\xC9\x0D\x59\x82\x27\x57\x9D\x42" |
| 5180 | "\x54\x59\x09\xA5\x3D\xC5\x84\x68" |
| 5181 | "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5" |
| 5182 | "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4", |
| 5183 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 5184 | .also_non_np = 1, |
| 5185 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5186 | .tap = { 504 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5187 | }, |
| 5188 | }; |
| 5189 | |
| 5190 | static struct cipher_testvec bf_dec_tv_template[] = { |
| 5191 | { /* DES test vectors from OpenSSL */ |
| 5192 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5193 | .klen = 8, |
| 5194 | .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 5195 | .ilen = 8, |
| 5196 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5197 | .rlen = 8, |
| 5198 | }, { |
| 5199 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 5200 | .klen = 8, |
| 5201 | .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 5202 | .ilen = 8, |
| 5203 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 5204 | .rlen = 8, |
| 5205 | }, { |
| 5206 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 5207 | .klen = 8, |
| 5208 | .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 5209 | .ilen = 8, |
| 5210 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5211 | .rlen = 8, |
| 5212 | }, { /* Vary the keylength... */ |
| 5213 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5214 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 5215 | .klen = 16, |
| 5216 | .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 5217 | .ilen = 8, |
| 5218 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5219 | .rlen = 8, |
| 5220 | }, { |
| 5221 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5222 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5223 | "\x00\x11\x22\x33\x44", |
| 5224 | .klen = 21, |
| 5225 | .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 5226 | .ilen = 8, |
| 5227 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5228 | .rlen = 8, |
| 5229 | }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */ |
| 5230 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5231 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5232 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 5233 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 5234 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 5235 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 5236 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 5237 | .klen = 56, |
| 5238 | .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 5239 | .ilen = 8, |
| 5240 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5241 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5242 | }, { /* Generated with Crypto++ */ |
| 5243 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5244 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5245 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5246 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5247 | .klen = 32, |
| 5248 | .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 5249 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 5250 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 5251 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5252 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B" |
| 5253 | "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9" |
| 5254 | "\xCD\xF3\x88\x39\x39\x7A\xDF\x19" |
| 5255 | "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86" |
| 5256 | "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5" |
| 5257 | "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D" |
| 5258 | "\x6E\x66\xAF\x38\x6C\xD3\x13\xED" |
| 5259 | "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A" |
| 5260 | "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B" |
| 5261 | "\x9D\x5B\x54\x65\x4F\x16\x8A\x97" |
| 5262 | "\xF3\xF6\xD4\xAA\x87\x36\x77\x72" |
| 5263 | "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D" |
| 5264 | "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F" |
| 5265 | "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8" |
| 5266 | "\x47\x82\x98\x23\x33\x36\xBC\x1B" |
| 5267 | "\x36\xE7\xF6\xCF\x97\x37\x16\xC0" |
| 5268 | "\x87\x31\x8B\xB0\xDB\x19\x42\xA5" |
| 5269 | "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9" |
| 5270 | "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71" |
| 5271 | "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B" |
| 5272 | "\x60\x00\x55\x57\x06\x8B\xD5\xB3" |
| 5273 | "\x86\x30\x78\xDA\x33\x9A\x9D\xCC" |
| 5274 | "\xBA\x0B\x81\x06\x77\x43\xC7\xC9" |
| 5275 | "\xDB\x37\x60\x11\x45\x59\x6D\x2D" |
| 5276 | "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C" |
| 5277 | "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B" |
| 5278 | "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9" |
| 5279 | "\x98\xE4\x7F\xC3\x6E\x51\x24\x70" |
| 5280 | "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3" |
| 5281 | "\xE0\x8A\x44\xA2\x5C\x94\x74\x34" |
| 5282 | "\x37\x52\x7C\x03\xE8\x8E\x97\xE1" |
| 5283 | "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F" |
| 5284 | "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45" |
| 5285 | "\x55\xC5\xA7\xA3\x19\x80\x28\x51" |
| 5286 | "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB" |
| 5287 | "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC" |
| 5288 | "\x3E\x42\x14\x49\x88\x51\xBF\x68" |
| 5289 | "\x45\x75\x27\x1B\x0A\x72\xED\xAF" |
| 5290 | "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3" |
| 5291 | "\x34\xDD\x91\x19\x42\x3A\xCB\xDA" |
| 5292 | "\x38\xFA\x3C\x93\x62\xF2\xE3\x81" |
| 5293 | "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09" |
| 5294 | "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2" |
| 5295 | "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E" |
| 5296 | "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC" |
| 5297 | "\x36\x56\x6E\x85\x73\xD7\x52\xBA" |
| 5298 | "\x35\x5E\x32\x89\x5D\x42\xF5\x36" |
| 5299 | "\x52\x8D\x46\x7D\xC8\x71\xAD\x33" |
| 5300 | "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC" |
| 5301 | "\xFE\x88\xE6\x16\xE4\xC8\x13\x00" |
| 5302 | "\x3C\xDA\x59\x32\x38\x19\xD5\xEB" |
| 5303 | "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C" |
| 5304 | "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B" |
| 5305 | "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29" |
| 5306 | "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D" |
| 5307 | "\xC9\x0D\x59\x82\x27\x57\x9D\x42" |
| 5308 | "\x54\x59\x09\xA5\x3D\xC5\x84\x68" |
| 5309 | "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5" |
| 5310 | "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4", |
| 5311 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5312 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5313 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5314 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5315 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5316 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5317 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5318 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5319 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5320 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5321 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5322 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5323 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5324 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5325 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5326 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5327 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5328 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5329 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5330 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5331 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5332 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5333 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5334 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5335 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5336 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5337 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5338 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5339 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5340 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5341 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5342 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5343 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5344 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5345 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5346 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5347 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5348 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5349 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5350 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5351 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5352 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5353 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5354 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5355 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5356 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5357 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5358 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5359 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5360 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5361 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5362 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5363 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5364 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5365 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5366 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5367 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5368 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5369 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5370 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5371 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5372 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5373 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5374 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 5375 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 5376 | .also_non_np = 1, |
| 5377 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5378 | .tap = { 504 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5379 | }, |
| 5380 | }; |
| 5381 | |
| 5382 | static struct cipher_testvec bf_cbc_enc_tv_template[] = { |
| 5383 | { /* From OpenSSL */ |
| 5384 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 5385 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 5386 | .klen = 16, |
| 5387 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5388 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 5389 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 5390 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 5391 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 5392 | .ilen = 32, |
| 5393 | .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 5394 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 5395 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 5396 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 5397 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5398 | }, { /* Generated with Crypto++ */ |
| 5399 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5400 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5401 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5402 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5403 | .klen = 32, |
| 5404 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 5405 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5406 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5407 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5408 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5409 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5410 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5411 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5412 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5413 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5414 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5415 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5416 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5417 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5418 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5419 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5420 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5421 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5422 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5423 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5424 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5425 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5426 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5427 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5428 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5429 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5430 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5431 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5432 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5433 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5434 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5435 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5436 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5437 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5438 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5439 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5440 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5441 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5442 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5443 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5444 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5445 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5446 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5447 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5448 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5449 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5450 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5451 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5452 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5453 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5454 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5455 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5456 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5457 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5458 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5459 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5460 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5461 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5462 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5463 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5464 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5465 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5466 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5467 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 5468 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5469 | .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 5470 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 5471 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 5472 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5473 | "\x01\x9C\x93\x63\x51\x60\x82\xD2" |
| 5474 | "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD" |
| 5475 | "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F" |
| 5476 | "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69" |
| 5477 | "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5" |
| 5478 | "\x43\x29\x9D\x94\xF4\x2F\x0A\x65" |
| 5479 | "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A" |
| 5480 | "\x60\xD3\x52\xA8\xED\x91\xDF\xE1" |
| 5481 | "\x91\x73\x7C\x28\xA1\x14\xC3\x4C" |
| 5482 | "\x82\x72\x4B\x7D\x7D\x32\xD5\x19" |
| 5483 | "\xE8\xB8\x6B\x30\x21\x09\x0E\x27" |
| 5484 | "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6" |
| 5485 | "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13" |
| 5486 | "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69" |
| 5487 | "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C" |
| 5488 | "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40" |
| 5489 | "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43" |
| 5490 | "\x65\xFE\x15\x40\xD0\x62\x41\x02" |
| 5491 | "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE" |
| 5492 | "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C" |
| 5493 | "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B" |
| 5494 | "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A" |
| 5495 | "\xC2\x6D\xBD\x5E\x89\x95\x86\x43" |
| 5496 | "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24" |
| 5497 | "\x04\xF0\x86\x08\x78\x18\x42\xE0" |
| 5498 | "\x39\x1B\x22\x9E\x89\x4C\x04\x6B" |
| 5499 | "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7" |
| 5500 | "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC" |
| 5501 | "\xF0\x51\xCC\x93\x68\xFC\xE9\x19" |
| 5502 | "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC" |
| 5503 | "\x97\x18\x92\xFF\x15\x11\xCE\xED" |
| 5504 | "\x04\x41\x05\xA3\x92\xFF\x3B\xE6" |
| 5505 | "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04" |
| 5506 | "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68" |
| 5507 | "\xEF\xB3\x61\x18\xDB\x83\x9B\x39" |
| 5508 | "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02" |
| 5509 | "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35" |
| 5510 | "\x75\x6F\x06\x81\x0A\x97\x4D\xF0" |
| 5511 | "\x43\x12\x73\x77\xDB\x91\x83\x5B" |
| 5512 | "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50" |
| 5513 | "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F" |
| 5514 | "\x7E\x12\x40\xB2\x3E\x19\x23\xF1" |
| 5515 | "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87" |
| 5516 | "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88" |
| 5517 | "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A" |
| 5518 | "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76" |
| 5519 | "\x14\x48\x2E\xDE\x2A\x44\x5E\x45" |
| 5520 | "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A" |
| 5521 | "\xED\x73\xD3\x79\xF7\x38\x1D\xD0" |
| 5522 | "\xC5\xF8\x69\x83\x28\x84\x87\x56" |
| 5523 | "\x3F\xAE\x81\x04\x79\x1F\xD1\x09" |
| 5524 | "\xC5\xE5\x05\x0D\x64\x16\xCE\x42" |
| 5525 | "\xC5\xF8\xDB\x57\x89\x33\x22\xFC" |
| 5526 | "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90" |
| 5527 | "\x02\xBA\x55\x1E\x24\x3E\x02\x1D" |
| 5528 | "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51" |
| 5529 | "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9" |
| 5530 | "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0" |
| 5531 | "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4", |
| 5532 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 5533 | .also_non_np = 1, |
| 5534 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5535 | .tap = { 504 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5536 | }, |
| 5537 | }; |
| 5538 | |
| 5539 | static struct cipher_testvec bf_cbc_dec_tv_template[] = { |
| 5540 | { /* From OpenSSL */ |
| 5541 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 5542 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 5543 | .klen = 16, |
| 5544 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5545 | .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 5546 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 5547 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 5548 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 5549 | .ilen = 32, |
| 5550 | .result = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 5551 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 5552 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 5553 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 5554 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5555 | }, { /* Generated with Crypto++ */ |
| 5556 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5557 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5558 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5559 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5560 | .klen = 32, |
| 5561 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 5562 | .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 5563 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 5564 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 5565 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5566 | "\x01\x9C\x93\x63\x51\x60\x82\xD2" |
| 5567 | "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD" |
| 5568 | "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F" |
| 5569 | "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69" |
| 5570 | "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5" |
| 5571 | "\x43\x29\x9D\x94\xF4\x2F\x0A\x65" |
| 5572 | "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A" |
| 5573 | "\x60\xD3\x52\xA8\xED\x91\xDF\xE1" |
| 5574 | "\x91\x73\x7C\x28\xA1\x14\xC3\x4C" |
| 5575 | "\x82\x72\x4B\x7D\x7D\x32\xD5\x19" |
| 5576 | "\xE8\xB8\x6B\x30\x21\x09\x0E\x27" |
| 5577 | "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6" |
| 5578 | "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13" |
| 5579 | "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69" |
| 5580 | "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C" |
| 5581 | "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40" |
| 5582 | "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43" |
| 5583 | "\x65\xFE\x15\x40\xD0\x62\x41\x02" |
| 5584 | "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE" |
| 5585 | "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C" |
| 5586 | "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B" |
| 5587 | "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A" |
| 5588 | "\xC2\x6D\xBD\x5E\x89\x95\x86\x43" |
| 5589 | "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24" |
| 5590 | "\x04\xF0\x86\x08\x78\x18\x42\xE0" |
| 5591 | "\x39\x1B\x22\x9E\x89\x4C\x04\x6B" |
| 5592 | "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7" |
| 5593 | "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC" |
| 5594 | "\xF0\x51\xCC\x93\x68\xFC\xE9\x19" |
| 5595 | "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC" |
| 5596 | "\x97\x18\x92\xFF\x15\x11\xCE\xED" |
| 5597 | "\x04\x41\x05\xA3\x92\xFF\x3B\xE6" |
| 5598 | "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04" |
| 5599 | "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68" |
| 5600 | "\xEF\xB3\x61\x18\xDB\x83\x9B\x39" |
| 5601 | "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02" |
| 5602 | "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35" |
| 5603 | "\x75\x6F\x06\x81\x0A\x97\x4D\xF0" |
| 5604 | "\x43\x12\x73\x77\xDB\x91\x83\x5B" |
| 5605 | "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50" |
| 5606 | "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F" |
| 5607 | "\x7E\x12\x40\xB2\x3E\x19\x23\xF1" |
| 5608 | "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87" |
| 5609 | "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88" |
| 5610 | "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A" |
| 5611 | "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76" |
| 5612 | "\x14\x48\x2E\xDE\x2A\x44\x5E\x45" |
| 5613 | "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A" |
| 5614 | "\xED\x73\xD3\x79\xF7\x38\x1D\xD0" |
| 5615 | "\xC5\xF8\x69\x83\x28\x84\x87\x56" |
| 5616 | "\x3F\xAE\x81\x04\x79\x1F\xD1\x09" |
| 5617 | "\xC5\xE5\x05\x0D\x64\x16\xCE\x42" |
| 5618 | "\xC5\xF8\xDB\x57\x89\x33\x22\xFC" |
| 5619 | "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90" |
| 5620 | "\x02\xBA\x55\x1E\x24\x3E\x02\x1D" |
| 5621 | "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51" |
| 5622 | "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9" |
| 5623 | "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0" |
| 5624 | "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4", |
| 5625 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5626 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5627 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5628 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5629 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5630 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5631 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5632 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5633 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5634 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5635 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5636 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5637 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5638 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5639 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5640 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5641 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5642 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5643 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5644 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5645 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5646 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5647 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5648 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5649 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5650 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5651 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5652 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5653 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5654 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5655 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5656 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5657 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5658 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5659 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5660 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5661 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5662 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5663 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5664 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5665 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5666 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5667 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5668 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5669 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5670 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5671 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5672 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5673 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5674 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5675 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5676 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5677 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5678 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5679 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5680 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5681 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5682 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5683 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5684 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5685 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5686 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5687 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5688 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 5689 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 5690 | .also_non_np = 1, |
| 5691 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5692 | .tap = { 504 - 8, 8 }, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5693 | }, |
| 5694 | }; |
| 5695 | |
| 5696 | static struct cipher_testvec bf_ctr_enc_tv_template[] = { |
| 5697 | { /* Generated with Crypto++ */ |
| 5698 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5699 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5700 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5701 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5702 | .klen = 32, |
| 5703 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 5704 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5705 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5706 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5707 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5708 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5709 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5710 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5711 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5712 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5713 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5714 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5715 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5716 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5717 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5718 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5719 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5720 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5721 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5722 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5723 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5724 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5725 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5726 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5727 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5728 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5729 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5730 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5731 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5732 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5733 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5734 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5735 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5736 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5737 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5738 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5739 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5740 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5741 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5742 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5743 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5744 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5745 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5746 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5747 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5748 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5749 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5750 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5751 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5752 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5753 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5754 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5755 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5756 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5757 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5758 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5759 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5760 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5761 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5762 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5763 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5764 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5765 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5766 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 5767 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5768 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 5769 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 5770 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 5771 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5772 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 5773 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 5774 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 5775 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 5776 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 5777 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 5778 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 5779 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 5780 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 5781 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 5782 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 5783 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 5784 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 5785 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 5786 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 5787 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 5788 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 5789 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 5790 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 5791 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 5792 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 5793 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 5794 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 5795 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 5796 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 5797 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 5798 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 5799 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 5800 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 5801 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 5802 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 5803 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 5804 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 5805 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 5806 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 5807 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 5808 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 5809 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 5810 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 5811 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 5812 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 5813 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 5814 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 5815 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 5816 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 5817 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 5818 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 5819 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 5820 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 5821 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 5822 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 5823 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 5824 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 5825 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 5826 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 5827 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 5828 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 5829 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 5830 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29", |
| 5831 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5832 | }, { /* Generated with Crypto++ */ |
| 5833 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5834 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5835 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5836 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5837 | .klen = 32, |
| 5838 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 5839 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5840 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5841 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5842 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5843 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5844 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5845 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5846 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5847 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5848 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5849 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5850 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5851 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5852 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5853 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5854 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5855 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5856 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5857 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5858 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5859 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5860 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5861 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5862 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5863 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5864 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5865 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5866 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5867 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5868 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5869 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5870 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5871 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5872 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5873 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5874 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5875 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5876 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5877 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5878 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5879 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5880 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5881 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5882 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5883 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5884 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5885 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5886 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5887 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5888 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5889 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5890 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5891 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5892 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5893 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5894 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5895 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5896 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5897 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5898 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5899 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5900 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5901 | "\x2B\xC2\x59\xF0\x64\xFB\x92", |
| 5902 | .ilen = 503, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5903 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 5904 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 5905 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 5906 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 5907 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5908 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 5909 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 5910 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 5911 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 5912 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 5913 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 5914 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 5915 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 5916 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 5917 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 5918 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 5919 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 5920 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 5921 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 5922 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 5923 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 5924 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 5925 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 5926 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 5927 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 5928 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 5929 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 5930 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 5931 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 5932 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 5933 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 5934 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 5935 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 5936 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 5937 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 5938 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 5939 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 5940 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 5941 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 5942 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 5943 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 5944 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 5945 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 5946 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 5947 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 5948 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 5949 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 5950 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 5951 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 5952 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 5953 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 5954 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 5955 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 5956 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 5957 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 5958 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 5959 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 5960 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 5961 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 5962 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 5963 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 5964 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 5965 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D", |
| 5966 | .rlen = 503, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 5967 | .also_non_np = 1, |
| 5968 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5969 | .tap = { 503 - 8, 8 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 5970 | }, { /* Generated with Crypto++ */ |
| 5971 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5972 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5973 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5974 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5975 | .klen = 32, |
| 5976 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 5977 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5978 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5979 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5980 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5981 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5982 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5983 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5984 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5985 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5986 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5987 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5988 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5989 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5990 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5991 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5992 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5993 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5994 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5995 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5996 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5997 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5998 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5999 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6000 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6001 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6002 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6003 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6004 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6005 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6006 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6007 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6008 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6009 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6010 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6011 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6012 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6013 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6014 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6015 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6016 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6017 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6018 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6019 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6020 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6021 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6022 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6023 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6024 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6025 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6026 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6027 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6028 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6029 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6030 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6031 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6032 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6033 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6034 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6035 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6036 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6037 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6038 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6039 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6040 | .ilen = 504, |
| 6041 | .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D" |
| 6042 | "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82" |
| 6043 | "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F" |
| 6044 | "\x25\xF9\x27\x21\xF2\xD2\x9A\x01" |
| 6045 | "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE" |
| 6046 | "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2" |
| 6047 | "\x62\x44\x72\xB9\x5D\xC0\xF8\x37" |
| 6048 | "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2" |
| 6049 | "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18" |
| 6050 | "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60" |
| 6051 | "\xF8\x98\xA2\x39\x81\x23\x6C\xA9" |
| 6052 | "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44" |
| 6053 | "\x2A\x67\x7A\x88\x28\xDC\x36\x83" |
| 6054 | "\x18\xD7\x48\x43\x17\x2B\x1B\xE6" |
| 6055 | "\x0B\x82\x59\x14\x26\x67\x08\x09" |
| 6056 | "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A" |
| 6057 | "\xCD\x22\x94\x42\xF5\xBA\x74\x7E" |
| 6058 | "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E" |
| 6059 | "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8" |
| 6060 | "\xF4\xCC\x19\x76\xAB\x48\x29\xAA" |
| 6061 | "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21" |
| 6062 | "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F" |
| 6063 | "\x59\x28\x1A\xE4\x18\x16\xA0\x29" |
| 6064 | "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E" |
| 6065 | "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D" |
| 6066 | "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD" |
| 6067 | "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31" |
| 6068 | "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB" |
| 6069 | "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8" |
| 6070 | "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F" |
| 6071 | "\xC5\xE9\x09\x08\xDD\x22\x77\x42" |
| 6072 | "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C" |
| 6073 | "\xF0\xFF\x15\x8E\x84\x86\xC0\x10" |
| 6074 | "\x0F\x8D\x33\x06\xB8\x72\xA4\x47" |
| 6075 | "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B" |
| 6076 | "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2" |
| 6077 | "\x63\x66\x07\x6D\x3F\x6C\x51\x7C" |
| 6078 | "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D" |
| 6079 | "\xB4\x19\xD8\x19\x45\x66\x27\x02" |
| 6080 | "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D" |
| 6081 | "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1" |
| 6082 | "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7" |
| 6083 | "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53" |
| 6084 | "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3" |
| 6085 | "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8" |
| 6086 | "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A" |
| 6087 | "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E" |
| 6088 | "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37" |
| 6089 | "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22" |
| 6090 | "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9" |
| 6091 | "\x91\x51\x4E\x71\xF2\x98\x85\x16" |
| 6092 | "\x25\x7A\x76\x8A\x51\x0E\x65\x14" |
| 6093 | "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A" |
| 6094 | "\xE1\xCF\x41\x72\x14\x29\x4C\xF0" |
| 6095 | "\x20\xD9\x9A\xC5\x66\xA4\x03\x76" |
| 6096 | "\x5B\xA4\x15\x4F\x0E\x64\x39\x40" |
| 6097 | "\x25\xF9\x20\x22\xF5\x88\xF5\xBA" |
| 6098 | "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24" |
| 6099 | "\x4B\x92\x71\xD9\x2F\x77\xA7\x95" |
| 6100 | "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB" |
| 6101 | "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0" |
| 6102 | "\x16\x4C\x18\x6B\xF2\x69\xA0\x07" |
| 6103 | "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E", |
| 6104 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6105 | }, |
| 6106 | }; |
| 6107 | |
| 6108 | static struct cipher_testvec bf_ctr_dec_tv_template[] = { |
| 6109 | { /* Generated with Crypto++ */ |
| 6110 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6111 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6112 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6113 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6114 | .klen = 32, |
| 6115 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 6116 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 6117 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 6118 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 6119 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6120 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 6121 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 6122 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 6123 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 6124 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 6125 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 6126 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 6127 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 6128 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 6129 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 6130 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 6131 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 6132 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 6133 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 6134 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 6135 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 6136 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 6137 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 6138 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 6139 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 6140 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 6141 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 6142 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 6143 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 6144 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 6145 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 6146 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 6147 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 6148 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 6149 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 6150 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 6151 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 6152 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 6153 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 6154 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 6155 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 6156 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 6157 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 6158 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 6159 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 6160 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 6161 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 6162 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 6163 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 6164 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 6165 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 6166 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 6167 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 6168 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 6169 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 6170 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 6171 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 6172 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 6173 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 6174 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 6175 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 6176 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 6177 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 6178 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29", |
| 6179 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6180 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6181 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6182 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6183 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6184 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6185 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6186 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6187 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6188 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6189 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6190 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6191 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6192 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6193 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6194 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6195 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6196 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6197 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6198 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6199 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6200 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6201 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6202 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6203 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6204 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6205 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6206 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6207 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6208 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6209 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6210 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6211 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6212 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6213 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6214 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6215 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6216 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6217 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6218 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6219 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6220 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6221 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6222 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6223 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6224 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6225 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6226 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6227 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6228 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6229 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6230 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6231 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6232 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6233 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6234 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6235 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6236 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6237 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6238 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6239 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6240 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6241 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6242 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6243 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6244 | }, { /* Generated with Crypto++ */ |
| 6245 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6246 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6247 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6248 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6249 | .klen = 32, |
| 6250 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 6251 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 6252 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 6253 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 6254 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 6255 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6256 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 6257 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 6258 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 6259 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 6260 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 6261 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 6262 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 6263 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 6264 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 6265 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 6266 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 6267 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 6268 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 6269 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 6270 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 6271 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 6272 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 6273 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 6274 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 6275 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 6276 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 6277 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 6278 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 6279 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 6280 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 6281 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 6282 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 6283 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 6284 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 6285 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 6286 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 6287 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 6288 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 6289 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 6290 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 6291 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 6292 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 6293 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 6294 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 6295 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 6296 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 6297 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 6298 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 6299 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 6300 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 6301 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 6302 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 6303 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 6304 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 6305 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 6306 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 6307 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 6308 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 6309 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 6310 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 6311 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 6312 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 6313 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D", |
| 6314 | .ilen = 503, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6315 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6316 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6317 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6318 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6319 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6320 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6321 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6322 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6323 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6324 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6325 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6326 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6327 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6328 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6329 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6330 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6331 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6332 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6333 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6334 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6335 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6336 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6337 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6338 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6339 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6340 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6341 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6342 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6343 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6344 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6345 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6346 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6347 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6348 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6349 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6350 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6351 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6352 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6353 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6354 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6355 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6356 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6357 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6358 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6359 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6360 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6361 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6362 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6363 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6364 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6365 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6366 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6367 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6368 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6369 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6370 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6371 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6372 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6373 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6374 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6375 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6376 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6377 | "\x2B\xC2\x59\xF0\x64\xFB\x92", |
| 6378 | .rlen = 503, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6379 | .also_non_np = 1, |
| 6380 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6381 | .tap = { 503 - 8, 8 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 6382 | }, { /* Generated with Crypto++ */ |
| 6383 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6384 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6385 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6386 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6387 | .klen = 32, |
| 6388 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 6389 | .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D" |
| 6390 | "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82" |
| 6391 | "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F" |
| 6392 | "\x25\xF9\x27\x21\xF2\xD2\x9A\x01" |
| 6393 | "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE" |
| 6394 | "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2" |
| 6395 | "\x62\x44\x72\xB9\x5D\xC0\xF8\x37" |
| 6396 | "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2" |
| 6397 | "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18" |
| 6398 | "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60" |
| 6399 | "\xF8\x98\xA2\x39\x81\x23\x6C\xA9" |
| 6400 | "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44" |
| 6401 | "\x2A\x67\x7A\x88\x28\xDC\x36\x83" |
| 6402 | "\x18\xD7\x48\x43\x17\x2B\x1B\xE6" |
| 6403 | "\x0B\x82\x59\x14\x26\x67\x08\x09" |
| 6404 | "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A" |
| 6405 | "\xCD\x22\x94\x42\xF5\xBA\x74\x7E" |
| 6406 | "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E" |
| 6407 | "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8" |
| 6408 | "\xF4\xCC\x19\x76\xAB\x48\x29\xAA" |
| 6409 | "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21" |
| 6410 | "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F" |
| 6411 | "\x59\x28\x1A\xE4\x18\x16\xA0\x29" |
| 6412 | "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E" |
| 6413 | "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D" |
| 6414 | "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD" |
| 6415 | "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31" |
| 6416 | "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB" |
| 6417 | "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8" |
| 6418 | "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F" |
| 6419 | "\xC5\xE9\x09\x08\xDD\x22\x77\x42" |
| 6420 | "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C" |
| 6421 | "\xF0\xFF\x15\x8E\x84\x86\xC0\x10" |
| 6422 | "\x0F\x8D\x33\x06\xB8\x72\xA4\x47" |
| 6423 | "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B" |
| 6424 | "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2" |
| 6425 | "\x63\x66\x07\x6D\x3F\x6C\x51\x7C" |
| 6426 | "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D" |
| 6427 | "\xB4\x19\xD8\x19\x45\x66\x27\x02" |
| 6428 | "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D" |
| 6429 | "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1" |
| 6430 | "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7" |
| 6431 | "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53" |
| 6432 | "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3" |
| 6433 | "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8" |
| 6434 | "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A" |
| 6435 | "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E" |
| 6436 | "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37" |
| 6437 | "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22" |
| 6438 | "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9" |
| 6439 | "\x91\x51\x4E\x71\xF2\x98\x85\x16" |
| 6440 | "\x25\x7A\x76\x8A\x51\x0E\x65\x14" |
| 6441 | "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A" |
| 6442 | "\xE1\xCF\x41\x72\x14\x29\x4C\xF0" |
| 6443 | "\x20\xD9\x9A\xC5\x66\xA4\x03\x76" |
| 6444 | "\x5B\xA4\x15\x4F\x0E\x64\x39\x40" |
| 6445 | "\x25\xF9\x20\x22\xF5\x88\xF5\xBA" |
| 6446 | "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24" |
| 6447 | "\x4B\x92\x71\xD9\x2F\x77\xA7\x95" |
| 6448 | "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB" |
| 6449 | "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0" |
| 6450 | "\x16\x4C\x18\x6B\xF2\x69\xA0\x07" |
| 6451 | "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E", |
| 6452 | .ilen = 504, |
| 6453 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6454 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6455 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6456 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6457 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6458 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6459 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6460 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6461 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6462 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6463 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6464 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6465 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6466 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6467 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6468 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6469 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6470 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6471 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6472 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6473 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6474 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6475 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6476 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6477 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6478 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6479 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6480 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6481 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6482 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6483 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6484 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6485 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6486 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6487 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6488 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6489 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6490 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6491 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6492 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6493 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6494 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6495 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6496 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6497 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6498 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6499 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6500 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6501 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6502 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6503 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6504 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6505 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6506 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6507 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6508 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6509 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6510 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6511 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6512 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6513 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6514 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6515 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6516 | .rlen = 504, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6517 | }, |
| 6518 | }; |
| 6519 | |
| 6520 | /* |
| 6521 | * Twofish test vectors. |
| 6522 | */ |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 6523 | #define TF_ENC_TEST_VECTORS 4 |
| 6524 | #define TF_DEC_TEST_VECTORS 4 |
| 6525 | #define TF_CBC_ENC_TEST_VECTORS 5 |
| 6526 | #define TF_CBC_DEC_TEST_VECTORS 5 |
| 6527 | #define TF_CTR_ENC_TEST_VECTORS 2 |
| 6528 | #define TF_CTR_DEC_TEST_VECTORS 2 |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 6529 | #define TF_LRW_ENC_TEST_VECTORS 8 |
| 6530 | #define TF_LRW_DEC_TEST_VECTORS 8 |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 6531 | #define TF_XTS_ENC_TEST_VECTORS 5 |
| 6532 | #define TF_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6533 | |
| 6534 | static struct cipher_testvec tf_enc_tv_template[] = { |
| 6535 | { |
| 6536 | .key = zeroed_string, |
| 6537 | .klen = 16, |
| 6538 | .input = zeroed_string, |
| 6539 | .ilen = 16, |
| 6540 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 6541 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 6542 | .rlen = 16, |
| 6543 | }, { |
| 6544 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 6545 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 6546 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 6547 | .klen = 24, |
| 6548 | .input = zeroed_string, |
| 6549 | .ilen = 16, |
| 6550 | .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 6551 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 6552 | .rlen = 16, |
| 6553 | }, { |
| 6554 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 6555 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 6556 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 6557 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 6558 | .klen = 32, |
| 6559 | .input = zeroed_string, |
| 6560 | .ilen = 16, |
| 6561 | .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 6562 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 6563 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 6564 | }, { /* Generated with Crypto++ */ |
| 6565 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 6566 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 6567 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 6568 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 6569 | .klen = 32, |
| 6570 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6571 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6572 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6573 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6574 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6575 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6576 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 6577 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6578 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6579 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6580 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6581 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6582 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6583 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6584 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6585 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6586 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6587 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6588 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6589 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6590 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6591 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6592 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6593 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6594 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6595 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6596 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6597 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6598 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6599 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6600 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6601 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6602 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6603 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6604 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6605 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6606 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6607 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6608 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6609 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6610 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6611 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6612 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6613 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6614 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6615 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6616 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6617 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6618 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6619 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6620 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6621 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6622 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6623 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6624 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6625 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6626 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6627 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6628 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6629 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6630 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6631 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 6632 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 6633 | .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 6634 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 6635 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 6636 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 6637 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 6638 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 6639 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 6640 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 6641 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 6642 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 6643 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 6644 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 6645 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 6646 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 6647 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 6648 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 6649 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 6650 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 6651 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 6652 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 6653 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 6654 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 6655 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 6656 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 6657 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 6658 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 6659 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 6660 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 6661 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 6662 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 6663 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 6664 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 6665 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 6666 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 6667 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 6668 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 6669 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 6670 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 6671 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 6672 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 6673 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 6674 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 6675 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 6676 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 6677 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 6678 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 6679 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 6680 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 6681 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 6682 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 6683 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 6684 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 6685 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 6686 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 6687 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 6688 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 6689 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 6690 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 6691 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 6692 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 6693 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 6694 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 6695 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6696 | .also_non_np = 1, |
| 6697 | .np = 2, |
| 6698 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6699 | }, |
| 6700 | }; |
| 6701 | |
| 6702 | static struct cipher_testvec tf_dec_tv_template[] = { |
| 6703 | { |
| 6704 | .key = zeroed_string, |
| 6705 | .klen = 16, |
| 6706 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 6707 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 6708 | .ilen = 16, |
| 6709 | .result = zeroed_string, |
| 6710 | .rlen = 16, |
| 6711 | }, { |
| 6712 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 6713 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 6714 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 6715 | .klen = 24, |
| 6716 | .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 6717 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 6718 | .ilen = 16, |
| 6719 | .result = zeroed_string, |
| 6720 | .rlen = 16, |
| 6721 | }, { |
| 6722 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 6723 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 6724 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 6725 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 6726 | .klen = 32, |
| 6727 | .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 6728 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 6729 | .ilen = 16, |
| 6730 | .result = zeroed_string, |
| 6731 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 6732 | }, { /* Generated with Crypto++ */ |
| 6733 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 6734 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 6735 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 6736 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 6737 | .klen = 32, |
| 6738 | .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 6739 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 6740 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 6741 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 6742 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 6743 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 6744 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 6745 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 6746 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 6747 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 6748 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 6749 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 6750 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 6751 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 6752 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 6753 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 6754 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 6755 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 6756 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 6757 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 6758 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 6759 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 6760 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 6761 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 6762 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 6763 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 6764 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 6765 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 6766 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 6767 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 6768 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 6769 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 6770 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 6771 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 6772 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 6773 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 6774 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 6775 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 6776 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 6777 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 6778 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 6779 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 6780 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 6781 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 6782 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 6783 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 6784 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 6785 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 6786 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 6787 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 6788 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 6789 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 6790 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 6791 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 6792 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 6793 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 6794 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 6795 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 6796 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 6797 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 6798 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 6799 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 6800 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 6801 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6802 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6803 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6804 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6805 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6806 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6807 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 6808 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6809 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6810 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6811 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6812 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6813 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6814 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6815 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6816 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6817 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6818 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6819 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6820 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6821 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6822 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6823 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6824 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6825 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6826 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6827 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6828 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6829 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6830 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6831 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6832 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6833 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6834 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6835 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6836 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6837 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6838 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6839 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6840 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6841 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6842 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6843 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6844 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6845 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6846 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6847 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6848 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6849 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6850 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6851 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6852 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6853 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6854 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6855 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6856 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6857 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6858 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6859 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6860 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6861 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6862 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 6863 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6864 | .also_non_np = 1, |
| 6865 | .np = 2, |
| 6866 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6867 | }, |
| 6868 | }; |
| 6869 | |
| 6870 | static struct cipher_testvec tf_cbc_enc_tv_template[] = { |
| 6871 | { /* Generated with Nettle */ |
| 6872 | .key = zeroed_string, |
| 6873 | .klen = 16, |
| 6874 | .iv = zeroed_string, |
| 6875 | .input = zeroed_string, |
| 6876 | .ilen = 16, |
| 6877 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 6878 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 6879 | .rlen = 16, |
| 6880 | }, { |
| 6881 | .key = zeroed_string, |
| 6882 | .klen = 16, |
| 6883 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 6884 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 6885 | .input = zeroed_string, |
| 6886 | .ilen = 16, |
| 6887 | .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 6888 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 6889 | .rlen = 16, |
| 6890 | }, { |
| 6891 | .key = zeroed_string, |
| 6892 | .klen = 16, |
| 6893 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 6894 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 6895 | .input = zeroed_string, |
| 6896 | .ilen = 16, |
| 6897 | .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 6898 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 6899 | .rlen = 16, |
| 6900 | }, { |
| 6901 | .key = zeroed_string, |
| 6902 | .klen = 16, |
| 6903 | .iv = zeroed_string, |
| 6904 | .input = zeroed_string, |
| 6905 | .ilen = 48, |
| 6906 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 6907 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 6908 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 6909 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 6910 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 6911 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 6912 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 6913 | }, { /* Generated with Crypto++ */ |
| 6914 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6915 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6916 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6917 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6918 | .klen = 32, |
| 6919 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 6920 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 6921 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6922 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6923 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6924 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6925 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6926 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6927 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 6928 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6929 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6930 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6931 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6932 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6933 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6934 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6935 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6936 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6937 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6938 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6939 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6940 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6941 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6942 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6943 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6944 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6945 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6946 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6947 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6948 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6949 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6950 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6951 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6952 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6953 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6954 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6955 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6956 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6957 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6958 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6959 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6960 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6961 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6962 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6963 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6964 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6965 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6966 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6967 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6968 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6969 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6970 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6971 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6972 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6973 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6974 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6975 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6976 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6977 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6978 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6979 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6980 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6981 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6982 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 6983 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 6984 | .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 6985 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 6986 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 6987 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 6988 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 6989 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 6990 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 6991 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 6992 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 6993 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 6994 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 6995 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 6996 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 6997 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 6998 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 6999 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 7000 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 7001 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 7002 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 7003 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 7004 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 7005 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 7006 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 7007 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 7008 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 7009 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 7010 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 7011 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 7012 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 7013 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 7014 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 7015 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 7016 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 7017 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 7018 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 7019 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 7020 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 7021 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 7022 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 7023 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 7024 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 7025 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 7026 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 7027 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 7028 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 7029 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 7030 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 7031 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 7032 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 7033 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 7034 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 7035 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 7036 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 7037 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 7038 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 7039 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 7040 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 7041 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 7042 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 7043 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 7044 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 7045 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 7046 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7047 | .also_non_np = 1, |
| 7048 | .np = 2, |
| 7049 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 7050 | }, |
| 7051 | }; |
| 7052 | |
| 7053 | static struct cipher_testvec tf_cbc_dec_tv_template[] = { |
| 7054 | { /* Reverse of the first four above */ |
| 7055 | .key = zeroed_string, |
| 7056 | .klen = 16, |
| 7057 | .iv = zeroed_string, |
| 7058 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7059 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7060 | .ilen = 16, |
| 7061 | .result = zeroed_string, |
| 7062 | .rlen = 16, |
| 7063 | }, { |
| 7064 | .key = zeroed_string, |
| 7065 | .klen = 16, |
| 7066 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7067 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7068 | .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7069 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 7070 | .ilen = 16, |
| 7071 | .result = zeroed_string, |
| 7072 | .rlen = 16, |
| 7073 | }, { |
| 7074 | .key = zeroed_string, |
| 7075 | .klen = 16, |
| 7076 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7077 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 7078 | .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 7079 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 7080 | .ilen = 16, |
| 7081 | .result = zeroed_string, |
| 7082 | .rlen = 16, |
| 7083 | }, { |
| 7084 | .key = zeroed_string, |
| 7085 | .klen = 16, |
| 7086 | .iv = zeroed_string, |
| 7087 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7088 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 7089 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7090 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 7091 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 7092 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 7093 | .ilen = 48, |
| 7094 | .result = zeroed_string, |
| 7095 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7096 | }, { /* Generated with Crypto++ */ |
| 7097 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7098 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7099 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7100 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7101 | .klen = 32, |
| 7102 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7103 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7104 | .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 7105 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 7106 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 7107 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 7108 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 7109 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 7110 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7111 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 7112 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 7113 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 7114 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 7115 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 7116 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 7117 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 7118 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 7119 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 7120 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 7121 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 7122 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 7123 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 7124 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 7125 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 7126 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 7127 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 7128 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 7129 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 7130 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 7131 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 7132 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 7133 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 7134 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 7135 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 7136 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 7137 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 7138 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 7139 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 7140 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 7141 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 7142 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 7143 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 7144 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 7145 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 7146 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 7147 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 7148 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 7149 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 7150 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 7151 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 7152 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 7153 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 7154 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 7155 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 7156 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 7157 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 7158 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 7159 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 7160 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 7161 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 7162 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 7163 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 7164 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 7165 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 7166 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7167 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7168 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7169 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7170 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7171 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7172 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7173 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7174 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7175 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7176 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7177 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7178 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7179 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7180 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7181 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7182 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7183 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7184 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7185 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7186 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7187 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7188 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7189 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7190 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7191 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7192 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7193 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7194 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7195 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7196 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7197 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7198 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7199 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7200 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7201 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7202 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7203 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7204 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7205 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7206 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7207 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7208 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7209 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7210 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7211 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7212 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7213 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7214 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7215 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7216 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7217 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7218 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7219 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7220 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7221 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7222 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7223 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7224 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7225 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7226 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7227 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7228 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7229 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7230 | .also_non_np = 1, |
| 7231 | .np = 2, |
| 7232 | .tap = { 496 - 16, 16 }, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7233 | }, |
| 7234 | }; |
| 7235 | |
| 7236 | static struct cipher_testvec tf_ctr_enc_tv_template[] = { |
| 7237 | { /* Generated with Crypto++ */ |
| 7238 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7239 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7240 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7241 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7242 | .klen = 32, |
| 7243 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7244 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7245 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7246 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7247 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7248 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7249 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7250 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7251 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7252 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7253 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7254 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7255 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7256 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7257 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7258 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7259 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7260 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7261 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7262 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7263 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7264 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7265 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7266 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7267 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7268 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7269 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7270 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7271 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7272 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7273 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7274 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7275 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7276 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7277 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7278 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7279 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7280 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7281 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7282 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7283 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7284 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7285 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7286 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7287 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7288 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7289 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7290 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7291 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7292 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7293 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7294 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7295 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7296 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7297 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7298 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7299 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7300 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7301 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7302 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7303 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7304 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7305 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7306 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7307 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7308 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 7309 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 7310 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 7311 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 7312 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 7313 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 7314 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7315 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 7316 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 7317 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 7318 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 7319 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 7320 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 7321 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 7322 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 7323 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 7324 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 7325 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 7326 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 7327 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 7328 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 7329 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 7330 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 7331 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 7332 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 7333 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 7334 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 7335 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 7336 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 7337 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 7338 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 7339 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 7340 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 7341 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 7342 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 7343 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 7344 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 7345 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 7346 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 7347 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 7348 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 7349 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 7350 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 7351 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 7352 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 7353 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 7354 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 7355 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 7356 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 7357 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 7358 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 7359 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 7360 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 7361 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 7362 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 7363 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 7364 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 7365 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 7366 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 7367 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 7368 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 7369 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 7370 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7371 | }, { /* Generated with Crypto++ */ |
| 7372 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7373 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7374 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7375 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7376 | .klen = 32, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 7377 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 7378 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 7379 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7380 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7381 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7382 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7383 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7384 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7385 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7386 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7387 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7388 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7389 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7390 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7391 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7392 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7393 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7394 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7395 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7396 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7397 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7398 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7399 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7400 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7401 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7402 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7403 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7404 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7405 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7406 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7407 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7408 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7409 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7410 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7411 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7412 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7413 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7414 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7415 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7416 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7417 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7418 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7419 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7420 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7421 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7422 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7423 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7424 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7425 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7426 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7427 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7428 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7429 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7430 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7431 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7432 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7433 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7434 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7435 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7436 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7437 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7438 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7439 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7440 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7441 | .ilen = 496, |
| 7442 | .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44" |
| 7443 | "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C" |
| 7444 | "\x53\xC8\x16\x38\xDE\x40\x4F\x91" |
| 7445 | "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA" |
| 7446 | "\x88\x7E\x89\xE9\x67\x2B\x83\xA2" |
| 7447 | "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B" |
| 7448 | "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3" |
| 7449 | "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33" |
| 7450 | "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E" |
| 7451 | "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0" |
| 7452 | "\x64\x89\x9F\x6A\x27\x96\x07\xA6" |
| 7453 | "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01" |
| 7454 | "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34" |
| 7455 | "\x39\x18\x09\xA4\x82\x59\x78\xE7" |
| 7456 | "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2" |
| 7457 | "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3" |
| 7458 | "\xE6\x87\x31\x9E\x16\x85\xAD\xB1" |
| 7459 | "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E" |
| 7460 | "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3" |
| 7461 | "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF" |
| 7462 | "\x89\x16\x4D\x2D\xA2\x26\x33\x72" |
| 7463 | "\x18\x33\x7E\xD6\xD2\x16\xA4\x54" |
| 7464 | "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB" |
| 7465 | "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2" |
| 7466 | "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19" |
| 7467 | "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E" |
| 7468 | "\xAC\x00\xE3\x50\x63\x4A\x80\x9A" |
| 7469 | "\x05\xBC\x50\x39\xD3\x32\xD9\x0D" |
| 7470 | "\xE3\x20\x0D\x75\x54\xEC\xE6\x31" |
| 7471 | "\x14\xB9\x3A\x59\x00\x43\x37\x8E" |
| 7472 | "\x8C\x5A\x79\x62\x14\x76\x8A\xAE" |
| 7473 | "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D" |
| 7474 | "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60" |
| 7475 | "\xC9\x87\xB1\x79\x1E\xA5\x86\x68" |
| 7476 | "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73" |
| 7477 | "\xD0\xDA\x75\x77\x9E\x05\x27\xF1" |
| 7478 | "\x08\xA9\x66\x64\x6C\xBC\x82\x17" |
| 7479 | "\x2C\x23\x5F\x62\x4D\x02\x1A\x58" |
| 7480 | "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF" |
| 7481 | "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83" |
| 7482 | "\x95\x87\x13\x57\x60\xD7\xB5\xB1" |
| 7483 | "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D" |
| 7484 | "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF" |
| 7485 | "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A" |
| 7486 | "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8" |
| 7487 | "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0" |
| 7488 | "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC" |
| 7489 | "\xDE\x55\x1B\x50\x14\x53\x44\x17" |
| 7490 | "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A" |
| 7491 | "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B" |
| 7492 | "\x1A\x09\x97\xA9\xB6\x97\x79\x06" |
| 7493 | "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1" |
| 7494 | "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5" |
| 7495 | "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D" |
| 7496 | "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23" |
| 7497 | "\x41\x67\xA1\x24\x99\x7E\xCC\x9B" |
| 7498 | "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A" |
| 7499 | "\xF4\x78\xFD\x79\x62\x63\x4F\x14" |
| 7500 | "\xD6\x11\x11\x04\x05\x5F\x7E\xEA" |
| 7501 | "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54" |
| 7502 | "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B" |
| 7503 | "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D", |
| 7504 | .rlen = 496, |
| 7505 | }, { /* Generated with Crypto++ */ |
| 7506 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7507 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7508 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7509 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7510 | .klen = 32, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7511 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7512 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7513 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7514 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7515 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7516 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7517 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7518 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7519 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7520 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7521 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7522 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7523 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7524 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7525 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7526 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7527 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7528 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7529 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7530 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7531 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7532 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7533 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7534 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7535 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7536 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7537 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7538 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7539 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7540 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7541 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7542 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7543 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7544 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7545 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7546 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7547 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7548 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7549 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7550 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7551 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7552 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7553 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7554 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7555 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7556 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7557 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7558 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7559 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7560 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7561 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7562 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7563 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7564 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7565 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7566 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7567 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7568 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7569 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7570 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7571 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7572 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7573 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7574 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7575 | "\x2B\xC2\x59", |
| 7576 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7577 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 7578 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 7579 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 7580 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 7581 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 7582 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 7583 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 7584 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7585 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 7586 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 7587 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 7588 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 7589 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 7590 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 7591 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 7592 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 7593 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 7594 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 7595 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 7596 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 7597 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 7598 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 7599 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 7600 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 7601 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 7602 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 7603 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 7604 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 7605 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 7606 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 7607 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 7608 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 7609 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 7610 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 7611 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 7612 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 7613 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 7614 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 7615 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 7616 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 7617 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 7618 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 7619 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 7620 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 7621 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 7622 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 7623 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 7624 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 7625 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 7626 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 7627 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 7628 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 7629 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 7630 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 7631 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 7632 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 7633 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 7634 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 7635 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 7636 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 7637 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 7638 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 7639 | "\x6C\x82\x9D", |
| 7640 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7641 | .also_non_np = 1, |
| 7642 | .np = 2, |
| 7643 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7644 | }, |
| 7645 | }; |
| 7646 | |
| 7647 | static struct cipher_testvec tf_ctr_dec_tv_template[] = { |
| 7648 | { /* Generated with Crypto++ */ |
| 7649 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7650 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7651 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7652 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7653 | .klen = 32, |
| 7654 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7655 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7656 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 7657 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 7658 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 7659 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 7660 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 7661 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 7662 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7663 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 7664 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 7665 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 7666 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 7667 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 7668 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 7669 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 7670 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 7671 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 7672 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 7673 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 7674 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 7675 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 7676 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 7677 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 7678 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 7679 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 7680 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 7681 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 7682 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 7683 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 7684 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 7685 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 7686 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 7687 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 7688 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 7689 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 7690 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 7691 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 7692 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 7693 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 7694 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 7695 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 7696 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 7697 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 7698 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 7699 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 7700 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 7701 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 7702 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 7703 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 7704 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 7705 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 7706 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 7707 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 7708 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 7709 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 7710 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 7711 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 7712 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 7713 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 7714 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 7715 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 7716 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 7717 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 7718 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7719 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7720 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7721 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7722 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7723 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7724 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7725 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7726 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7727 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7728 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7729 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7730 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7731 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7732 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7733 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7734 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7735 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7736 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7737 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7738 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7739 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7740 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7741 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7742 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7743 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7744 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7745 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7746 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7747 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7748 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7749 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7750 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7751 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7752 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7753 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7754 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7755 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7756 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7757 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7758 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7759 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7760 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7761 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7762 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7763 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7764 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7765 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7766 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7767 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7768 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7769 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7770 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7771 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7772 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7773 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7774 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7775 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7776 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7777 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7778 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7779 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7780 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7781 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7782 | }, { /* Generated with Crypto++ */ |
| 7783 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7784 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7785 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7786 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7787 | .klen = 32, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 7788 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 7789 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 7790 | .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44" |
| 7791 | "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C" |
| 7792 | "\x53\xC8\x16\x38\xDE\x40\x4F\x91" |
| 7793 | "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA" |
| 7794 | "\x88\x7E\x89\xE9\x67\x2B\x83\xA2" |
| 7795 | "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B" |
| 7796 | "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3" |
| 7797 | "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33" |
| 7798 | "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E" |
| 7799 | "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0" |
| 7800 | "\x64\x89\x9F\x6A\x27\x96\x07\xA6" |
| 7801 | "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01" |
| 7802 | "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34" |
| 7803 | "\x39\x18\x09\xA4\x82\x59\x78\xE7" |
| 7804 | "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2" |
| 7805 | "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3" |
| 7806 | "\xE6\x87\x31\x9E\x16\x85\xAD\xB1" |
| 7807 | "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E" |
| 7808 | "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3" |
| 7809 | "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF" |
| 7810 | "\x89\x16\x4D\x2D\xA2\x26\x33\x72" |
| 7811 | "\x18\x33\x7E\xD6\xD2\x16\xA4\x54" |
| 7812 | "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB" |
| 7813 | "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2" |
| 7814 | "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19" |
| 7815 | "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E" |
| 7816 | "\xAC\x00\xE3\x50\x63\x4A\x80\x9A" |
| 7817 | "\x05\xBC\x50\x39\xD3\x32\xD9\x0D" |
| 7818 | "\xE3\x20\x0D\x75\x54\xEC\xE6\x31" |
| 7819 | "\x14\xB9\x3A\x59\x00\x43\x37\x8E" |
| 7820 | "\x8C\x5A\x79\x62\x14\x76\x8A\xAE" |
| 7821 | "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D" |
| 7822 | "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60" |
| 7823 | "\xC9\x87\xB1\x79\x1E\xA5\x86\x68" |
| 7824 | "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73" |
| 7825 | "\xD0\xDA\x75\x77\x9E\x05\x27\xF1" |
| 7826 | "\x08\xA9\x66\x64\x6C\xBC\x82\x17" |
| 7827 | "\x2C\x23\x5F\x62\x4D\x02\x1A\x58" |
| 7828 | "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF" |
| 7829 | "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83" |
| 7830 | "\x95\x87\x13\x57\x60\xD7\xB5\xB1" |
| 7831 | "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D" |
| 7832 | "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF" |
| 7833 | "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A" |
| 7834 | "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8" |
| 7835 | "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0" |
| 7836 | "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC" |
| 7837 | "\xDE\x55\x1B\x50\x14\x53\x44\x17" |
| 7838 | "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A" |
| 7839 | "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B" |
| 7840 | "\x1A\x09\x97\xA9\xB6\x97\x79\x06" |
| 7841 | "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1" |
| 7842 | "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5" |
| 7843 | "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D" |
| 7844 | "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23" |
| 7845 | "\x41\x67\xA1\x24\x99\x7E\xCC\x9B" |
| 7846 | "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A" |
| 7847 | "\xF4\x78\xFD\x79\x62\x63\x4F\x14" |
| 7848 | "\xD6\x11\x11\x04\x05\x5F\x7E\xEA" |
| 7849 | "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54" |
| 7850 | "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B" |
| 7851 | "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D", |
| 7852 | .ilen = 496, |
| 7853 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7854 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7855 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7856 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7857 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7858 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7859 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7860 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7861 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7862 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7863 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7864 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7865 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7866 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7867 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7868 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7869 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7870 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7871 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7872 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7873 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7874 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7875 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7876 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7877 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7878 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7879 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7880 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7881 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7882 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7883 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7884 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7885 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7886 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7887 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7888 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7889 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7890 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7891 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7892 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7893 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7894 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7895 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7896 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7897 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7898 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7899 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7900 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7901 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7902 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7903 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7904 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7905 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7906 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7907 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7908 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7909 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7910 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7911 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7912 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7913 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7914 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7915 | .rlen = 496, |
| 7916 | }, { /* Generated with Crypto++ */ |
| 7917 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7918 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7919 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7920 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7921 | .klen = 32, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7922 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7923 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7924 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 7925 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 7926 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 7927 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 7928 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 7929 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 7930 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 7931 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7932 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 7933 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 7934 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 7935 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 7936 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 7937 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 7938 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 7939 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 7940 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 7941 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 7942 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 7943 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 7944 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 7945 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 7946 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 7947 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 7948 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 7949 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 7950 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 7951 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 7952 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 7953 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 7954 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 7955 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 7956 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 7957 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 7958 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 7959 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 7960 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 7961 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 7962 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 7963 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 7964 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 7965 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 7966 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 7967 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 7968 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 7969 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 7970 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 7971 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 7972 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 7973 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 7974 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 7975 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 7976 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 7977 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 7978 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 7979 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 7980 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 7981 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 7982 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 7983 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 7984 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 7985 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 7986 | "\x6C\x82\x9D", |
| 7987 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7988 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7989 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7990 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7991 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7992 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7993 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7994 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7995 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7996 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7997 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7998 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7999 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8000 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8001 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8002 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8003 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8004 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8005 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8006 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8007 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8008 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8009 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8010 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8011 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8012 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8013 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8014 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8015 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8016 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8017 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8018 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8019 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8020 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8021 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8022 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8023 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8024 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8025 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8026 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8027 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8028 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8029 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8030 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8031 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8032 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8033 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8034 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8035 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8036 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8037 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8038 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8039 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8040 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8041 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8042 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8043 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8044 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8045 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8046 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8047 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8048 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8049 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 8050 | "\x2B\xC2\x59", |
| 8051 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8052 | .also_non_np = 1, |
| 8053 | .np = 2, |
| 8054 | .tap = { 499 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8055 | }, |
| 8056 | }; |
| 8057 | |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 8058 | static struct cipher_testvec tf_lrw_enc_tv_template[] = { |
| 8059 | /* Generated from AES-LRW test vectors */ |
| 8060 | { |
| 8061 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 8062 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 8063 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 8064 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 8065 | .klen = 32, |
| 8066 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8067 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8068 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8069 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8070 | .ilen = 16, |
| 8071 | .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 8072 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 8073 | .rlen = 16, |
| 8074 | }, { |
| 8075 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 8076 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 8077 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 8078 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 8079 | .klen = 32, |
| 8080 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8081 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 8082 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8083 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8084 | .ilen = 16, |
| 8085 | .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 8086 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 8087 | .rlen = 16, |
| 8088 | }, { |
| 8089 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 8090 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 8091 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 8092 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 8093 | .klen = 32, |
| 8094 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8095 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8096 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8097 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8098 | .ilen = 16, |
| 8099 | .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 8100 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 8101 | .rlen = 16, |
| 8102 | }, { |
| 8103 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 8104 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 8105 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 8106 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 8107 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 8108 | .klen = 40, |
| 8109 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8110 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8111 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8112 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8113 | .ilen = 16, |
| 8114 | .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 8115 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 8116 | .rlen = 16, |
| 8117 | }, { |
| 8118 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 8119 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 8120 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 8121 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 8122 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 8123 | .klen = 40, |
| 8124 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8125 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8126 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8127 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8128 | .ilen = 16, |
| 8129 | .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 8130 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 8131 | .rlen = 16, |
| 8132 | }, { |
| 8133 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8134 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8135 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8136 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8137 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8138 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8139 | .klen = 48, |
| 8140 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8141 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8142 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8143 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8144 | .ilen = 16, |
| 8145 | .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 8146 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 8147 | .rlen = 16, |
| 8148 | }, { |
| 8149 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 8150 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 8151 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 8152 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 8153 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 8154 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 8155 | .klen = 48, |
| 8156 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8157 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8158 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8159 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8160 | .ilen = 16, |
| 8161 | .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 8162 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 8163 | .rlen = 16, |
| 8164 | }, { |
| 8165 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8166 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8167 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8168 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8169 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8170 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8171 | .klen = 48, |
| 8172 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8173 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8174 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 8175 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 8176 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 8177 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 8178 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 8179 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 8180 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 8181 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 8182 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 8183 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 8184 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 8185 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 8186 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 8187 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 8188 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 8189 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 8190 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 8191 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 8192 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 8193 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 8194 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 8195 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 8196 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 8197 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 8198 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 8199 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 8200 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 8201 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 8202 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 8203 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 8204 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 8205 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 8206 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 8207 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 8208 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 8209 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 8210 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 8211 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 8212 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 8213 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 8214 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 8215 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 8216 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 8217 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 8218 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 8219 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 8220 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 8221 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 8222 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 8223 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 8224 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 8225 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 8226 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 8227 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 8228 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 8229 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 8230 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 8231 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 8232 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 8233 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 8234 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 8235 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 8236 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 8237 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 8238 | .ilen = 512, |
| 8239 | .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 8240 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 8241 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 8242 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 8243 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 8244 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 8245 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 8246 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 8247 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 8248 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 8249 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 8250 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 8251 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 8252 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 8253 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 8254 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 8255 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 8256 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 8257 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 8258 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 8259 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 8260 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 8261 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 8262 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 8263 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 8264 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 8265 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 8266 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 8267 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 8268 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 8269 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 8270 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 8271 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 8272 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 8273 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 8274 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 8275 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 8276 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 8277 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 8278 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 8279 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 8280 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 8281 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 8282 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 8283 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 8284 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 8285 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 8286 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 8287 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 8288 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 8289 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 8290 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 8291 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 8292 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 8293 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 8294 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 8295 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 8296 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 8297 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 8298 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 8299 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 8300 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 8301 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 8302 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 8303 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8304 | .also_non_np = 1, |
| 8305 | .np = 2, |
| 8306 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 8307 | }, |
| 8308 | }; |
| 8309 | |
| 8310 | static struct cipher_testvec tf_lrw_dec_tv_template[] = { |
| 8311 | /* Generated from AES-LRW test vectors */ |
| 8312 | /* same as enc vectors with input and result reversed */ |
| 8313 | { |
| 8314 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 8315 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 8316 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 8317 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 8318 | .klen = 32, |
| 8319 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8320 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8321 | .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 8322 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 8323 | .ilen = 16, |
| 8324 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8325 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8326 | .rlen = 16, |
| 8327 | }, { |
| 8328 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 8329 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 8330 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 8331 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 8332 | .klen = 32, |
| 8333 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8334 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 8335 | .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 8336 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 8337 | .ilen = 16, |
| 8338 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8339 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8340 | .rlen = 16, |
| 8341 | }, { |
| 8342 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 8343 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 8344 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 8345 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 8346 | .klen = 32, |
| 8347 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8348 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8349 | .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 8350 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 8351 | .ilen = 16, |
| 8352 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8353 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8354 | .rlen = 16, |
| 8355 | }, { |
| 8356 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 8357 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 8358 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 8359 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 8360 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 8361 | .klen = 40, |
| 8362 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8363 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8364 | .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 8365 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 8366 | .ilen = 16, |
| 8367 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8368 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8369 | .rlen = 16, |
| 8370 | }, { |
| 8371 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 8372 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 8373 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 8374 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 8375 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 8376 | .klen = 40, |
| 8377 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8378 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8379 | .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 8380 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 8381 | .ilen = 16, |
| 8382 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8383 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8384 | .rlen = 16, |
| 8385 | }, { |
| 8386 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8387 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8388 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8389 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8390 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8391 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8392 | .klen = 48, |
| 8393 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8394 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8395 | .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 8396 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 8397 | .ilen = 16, |
| 8398 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8399 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8400 | .rlen = 16, |
| 8401 | }, { |
| 8402 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 8403 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 8404 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 8405 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 8406 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 8407 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 8408 | .klen = 48, |
| 8409 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8410 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8411 | .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 8412 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 8413 | .ilen = 16, |
| 8414 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8415 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8416 | .rlen = 16, |
| 8417 | }, { |
| 8418 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8419 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8420 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8421 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8422 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8423 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8424 | .klen = 48, |
| 8425 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8426 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8427 | .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 8428 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 8429 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 8430 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 8431 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 8432 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 8433 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 8434 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 8435 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 8436 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 8437 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 8438 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 8439 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 8440 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 8441 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 8442 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 8443 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 8444 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 8445 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 8446 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 8447 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 8448 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 8449 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 8450 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 8451 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 8452 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 8453 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 8454 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 8455 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 8456 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 8457 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 8458 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 8459 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 8460 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 8461 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 8462 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 8463 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 8464 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 8465 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 8466 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 8467 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 8468 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 8469 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 8470 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 8471 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 8472 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 8473 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 8474 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 8475 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 8476 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 8477 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 8478 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 8479 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 8480 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 8481 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 8482 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 8483 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 8484 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 8485 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 8486 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 8487 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 8488 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 8489 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 8490 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 8491 | .ilen = 512, |
| 8492 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 8493 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 8494 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 8495 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 8496 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 8497 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 8498 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 8499 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 8500 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 8501 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 8502 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 8503 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 8504 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 8505 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 8506 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 8507 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 8508 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 8509 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 8510 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 8511 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 8512 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 8513 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 8514 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 8515 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 8516 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 8517 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 8518 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 8519 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 8520 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 8521 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 8522 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 8523 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 8524 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 8525 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 8526 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 8527 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 8528 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 8529 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 8530 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 8531 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 8532 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 8533 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 8534 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 8535 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 8536 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 8537 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 8538 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 8539 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 8540 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 8541 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 8542 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 8543 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 8544 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 8545 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 8546 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 8547 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 8548 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 8549 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 8550 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 8551 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 8552 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 8553 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 8554 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 8555 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 8556 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8557 | .also_non_np = 1, |
| 8558 | .np = 2, |
| 8559 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 8560 | }, |
| 8561 | }; |
| 8562 | |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 8563 | static struct cipher_testvec tf_xts_enc_tv_template[] = { |
| 8564 | /* Generated from AES-XTS test vectors */ |
| 8565 | { |
| 8566 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8567 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8568 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8569 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8570 | .klen = 32, |
| 8571 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8572 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8573 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8574 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8575 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8576 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8577 | .ilen = 32, |
| 8578 | .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 8579 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 8580 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 8581 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 8582 | .rlen = 32, |
| 8583 | }, { |
| 8584 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8585 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8586 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8587 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8588 | .klen = 32, |
| 8589 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8590 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8591 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8592 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8593 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8594 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8595 | .ilen = 32, |
| 8596 | .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 8597 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 8598 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 8599 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 8600 | .rlen = 32, |
| 8601 | }, { |
| 8602 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 8603 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 8604 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8605 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8606 | .klen = 32, |
| 8607 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8608 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8609 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8610 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8611 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8612 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8613 | .ilen = 32, |
| 8614 | .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 8615 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 8616 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 8617 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 8618 | .rlen = 32, |
| 8619 | }, { |
| 8620 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 8621 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 8622 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 8623 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 8624 | .klen = 32, |
| 8625 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8626 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8627 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8628 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8629 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8630 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8631 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8632 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8633 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8634 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8635 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8636 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8637 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8638 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8639 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8640 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8641 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8642 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8643 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8644 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8645 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8646 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8647 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8648 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8649 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8650 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8651 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8652 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8653 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8654 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8655 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8656 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8657 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8658 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 8659 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8660 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8661 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8662 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8663 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8664 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8665 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8666 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8667 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8668 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8669 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8670 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8671 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8672 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8673 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8674 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8675 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8676 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8677 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8678 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8679 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8680 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8681 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8682 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8683 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8684 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8685 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8686 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8687 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8688 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8689 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8690 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 8691 | .ilen = 512, |
| 8692 | .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 8693 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 8694 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 8695 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 8696 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 8697 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 8698 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 8699 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 8700 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 8701 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 8702 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 8703 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 8704 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 8705 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 8706 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 8707 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 8708 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 8709 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 8710 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 8711 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 8712 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 8713 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 8714 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 8715 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 8716 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 8717 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 8718 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 8719 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 8720 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 8721 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 8722 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 8723 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 8724 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 8725 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 8726 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 8727 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 8728 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 8729 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 8730 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 8731 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 8732 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 8733 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 8734 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 8735 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 8736 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 8737 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 8738 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 8739 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 8740 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 8741 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 8742 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 8743 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 8744 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 8745 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 8746 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 8747 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 8748 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 8749 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 8750 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 8751 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 8752 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 8753 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 8754 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 8755 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 8756 | .rlen = 512, |
| 8757 | }, { |
| 8758 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 8759 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 8760 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 8761 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 8762 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 8763 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 8764 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 8765 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 8766 | .klen = 64, |
| 8767 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 8768 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8769 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8770 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8771 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8772 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8773 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8774 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8775 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8776 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8777 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8778 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8779 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8780 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8781 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8782 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8783 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8784 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8785 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8786 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8787 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8788 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8789 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8790 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8791 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8792 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8793 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8794 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8795 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8796 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8797 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8798 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8799 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8800 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 8801 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8802 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8803 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8804 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8805 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8806 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8807 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8808 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8809 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8810 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8811 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8812 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8813 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8814 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8815 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8816 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8817 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8818 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8819 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8820 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8821 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8822 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8823 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8824 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8825 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8826 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8827 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8828 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8829 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8830 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8831 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8832 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 8833 | .ilen = 512, |
| 8834 | .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 8835 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 8836 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 8837 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 8838 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 8839 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 8840 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 8841 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 8842 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 8843 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 8844 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 8845 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 8846 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 8847 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 8848 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 8849 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 8850 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 8851 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 8852 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 8853 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 8854 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 8855 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 8856 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 8857 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 8858 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 8859 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 8860 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 8861 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 8862 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 8863 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 8864 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 8865 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 8866 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 8867 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 8868 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 8869 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 8870 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 8871 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 8872 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 8873 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 8874 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 8875 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 8876 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 8877 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 8878 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 8879 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 8880 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 8881 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 8882 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 8883 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 8884 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 8885 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 8886 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 8887 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 8888 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 8889 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 8890 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 8891 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 8892 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 8893 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 8894 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 8895 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 8896 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 8897 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 8898 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8899 | .also_non_np = 1, |
| 8900 | .np = 2, |
| 8901 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 8902 | }, |
| 8903 | }; |
| 8904 | |
| 8905 | static struct cipher_testvec tf_xts_dec_tv_template[] = { |
| 8906 | /* Generated from AES-XTS test vectors */ |
| 8907 | /* same as enc vectors with input and result reversed */ |
| 8908 | { |
| 8909 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8910 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8911 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8912 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8913 | .klen = 32, |
| 8914 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8915 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8916 | .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 8917 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 8918 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 8919 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 8920 | .ilen = 32, |
| 8921 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8922 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8923 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8924 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8925 | .rlen = 32, |
| 8926 | }, { |
| 8927 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8928 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8929 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8930 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8931 | .klen = 32, |
| 8932 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8933 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8934 | .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 8935 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 8936 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 8937 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 8938 | .ilen = 32, |
| 8939 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8940 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8941 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8942 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8943 | .rlen = 32, |
| 8944 | }, { |
| 8945 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 8946 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 8947 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8948 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8949 | .klen = 32, |
| 8950 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8951 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8952 | .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 8953 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 8954 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 8955 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 8956 | .ilen = 32, |
| 8957 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8958 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8959 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8960 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8961 | .rlen = 32, |
| 8962 | }, { |
| 8963 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 8964 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 8965 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 8966 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 8967 | .klen = 32, |
| 8968 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8969 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8970 | .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 8971 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 8972 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 8973 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 8974 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 8975 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 8976 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 8977 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 8978 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 8979 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 8980 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 8981 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 8982 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 8983 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 8984 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 8985 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 8986 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 8987 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 8988 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 8989 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 8990 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 8991 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 8992 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 8993 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 8994 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 8995 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 8996 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 8997 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 8998 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 8999 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 9000 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 9001 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 9002 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 9003 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 9004 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 9005 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 9006 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 9007 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 9008 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 9009 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 9010 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 9011 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 9012 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 9013 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 9014 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 9015 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 9016 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 9017 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 9018 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 9019 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 9020 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 9021 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 9022 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 9023 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 9024 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 9025 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 9026 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 9027 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 9028 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 9029 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 9030 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 9031 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 9032 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 9033 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 9034 | .ilen = 512, |
| 9035 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9036 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9037 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9038 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9039 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9040 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9041 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9042 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9043 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9044 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9045 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9046 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9047 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9048 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9049 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9050 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9051 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9052 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9053 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9054 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9055 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9056 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9057 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9058 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9059 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9060 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9061 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9062 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9063 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9064 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9065 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9066 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9067 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9068 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9069 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9070 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9071 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9072 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9073 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9074 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9075 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9076 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9077 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9078 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9079 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9080 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9081 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9082 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9083 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9084 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9085 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9086 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9087 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9088 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9089 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9090 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9091 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9092 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9093 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9094 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9095 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9096 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9097 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9098 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9099 | .rlen = 512, |
| 9100 | }, { |
| 9101 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 9102 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 9103 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 9104 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 9105 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 9106 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 9107 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 9108 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 9109 | .klen = 64, |
| 9110 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 9111 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9112 | .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 9113 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 9114 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 9115 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 9116 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 9117 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 9118 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 9119 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 9120 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 9121 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 9122 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 9123 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 9124 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 9125 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 9126 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 9127 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 9128 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 9129 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 9130 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 9131 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 9132 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 9133 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 9134 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 9135 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 9136 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 9137 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 9138 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 9139 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 9140 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 9141 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 9142 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 9143 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 9144 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 9145 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 9146 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 9147 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 9148 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 9149 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 9150 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 9151 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 9152 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 9153 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 9154 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 9155 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 9156 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 9157 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 9158 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 9159 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 9160 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 9161 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 9162 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 9163 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 9164 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 9165 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 9166 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 9167 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 9168 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 9169 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 9170 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 9171 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 9172 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 9173 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 9174 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 9175 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 9176 | .ilen = 512, |
| 9177 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9178 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9179 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9180 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9181 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9182 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9183 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9184 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9185 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9186 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9187 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9188 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9189 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9190 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9191 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9192 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9193 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9194 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9195 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9196 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9197 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9198 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9199 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9200 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9201 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9202 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9203 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9204 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9205 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9206 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9207 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9208 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9209 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9210 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9211 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9212 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9213 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9214 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9215 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9216 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9217 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9218 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9219 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9220 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9221 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9222 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9223 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9224 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9225 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9226 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9227 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9228 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9229 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9230 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9231 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9232 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9233 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9234 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9235 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9236 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9237 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9238 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9239 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9240 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9241 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9242 | .also_non_np = 1, |
| 9243 | .np = 2, |
| 9244 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 9245 | }, |
| 9246 | }; |
| 9247 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9248 | /* |
| 9249 | * Serpent test vectors. These are backwards because Serpent writes |
| 9250 | * octet sequences in right-to-left mode. |
| 9251 | */ |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9252 | #define SERPENT_ENC_TEST_VECTORS 5 |
| 9253 | #define SERPENT_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9254 | |
| 9255 | #define TNEPRES_ENC_TEST_VECTORS 4 |
| 9256 | #define TNEPRES_DEC_TEST_VECTORS 4 |
| 9257 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9258 | #define SERPENT_CBC_ENC_TEST_VECTORS 1 |
| 9259 | #define SERPENT_CBC_DEC_TEST_VECTORS 1 |
| 9260 | |
| 9261 | #define SERPENT_CTR_ENC_TEST_VECTORS 2 |
| 9262 | #define SERPENT_CTR_DEC_TEST_VECTORS 2 |
| 9263 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 9264 | #define SERPENT_LRW_ENC_TEST_VECTORS 8 |
| 9265 | #define SERPENT_LRW_DEC_TEST_VECTORS 8 |
| 9266 | |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 9267 | #define SERPENT_XTS_ENC_TEST_VECTORS 5 |
| 9268 | #define SERPENT_XTS_DEC_TEST_VECTORS 5 |
| 9269 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9270 | static struct cipher_testvec serpent_enc_tv_template[] = { |
| 9271 | { |
| 9272 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9273 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9274 | .ilen = 16, |
| 9275 | .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 9276 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 9277 | .rlen = 16, |
| 9278 | }, { |
| 9279 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9280 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9281 | .klen = 16, |
| 9282 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9283 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9284 | .ilen = 16, |
| 9285 | .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 9286 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 9287 | .rlen = 16, |
| 9288 | }, { |
| 9289 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9290 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9291 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9292 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 9293 | .klen = 32, |
| 9294 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9295 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9296 | .ilen = 16, |
| 9297 | .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 9298 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 9299 | .rlen = 16, |
| 9300 | }, { |
| 9301 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 9302 | .klen = 16, |
| 9303 | .input = zeroed_string, |
| 9304 | .ilen = 16, |
| 9305 | .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 9306 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 9307 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9308 | }, { /* Generated with Crypto++ */ |
| 9309 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9310 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9311 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9312 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9313 | .klen = 32, |
| 9314 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9315 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9316 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9317 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9318 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9319 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9320 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9321 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9322 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9323 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9324 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9325 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9326 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9327 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9328 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9329 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9330 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9331 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9332 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9333 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9334 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9335 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9336 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9337 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9338 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9339 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9340 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9341 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9342 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9343 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9344 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9345 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9346 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9347 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9348 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9349 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9350 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9351 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9352 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9353 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9354 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9355 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9356 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9357 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9358 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9359 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9360 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9361 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9362 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9363 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9364 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9365 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9366 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9367 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9368 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9369 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9370 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9371 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9372 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9373 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9374 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9375 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9376 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9377 | .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 9378 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 9379 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 9380 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 9381 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 9382 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 9383 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 9384 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 9385 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 9386 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 9387 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 9388 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 9389 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 9390 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 9391 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 9392 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 9393 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9394 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6" |
| 9395 | "\xB6\x31\x36\x34\x38\x3C\x1D\x69" |
| 9396 | "\x9F\x47\x28\x9A\x1D\x96\x70\x54" |
| 9397 | "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A" |
| 9398 | "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A" |
| 9399 | "\x23\x9C\x9B\x79\xC7\x75\xC8\x39" |
| 9400 | "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D" |
| 9401 | "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B" |
| 9402 | "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F" |
| 9403 | "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8" |
| 9404 | "\xEF\x50\x22\x20\x93\x30\xBE\xE2" |
| 9405 | "\x38\x05\x65\xAF\xBA\xB6\xE4\x72" |
| 9406 | "\xA9\xEE\x05\x42\x88\xBD\x9D\x49" |
| 9407 | "\xAD\x93\xCA\x4D\x45\x11\x43\x4D" |
| 9408 | "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4" |
| 9409 | "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD" |
| 9410 | "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6" |
| 9411 | "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69" |
| 9412 | "\x73\x65\x65\x51\xD6\x0B\x4E\x8C" |
| 9413 | "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B" |
| 9414 | "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39" |
| 9415 | "\xE8\x10\x93\x16\xC8\x68\x4C\x60" |
| 9416 | "\x87\x70\x14\xD0\x01\x57\xCB\x42" |
| 9417 | "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7" |
| 9418 | "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE" |
| 9419 | "\xFD\x72\xEC\xD7\x6F\x97\x14\x90" |
| 9420 | "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE" |
| 9421 | "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B" |
| 9422 | "\x71\x80\x05\x35\x3F\x40\x0B\x21" |
| 9423 | "\x76\xE5\xEF\x42\x6C\xDB\x31\x05" |
| 9424 | "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2" |
| 9425 | "\x49\x03\x5E\x77\x2E\x20\xBA\xA1" |
| 9426 | "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E" |
| 9427 | "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F" |
| 9428 | "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6" |
| 9429 | "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1" |
| 9430 | "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00" |
| 9431 | "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF" |
| 9432 | "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45" |
| 9433 | "\x91\x76\xE7\x6E\x65\x3D\x15\x86" |
| 9434 | "\x10\xF8\xDB\x66\x97\x7C\x43\x4D" |
| 9435 | "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A" |
| 9436 | "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02" |
| 9437 | "\x75\x55\x9B\xFF\x36\x73\xAB\x7C" |
| 9438 | "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7", |
| 9439 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9440 | .also_non_np = 1, |
| 9441 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9442 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9443 | }, |
| 9444 | }; |
| 9445 | |
| 9446 | static struct cipher_testvec tnepres_enc_tv_template[] = { |
| 9447 | { /* KeySize=128, PT=0, I=1 */ |
| 9448 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9449 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9450 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 9451 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9452 | .klen = 16, |
| 9453 | .ilen = 16, |
| 9454 | .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05" |
| 9455 | "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd", |
| 9456 | .rlen = 16, |
| 9457 | }, { /* KeySize=192, PT=0, I=1 */ |
| 9458 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 9459 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9460 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9461 | .klen = 24, |
| 9462 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9463 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9464 | .ilen = 16, |
| 9465 | .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68" |
| 9466 | "\xac\x36\x78\xf7\xa3\xf6\x0c\x66", |
| 9467 | .rlen = 16, |
| 9468 | }, { /* KeySize=256, PT=0, I=1 */ |
| 9469 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 9470 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9471 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9472 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9473 | .klen = 32, |
| 9474 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9475 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9476 | .ilen = 16, |
| 9477 | .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb" |
| 9478 | "\xc0\xeb\xd2\x1a\x82\xef\x08\x19", |
| 9479 | .rlen = 16, |
| 9480 | }, { /* KeySize=256, I=257 */ |
| 9481 | .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18" |
| 9482 | "\x17\x16\x15\x14\x13\x12\x11\x10" |
| 9483 | "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 9484 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 9485 | .klen = 32, |
| 9486 | .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 9487 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 9488 | .ilen = 16, |
| 9489 | .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b" |
| 9490 | "\xb8\x32\xe4\x33\xf8\x9f\x26\xde", |
| 9491 | .rlen = 16, |
| 9492 | }, |
| 9493 | }; |
| 9494 | |
| 9495 | |
| 9496 | static struct cipher_testvec serpent_dec_tv_template[] = { |
| 9497 | { |
| 9498 | .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 9499 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 9500 | .ilen = 16, |
| 9501 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9502 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9503 | .rlen = 16, |
| 9504 | }, { |
| 9505 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9506 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9507 | .klen = 16, |
| 9508 | .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 9509 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 9510 | .ilen = 16, |
| 9511 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9512 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9513 | .rlen = 16, |
| 9514 | }, { |
| 9515 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9516 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9517 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9518 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 9519 | .klen = 32, |
| 9520 | .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 9521 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 9522 | .ilen = 16, |
| 9523 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9524 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9525 | .rlen = 16, |
| 9526 | }, { |
| 9527 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 9528 | .klen = 16, |
| 9529 | .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 9530 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 9531 | .ilen = 16, |
| 9532 | .result = zeroed_string, |
| 9533 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9534 | }, { /* Generated with Crypto++ */ |
| 9535 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9536 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9537 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9538 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9539 | .klen = 32, |
| 9540 | .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 9541 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 9542 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 9543 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 9544 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 9545 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 9546 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 9547 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 9548 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 9549 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 9550 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 9551 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 9552 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 9553 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 9554 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 9555 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 9556 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9557 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6" |
| 9558 | "\xB6\x31\x36\x34\x38\x3C\x1D\x69" |
| 9559 | "\x9F\x47\x28\x9A\x1D\x96\x70\x54" |
| 9560 | "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A" |
| 9561 | "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A" |
| 9562 | "\x23\x9C\x9B\x79\xC7\x75\xC8\x39" |
| 9563 | "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D" |
| 9564 | "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B" |
| 9565 | "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F" |
| 9566 | "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8" |
| 9567 | "\xEF\x50\x22\x20\x93\x30\xBE\xE2" |
| 9568 | "\x38\x05\x65\xAF\xBA\xB6\xE4\x72" |
| 9569 | "\xA9\xEE\x05\x42\x88\xBD\x9D\x49" |
| 9570 | "\xAD\x93\xCA\x4D\x45\x11\x43\x4D" |
| 9571 | "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4" |
| 9572 | "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD" |
| 9573 | "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6" |
| 9574 | "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69" |
| 9575 | "\x73\x65\x65\x51\xD6\x0B\x4E\x8C" |
| 9576 | "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B" |
| 9577 | "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39" |
| 9578 | "\xE8\x10\x93\x16\xC8\x68\x4C\x60" |
| 9579 | "\x87\x70\x14\xD0\x01\x57\xCB\x42" |
| 9580 | "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7" |
| 9581 | "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE" |
| 9582 | "\xFD\x72\xEC\xD7\x6F\x97\x14\x90" |
| 9583 | "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE" |
| 9584 | "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B" |
| 9585 | "\x71\x80\x05\x35\x3F\x40\x0B\x21" |
| 9586 | "\x76\xE5\xEF\x42\x6C\xDB\x31\x05" |
| 9587 | "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2" |
| 9588 | "\x49\x03\x5E\x77\x2E\x20\xBA\xA1" |
| 9589 | "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E" |
| 9590 | "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F" |
| 9591 | "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6" |
| 9592 | "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1" |
| 9593 | "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00" |
| 9594 | "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF" |
| 9595 | "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45" |
| 9596 | "\x91\x76\xE7\x6E\x65\x3D\x15\x86" |
| 9597 | "\x10\xF8\xDB\x66\x97\x7C\x43\x4D" |
| 9598 | "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A" |
| 9599 | "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02" |
| 9600 | "\x75\x55\x9B\xFF\x36\x73\xAB\x7C" |
| 9601 | "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7", |
| 9602 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9603 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9604 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9605 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9606 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9607 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9608 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9609 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9610 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9611 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9612 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9613 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9614 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9615 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9616 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9617 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9618 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9619 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9620 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9621 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9622 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9623 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9624 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9625 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9626 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9627 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9628 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9629 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9630 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9631 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9632 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9633 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9634 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9635 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9636 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9637 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9638 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9639 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9640 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9641 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9642 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9643 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9644 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9645 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9646 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9647 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9648 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9649 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9650 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9651 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9652 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9653 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9654 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9655 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9656 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9657 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9658 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9659 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9660 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9661 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9662 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9663 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9664 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9665 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9666 | .also_non_np = 1, |
| 9667 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9668 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9669 | }, |
| 9670 | }; |
| 9671 | |
| 9672 | static struct cipher_testvec tnepres_dec_tv_template[] = { |
| 9673 | { |
| 9674 | .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97" |
| 9675 | "\x6d\x6f\xbb\x38\x4b\x37\x21\x28", |
| 9676 | .ilen = 16, |
| 9677 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9678 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9679 | .rlen = 16, |
| 9680 | }, { |
| 9681 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9682 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9683 | .klen = 16, |
| 9684 | .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47" |
| 9685 | "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e", |
| 9686 | .ilen = 16, |
| 9687 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9688 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9689 | .rlen = 16, |
| 9690 | }, { |
| 9691 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9692 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9693 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9694 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 9695 | .klen = 32, |
| 9696 | .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49" |
| 9697 | "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee", |
| 9698 | .ilen = 16, |
| 9699 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9700 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9701 | .rlen = 16, |
| 9702 | }, { /* KeySize=128, I=121 */ |
| 9703 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 9704 | .klen = 16, |
| 9705 | .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06" |
| 9706 | "\x46\x2a\xf4\xef\x81\x54\x4e\x26", |
| 9707 | .ilen = 16, |
| 9708 | .result = zeroed_string, |
| 9709 | .rlen = 16, |
| 9710 | }, |
| 9711 | }; |
| 9712 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9713 | static struct cipher_testvec serpent_cbc_enc_tv_template[] = { |
| 9714 | { /* Generated with Crypto++ */ |
| 9715 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9716 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9717 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9718 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9719 | .klen = 32, |
| 9720 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 9721 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 9722 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9723 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9724 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9725 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9726 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9727 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9728 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9729 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9730 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9731 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9732 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9733 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9734 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9735 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9736 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9737 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9738 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9739 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9740 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9741 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9742 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9743 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9744 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9745 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9746 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9747 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9748 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9749 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9750 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9751 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9752 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9753 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9754 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9755 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9756 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9757 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9758 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9759 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9760 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9761 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9762 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9763 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9764 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9765 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9766 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9767 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9768 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9769 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9770 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9771 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9772 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9773 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9774 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9775 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9776 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9777 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9778 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9779 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9780 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9781 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9782 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9783 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9784 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9785 | .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 9786 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 9787 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 9788 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 9789 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 9790 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 9791 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 9792 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 9793 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 9794 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 9795 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 9796 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 9797 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 9798 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 9799 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 9800 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 9801 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9802 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C" |
| 9803 | "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A" |
| 9804 | "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC" |
| 9805 | "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97" |
| 9806 | "\x5A\x5E\x7E\x96\x52\x20\xDC\x25" |
| 9807 | "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C" |
| 9808 | "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B" |
| 9809 | "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9" |
| 9810 | "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5" |
| 9811 | "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B" |
| 9812 | "\xA1\xC0\x12\x54\x4E\xC9\x20\x92" |
| 9813 | "\x11\x00\x10\x4E\xB3\x7C\xCA\x63" |
| 9814 | "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7" |
| 9815 | "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D" |
| 9816 | "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7" |
| 9817 | "\x81\x92\x66\x67\x15\x1E\x39\x98" |
| 9818 | "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A" |
| 9819 | "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05" |
| 9820 | "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B" |
| 9821 | "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C" |
| 9822 | "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3" |
| 9823 | "\x96\xC6\x66\x49\xDA\x0D\x71\xAC" |
| 9824 | "\x04\x05\x46\xD3\x90\x0F\x64\x64" |
| 9825 | "\x01\x66\x2C\x62\x5D\x34\xD1\xCB" |
| 9826 | "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97" |
| 9827 | "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D" |
| 9828 | "\x62\xA6\x19\x28\x9E\x26\xB4\x3F" |
| 9829 | "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0" |
| 9830 | "\x7D\xE9\x95\x45\x86\xED\xB1\xE0" |
| 9831 | "\x8D\xE9\xC5\x86\x13\x24\x28\x7D" |
| 9832 | "\x74\xEF\xCA\x50\x12\x7E\x64\x8F" |
| 9833 | "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7" |
| 9834 | "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA" |
| 9835 | "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2" |
| 9836 | "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E" |
| 9837 | "\xE6\x75\x0D\x54\x64\x11\xA3\x3A" |
| 9838 | "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E" |
| 9839 | "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4" |
| 9840 | "\xBA\x23\x2D\x8D\x29\x07\x12\xCF" |
| 9841 | "\x34\xCD\x72\x7F\x01\x30\xE7\xA0" |
| 9842 | "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2" |
| 9843 | "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4" |
| 9844 | "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF" |
| 9845 | "\xFC\x66\xAA\x37\xF2\x37\x39\x6B" |
| 9846 | "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1", |
| 9847 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9848 | .also_non_np = 1, |
| 9849 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9850 | .tap = { 496 - 16, 16 }, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9851 | }, |
| 9852 | }; |
| 9853 | |
| 9854 | static struct cipher_testvec serpent_cbc_dec_tv_template[] = { |
| 9855 | { /* Generated with Crypto++ */ |
| 9856 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9857 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9858 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9859 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9860 | .klen = 32, |
| 9861 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 9862 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 9863 | .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 9864 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 9865 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 9866 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 9867 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 9868 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 9869 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 9870 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 9871 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 9872 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 9873 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 9874 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 9875 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 9876 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 9877 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 9878 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 9879 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9880 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C" |
| 9881 | "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A" |
| 9882 | "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC" |
| 9883 | "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97" |
| 9884 | "\x5A\x5E\x7E\x96\x52\x20\xDC\x25" |
| 9885 | "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C" |
| 9886 | "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B" |
| 9887 | "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9" |
| 9888 | "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5" |
| 9889 | "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B" |
| 9890 | "\xA1\xC0\x12\x54\x4E\xC9\x20\x92" |
| 9891 | "\x11\x00\x10\x4E\xB3\x7C\xCA\x63" |
| 9892 | "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7" |
| 9893 | "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D" |
| 9894 | "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7" |
| 9895 | "\x81\x92\x66\x67\x15\x1E\x39\x98" |
| 9896 | "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A" |
| 9897 | "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05" |
| 9898 | "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B" |
| 9899 | "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C" |
| 9900 | "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3" |
| 9901 | "\x96\xC6\x66\x49\xDA\x0D\x71\xAC" |
| 9902 | "\x04\x05\x46\xD3\x90\x0F\x64\x64" |
| 9903 | "\x01\x66\x2C\x62\x5D\x34\xD1\xCB" |
| 9904 | "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97" |
| 9905 | "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D" |
| 9906 | "\x62\xA6\x19\x28\x9E\x26\xB4\x3F" |
| 9907 | "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0" |
| 9908 | "\x7D\xE9\x95\x45\x86\xED\xB1\xE0" |
| 9909 | "\x8D\xE9\xC5\x86\x13\x24\x28\x7D" |
| 9910 | "\x74\xEF\xCA\x50\x12\x7E\x64\x8F" |
| 9911 | "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7" |
| 9912 | "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA" |
| 9913 | "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2" |
| 9914 | "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E" |
| 9915 | "\xE6\x75\x0D\x54\x64\x11\xA3\x3A" |
| 9916 | "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E" |
| 9917 | "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4" |
| 9918 | "\xBA\x23\x2D\x8D\x29\x07\x12\xCF" |
| 9919 | "\x34\xCD\x72\x7F\x01\x30\xE7\xA0" |
| 9920 | "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2" |
| 9921 | "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4" |
| 9922 | "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF" |
| 9923 | "\xFC\x66\xAA\x37\xF2\x37\x39\x6B" |
| 9924 | "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1", |
| 9925 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9926 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9927 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9928 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9929 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9930 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9931 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9932 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9933 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9934 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9935 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9936 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9937 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9938 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9939 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9940 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9941 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9942 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9943 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9944 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9945 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9946 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9947 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9948 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9949 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9950 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9951 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9952 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9953 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9954 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9955 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9956 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9957 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9958 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9959 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9960 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9961 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9962 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9963 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9964 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9965 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9966 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9967 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9968 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9969 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9970 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9971 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9972 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9973 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9974 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9975 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9976 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9977 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9978 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9979 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9980 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9981 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9982 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9983 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9984 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9985 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9986 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9987 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9988 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9989 | .also_non_np = 1, |
| 9990 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9991 | .tap = { 496 - 16, 16 }, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9992 | }, |
| 9993 | }; |
| 9994 | |
| 9995 | static struct cipher_testvec serpent_ctr_enc_tv_template[] = { |
| 9996 | { /* Generated with Crypto++ */ |
| 9997 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9998 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9999 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10000 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10001 | .klen = 32, |
| 10002 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10003 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10004 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10005 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10006 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10007 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10008 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10009 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10010 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10011 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10012 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10013 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10014 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10015 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10016 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10017 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10018 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10019 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10020 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10021 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10022 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10023 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10024 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10025 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10026 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10027 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10028 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10029 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10030 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10031 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10032 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10033 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10034 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10035 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10036 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10037 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10038 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10039 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10040 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10041 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10042 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10043 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10044 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10045 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10046 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10047 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10048 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10049 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10050 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10051 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10052 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10053 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10054 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10055 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10056 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10057 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10058 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10059 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10060 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10061 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10062 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10063 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10064 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10065 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10066 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10067 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 10068 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 10069 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 10070 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 10071 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 10072 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 10073 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 10074 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 10075 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 10076 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 10077 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 10078 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 10079 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 10080 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 10081 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 10082 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 10083 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10084 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 10085 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 10086 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 10087 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 10088 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 10089 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 10090 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 10091 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 10092 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 10093 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 10094 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 10095 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 10096 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 10097 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 10098 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 10099 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 10100 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 10101 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 10102 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 10103 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 10104 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 10105 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 10106 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 10107 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 10108 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 10109 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 10110 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 10111 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 10112 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 10113 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 10114 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 10115 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 10116 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 10117 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 10118 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 10119 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 10120 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 10121 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 10122 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 10123 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 10124 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 10125 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 10126 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 10127 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 10128 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13", |
| 10129 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10130 | }, { /* Generated with Crypto++ */ |
| 10131 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10132 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10133 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10134 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10135 | .klen = 32, |
| 10136 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10137 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10138 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10139 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10140 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10141 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10142 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10143 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10144 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10145 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10146 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10147 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10148 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10149 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10150 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10151 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10152 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10153 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10154 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 10155 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10156 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10157 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10158 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10159 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10160 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10161 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10162 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10163 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10164 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10165 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10166 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10167 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10168 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10169 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10170 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10171 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10172 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10173 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10174 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10175 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10176 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10177 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10178 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10179 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10180 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10181 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10182 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10183 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10184 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10185 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10186 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10187 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10188 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10189 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10190 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10191 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10192 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10193 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10194 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10195 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10196 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10197 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10198 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10199 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 10200 | "\x2B\xC2\x59", |
| 10201 | .ilen = 499, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10202 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 10203 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 10204 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 10205 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 10206 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 10207 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 10208 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 10209 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 10210 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 10211 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 10212 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 10213 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 10214 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 10215 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 10216 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 10217 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 10218 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 10219 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10220 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 10221 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 10222 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 10223 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 10224 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 10225 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 10226 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 10227 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 10228 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 10229 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 10230 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 10231 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 10232 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 10233 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 10234 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 10235 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 10236 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 10237 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 10238 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 10239 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 10240 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 10241 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 10242 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 10243 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 10244 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 10245 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 10246 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 10247 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 10248 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 10249 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 10250 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 10251 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 10252 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 10253 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 10254 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 10255 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 10256 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 10257 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 10258 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 10259 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 10260 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 10261 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 10262 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 10263 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13" |
| 10264 | "\x38\xE2\xE5", |
| 10265 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10266 | .also_non_np = 1, |
| 10267 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10268 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 10269 | }, { /* Generated with Crypto++ */ |
| 10270 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10271 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10272 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10273 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10274 | .klen = 32, |
| 10275 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 10276 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 10277 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10278 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10279 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10280 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10281 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10282 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10283 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10284 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10285 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10286 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10287 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10288 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10289 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10290 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10291 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10292 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10293 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 10294 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10295 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10296 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10297 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10298 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10299 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10300 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10301 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10302 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10303 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10304 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10305 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10306 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10307 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10308 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10309 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10310 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10311 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10312 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10313 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10314 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10315 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10316 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10317 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10318 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10319 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10320 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10321 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10322 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10323 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10324 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10325 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10326 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10327 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10328 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10329 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10330 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10331 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10332 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10333 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10334 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10335 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10336 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10337 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10338 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10339 | .ilen = 496, |
| 10340 | .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC" |
| 10341 | "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D" |
| 10342 | "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC" |
| 10343 | "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A" |
| 10344 | "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E" |
| 10345 | "\x71\x28\x06\x4F\xE8\x08\x39\xDA" |
| 10346 | "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69" |
| 10347 | "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B" |
| 10348 | "\x9F\x3E\x39\x79\xF0\xCD\x64\x35" |
| 10349 | "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B" |
| 10350 | "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18" |
| 10351 | "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2" |
| 10352 | "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47" |
| 10353 | "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2" |
| 10354 | "\x7D\xE2\x43\x81\x86\x72\x2E\xB1" |
| 10355 | "\x39\xF6\x95\xE1\x1F\xCB\x76\x33" |
| 10356 | "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F" |
| 10357 | "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C" |
| 10358 | "\x70\xFE\x52\xAA\x93\x3C\xC4\x46" |
| 10359 | "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE" |
| 10360 | "\x25\x92\xB2\x63\xBD\x49\x77\xB4" |
| 10361 | "\x22\xA4\x6A\xD5\x04\xE0\x45\x58" |
| 10362 | "\x1C\x34\x96\x7C\x03\x0C\x13\xA2" |
| 10363 | "\x05\x22\xE2\xCB\x5A\x35\x03\x09" |
| 10364 | "\x40\xD2\x82\x05\xCA\x58\x73\xF2" |
| 10365 | "\x29\x5E\x01\x47\x13\x32\x78\xBE" |
| 10366 | "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C" |
| 10367 | "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1" |
| 10368 | "\x38\x35\x11\x26\x4A\xB4\x06\x32" |
| 10369 | "\xFA\xD2\x07\x77\xB3\x74\x98\x80" |
| 10370 | "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF" |
| 10371 | "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F" |
| 10372 | "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65" |
| 10373 | "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA" |
| 10374 | "\xD6\x9B\xC9\x6D\x58\x40\x81\x02" |
| 10375 | "\x73\x44\x4E\x43\x6E\x37\xBB\x11" |
| 10376 | "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA" |
| 10377 | "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8" |
| 10378 | "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B" |
| 10379 | "\x07\xB5\x82\x3A\xC4\xE8\x42\x51" |
| 10380 | "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F" |
| 10381 | "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7" |
| 10382 | "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F" |
| 10383 | "\xBF\xF9\xAC\x59\x50\xA8\x08\x70" |
| 10384 | "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2" |
| 10385 | "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD" |
| 10386 | "\xC1\x03\x9A\xAA\x89\x8B\x32\x46" |
| 10387 | "\x5B\x18\x27\xBA\x46\xAA\x64\xDE" |
| 10388 | "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB" |
| 10389 | "\x7E\xDA\xEC\x30\x17\x19\xF8\x80" |
| 10390 | "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28" |
| 10391 | "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE" |
| 10392 | "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8" |
| 10393 | "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B" |
| 10394 | "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E" |
| 10395 | "\xDC\x34\x27\x89\x98\xCE\x1C\xA2" |
| 10396 | "\xD8\xB8\x90\xBE\xEC\x72\x28\x13" |
| 10397 | "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50" |
| 10398 | "\xB7\x99\x65\x8A\xC9\xC6\x21\x34" |
| 10399 | "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17" |
| 10400 | "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0" |
| 10401 | "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20", |
| 10402 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10403 | }, |
| 10404 | }; |
| 10405 | |
| 10406 | static struct cipher_testvec serpent_ctr_dec_tv_template[] = { |
| 10407 | { /* Generated with Crypto++ */ |
| 10408 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10409 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10410 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10411 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10412 | .klen = 32, |
| 10413 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10414 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10415 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 10416 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 10417 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 10418 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 10419 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 10420 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 10421 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 10422 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 10423 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 10424 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 10425 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 10426 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 10427 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 10428 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 10429 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 10430 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 10431 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10432 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 10433 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 10434 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 10435 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 10436 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 10437 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 10438 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 10439 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 10440 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 10441 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 10442 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 10443 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 10444 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 10445 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 10446 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 10447 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 10448 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 10449 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 10450 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 10451 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 10452 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 10453 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 10454 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 10455 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 10456 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 10457 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 10458 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 10459 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 10460 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 10461 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 10462 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 10463 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 10464 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 10465 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 10466 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 10467 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 10468 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 10469 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 10470 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 10471 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 10472 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 10473 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 10474 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 10475 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 10476 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13", |
| 10477 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10478 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10479 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10480 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10481 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10482 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10483 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10484 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10485 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10486 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10487 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10488 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10489 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10490 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10491 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10492 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10493 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10494 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10495 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10496 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10497 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10498 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10499 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10500 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10501 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10502 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10503 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10504 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10505 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10506 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10507 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10508 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10509 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10510 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10511 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10512 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10513 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10514 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10515 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10516 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10517 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10518 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10519 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10520 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10521 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10522 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10523 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10524 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10525 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10526 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10527 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10528 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10529 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10530 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10531 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10532 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10533 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10534 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10535 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10536 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10537 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10538 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10539 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10540 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10541 | }, { /* Generated with Crypto++ */ |
| 10542 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10543 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10544 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10545 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10546 | .klen = 32, |
| 10547 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10548 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10549 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 10550 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 10551 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 10552 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 10553 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 10554 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 10555 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 10556 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 10557 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 10558 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 10559 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 10560 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 10561 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 10562 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 10563 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 10564 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 10565 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 10566 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10567 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 10568 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 10569 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 10570 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 10571 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 10572 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 10573 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 10574 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 10575 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 10576 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 10577 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 10578 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 10579 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 10580 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 10581 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 10582 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 10583 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 10584 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 10585 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 10586 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 10587 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 10588 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 10589 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 10590 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 10591 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 10592 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 10593 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 10594 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 10595 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 10596 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 10597 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 10598 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 10599 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 10600 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 10601 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 10602 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 10603 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 10604 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 10605 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 10606 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 10607 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 10608 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 10609 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 10610 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13" |
| 10611 | "\x38\xE2\xE5", |
| 10612 | .ilen = 499, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10613 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10614 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10615 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10616 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10617 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10618 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10619 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10620 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10621 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10622 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10623 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10624 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10625 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10626 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10627 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10628 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10629 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 10630 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10631 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10632 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10633 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10634 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10635 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10636 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10637 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10638 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10639 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10640 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10641 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10642 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10643 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10644 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10645 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10646 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10647 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10648 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10649 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10650 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10651 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10652 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10653 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10654 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10655 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10656 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10657 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10658 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10659 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10660 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10661 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10662 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10663 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10664 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10665 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10666 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10667 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10668 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10669 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10670 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10671 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10672 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10673 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10674 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 10675 | "\x2B\xC2\x59", |
| 10676 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10677 | .also_non_np = 1, |
| 10678 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10679 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 10680 | }, { /* Generated with Crypto++ */ |
| 10681 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10682 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10683 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10684 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10685 | .klen = 32, |
| 10686 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 10687 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 10688 | .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC" |
| 10689 | "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D" |
| 10690 | "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC" |
| 10691 | "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A" |
| 10692 | "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E" |
| 10693 | "\x71\x28\x06\x4F\xE8\x08\x39\xDA" |
| 10694 | "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69" |
| 10695 | "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B" |
| 10696 | "\x9F\x3E\x39\x79\xF0\xCD\x64\x35" |
| 10697 | "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B" |
| 10698 | "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18" |
| 10699 | "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2" |
| 10700 | "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47" |
| 10701 | "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2" |
| 10702 | "\x7D\xE2\x43\x81\x86\x72\x2E\xB1" |
| 10703 | "\x39\xF6\x95\xE1\x1F\xCB\x76\x33" |
| 10704 | "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F" |
| 10705 | "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C" |
| 10706 | "\x70\xFE\x52\xAA\x93\x3C\xC4\x46" |
| 10707 | "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE" |
| 10708 | "\x25\x92\xB2\x63\xBD\x49\x77\xB4" |
| 10709 | "\x22\xA4\x6A\xD5\x04\xE0\x45\x58" |
| 10710 | "\x1C\x34\x96\x7C\x03\x0C\x13\xA2" |
| 10711 | "\x05\x22\xE2\xCB\x5A\x35\x03\x09" |
| 10712 | "\x40\xD2\x82\x05\xCA\x58\x73\xF2" |
| 10713 | "\x29\x5E\x01\x47\x13\x32\x78\xBE" |
| 10714 | "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C" |
| 10715 | "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1" |
| 10716 | "\x38\x35\x11\x26\x4A\xB4\x06\x32" |
| 10717 | "\xFA\xD2\x07\x77\xB3\x74\x98\x80" |
| 10718 | "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF" |
| 10719 | "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F" |
| 10720 | "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65" |
| 10721 | "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA" |
| 10722 | "\xD6\x9B\xC9\x6D\x58\x40\x81\x02" |
| 10723 | "\x73\x44\x4E\x43\x6E\x37\xBB\x11" |
| 10724 | "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA" |
| 10725 | "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8" |
| 10726 | "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B" |
| 10727 | "\x07\xB5\x82\x3A\xC4\xE8\x42\x51" |
| 10728 | "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F" |
| 10729 | "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7" |
| 10730 | "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F" |
| 10731 | "\xBF\xF9\xAC\x59\x50\xA8\x08\x70" |
| 10732 | "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2" |
| 10733 | "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD" |
| 10734 | "\xC1\x03\x9A\xAA\x89\x8B\x32\x46" |
| 10735 | "\x5B\x18\x27\xBA\x46\xAA\x64\xDE" |
| 10736 | "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB" |
| 10737 | "\x7E\xDA\xEC\x30\x17\x19\xF8\x80" |
| 10738 | "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28" |
| 10739 | "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE" |
| 10740 | "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8" |
| 10741 | "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B" |
| 10742 | "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E" |
| 10743 | "\xDC\x34\x27\x89\x98\xCE\x1C\xA2" |
| 10744 | "\xD8\xB8\x90\xBE\xEC\x72\x28\x13" |
| 10745 | "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50" |
| 10746 | "\xB7\x99\x65\x8A\xC9\xC6\x21\x34" |
| 10747 | "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17" |
| 10748 | "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0" |
| 10749 | "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20", |
| 10750 | .ilen = 496, |
| 10751 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10752 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10753 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10754 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10755 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10756 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10757 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10758 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10759 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10760 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10761 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10762 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10763 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10764 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10765 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10766 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10767 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 10768 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10769 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10770 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10771 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10772 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10773 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10774 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10775 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10776 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10777 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10778 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10779 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10780 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10781 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10782 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10783 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10784 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10785 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10786 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10787 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10788 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10789 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10790 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10791 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10792 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10793 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10794 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10795 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10796 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10797 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10798 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10799 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10800 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10801 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10802 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10803 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10804 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10805 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10806 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10807 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10808 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10809 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10810 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10811 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10812 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10813 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10814 | }, |
| 10815 | }; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10816 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 10817 | static struct cipher_testvec serpent_lrw_enc_tv_template[] = { |
| 10818 | /* Generated from AES-LRW test vectors */ |
| 10819 | { |
| 10820 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 10821 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 10822 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 10823 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 10824 | .klen = 32, |
| 10825 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10826 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 10827 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10828 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10829 | .ilen = 16, |
| 10830 | .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 10831 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 10832 | .rlen = 16, |
| 10833 | }, { |
| 10834 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 10835 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 10836 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 10837 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 10838 | .klen = 32, |
| 10839 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10840 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 10841 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10842 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10843 | .ilen = 16, |
| 10844 | .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 10845 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 10846 | .rlen = 16, |
| 10847 | }, { |
| 10848 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 10849 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 10850 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 10851 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 10852 | .klen = 32, |
| 10853 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10854 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 10855 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10856 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10857 | .ilen = 16, |
| 10858 | .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 10859 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 10860 | .rlen = 16, |
| 10861 | }, { |
| 10862 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 10863 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 10864 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 10865 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 10866 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 10867 | .klen = 40, |
| 10868 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10869 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 10870 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10871 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10872 | .ilen = 16, |
| 10873 | .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 10874 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 10875 | .rlen = 16, |
| 10876 | }, { |
| 10877 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 10878 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 10879 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 10880 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 10881 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 10882 | .klen = 40, |
| 10883 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10884 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 10885 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10886 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10887 | .ilen = 16, |
| 10888 | .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 10889 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 10890 | .rlen = 16, |
| 10891 | }, { |
| 10892 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 10893 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 10894 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 10895 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 10896 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 10897 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 10898 | .klen = 48, |
| 10899 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10900 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 10901 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10902 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10903 | .ilen = 16, |
| 10904 | .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 10905 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 10906 | .rlen = 16, |
| 10907 | }, { |
| 10908 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 10909 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 10910 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 10911 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 10912 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 10913 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 10914 | .klen = 48, |
| 10915 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10916 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 10917 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10918 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10919 | .ilen = 16, |
| 10920 | .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 10921 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 10922 | .rlen = 16, |
| 10923 | }, { |
| 10924 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 10925 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 10926 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 10927 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 10928 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 10929 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 10930 | .klen = 48, |
| 10931 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10932 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 10933 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 10934 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 10935 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 10936 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 10937 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 10938 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 10939 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 10940 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 10941 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 10942 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 10943 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 10944 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 10945 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 10946 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 10947 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 10948 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 10949 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 10950 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 10951 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 10952 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 10953 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 10954 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 10955 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 10956 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 10957 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 10958 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 10959 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 10960 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 10961 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 10962 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 10963 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 10964 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 10965 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 10966 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 10967 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 10968 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 10969 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 10970 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 10971 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 10972 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 10973 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 10974 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 10975 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 10976 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 10977 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 10978 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 10979 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 10980 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 10981 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 10982 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 10983 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 10984 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 10985 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 10986 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 10987 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 10988 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 10989 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 10990 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 10991 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 10992 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 10993 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 10994 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 10995 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 10996 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 10997 | .ilen = 512, |
| 10998 | .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 10999 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 11000 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 11001 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 11002 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 11003 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 11004 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 11005 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 11006 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 11007 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 11008 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 11009 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 11010 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 11011 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 11012 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 11013 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 11014 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 11015 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 11016 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 11017 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 11018 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 11019 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 11020 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 11021 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 11022 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 11023 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 11024 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 11025 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 11026 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 11027 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 11028 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 11029 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 11030 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 11031 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 11032 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 11033 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 11034 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 11035 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 11036 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 11037 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 11038 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 11039 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 11040 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 11041 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 11042 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 11043 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 11044 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 11045 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 11046 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 11047 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 11048 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 11049 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 11050 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 11051 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 11052 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 11053 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 11054 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 11055 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 11056 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 11057 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 11058 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 11059 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 11060 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 11061 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 11062 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11063 | .also_non_np = 1, |
| 11064 | .np = 2, |
| 11065 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 11066 | }, |
| 11067 | }; |
| 11068 | |
| 11069 | static struct cipher_testvec serpent_lrw_dec_tv_template[] = { |
| 11070 | /* Generated from AES-LRW test vectors */ |
| 11071 | /* same as enc vectors with input and result reversed */ |
| 11072 | { |
| 11073 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 11074 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 11075 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 11076 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 11077 | .klen = 32, |
| 11078 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11079 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11080 | .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 11081 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 11082 | .ilen = 16, |
| 11083 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11084 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11085 | .rlen = 16, |
| 11086 | }, { |
| 11087 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 11088 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 11089 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 11090 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 11091 | .klen = 32, |
| 11092 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11093 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 11094 | .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 11095 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 11096 | .ilen = 16, |
| 11097 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11098 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11099 | .rlen = 16, |
| 11100 | }, { |
| 11101 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 11102 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 11103 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 11104 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 11105 | .klen = 32, |
| 11106 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11107 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11108 | .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 11109 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 11110 | .ilen = 16, |
| 11111 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11112 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11113 | .rlen = 16, |
| 11114 | }, { |
| 11115 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 11116 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 11117 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 11118 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 11119 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 11120 | .klen = 40, |
| 11121 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11122 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11123 | .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 11124 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 11125 | .ilen = 16, |
| 11126 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11127 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11128 | .rlen = 16, |
| 11129 | }, { |
| 11130 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 11131 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 11132 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 11133 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 11134 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 11135 | .klen = 40, |
| 11136 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11137 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11138 | .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 11139 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 11140 | .ilen = 16, |
| 11141 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11142 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11143 | .rlen = 16, |
| 11144 | }, { |
| 11145 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 11146 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 11147 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 11148 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 11149 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 11150 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 11151 | .klen = 48, |
| 11152 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11153 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11154 | .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 11155 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 11156 | .ilen = 16, |
| 11157 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11158 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11159 | .rlen = 16, |
| 11160 | }, { |
| 11161 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 11162 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 11163 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 11164 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 11165 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 11166 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 11167 | .klen = 48, |
| 11168 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11169 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11170 | .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 11171 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 11172 | .ilen = 16, |
| 11173 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11174 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11175 | .rlen = 16, |
| 11176 | }, { |
| 11177 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 11178 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 11179 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 11180 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 11181 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 11182 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 11183 | .klen = 48, |
| 11184 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11185 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11186 | .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 11187 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 11188 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 11189 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 11190 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 11191 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 11192 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 11193 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 11194 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 11195 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 11196 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 11197 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 11198 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 11199 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 11200 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 11201 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 11202 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 11203 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 11204 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 11205 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 11206 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 11207 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 11208 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 11209 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 11210 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 11211 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 11212 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 11213 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 11214 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 11215 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 11216 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 11217 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 11218 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 11219 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 11220 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 11221 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 11222 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 11223 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 11224 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 11225 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 11226 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 11227 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 11228 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 11229 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 11230 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 11231 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 11232 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 11233 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 11234 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 11235 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 11236 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 11237 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 11238 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 11239 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 11240 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 11241 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 11242 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 11243 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 11244 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 11245 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 11246 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 11247 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 11248 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 11249 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 11250 | .ilen = 512, |
| 11251 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 11252 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 11253 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 11254 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 11255 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 11256 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 11257 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 11258 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 11259 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 11260 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 11261 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 11262 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 11263 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 11264 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 11265 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 11266 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 11267 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 11268 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 11269 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 11270 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 11271 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 11272 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 11273 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 11274 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 11275 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 11276 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 11277 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 11278 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 11279 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 11280 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 11281 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 11282 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 11283 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 11284 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 11285 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 11286 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 11287 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 11288 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 11289 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 11290 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 11291 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 11292 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 11293 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 11294 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 11295 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 11296 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 11297 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 11298 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 11299 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 11300 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 11301 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 11302 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 11303 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 11304 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 11305 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 11306 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 11307 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 11308 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 11309 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 11310 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 11311 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 11312 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 11313 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 11314 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 11315 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11316 | .also_non_np = 1, |
| 11317 | .np = 2, |
| 11318 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 11319 | }, |
| 11320 | }; |
| 11321 | |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 11322 | static struct cipher_testvec serpent_xts_enc_tv_template[] = { |
| 11323 | /* Generated from AES-XTS test vectors */ |
| 11324 | { |
| 11325 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11326 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11327 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11328 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11329 | .klen = 32, |
| 11330 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11331 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11332 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11333 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11334 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11335 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11336 | .ilen = 32, |
| 11337 | .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 11338 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 11339 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 11340 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 11341 | .rlen = 32, |
| 11342 | }, { |
| 11343 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 11344 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 11345 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 11346 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 11347 | .klen = 32, |
| 11348 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 11349 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11350 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11351 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11352 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11353 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 11354 | .ilen = 32, |
| 11355 | .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 11356 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 11357 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 11358 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 11359 | .rlen = 32, |
| 11360 | }, { |
| 11361 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 11362 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 11363 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 11364 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 11365 | .klen = 32, |
| 11366 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 11367 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11368 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11369 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11370 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11371 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 11372 | .ilen = 32, |
| 11373 | .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 11374 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 11375 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 11376 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 11377 | .rlen = 32, |
| 11378 | }, { |
| 11379 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 11380 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 11381 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 11382 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 11383 | .klen = 32, |
| 11384 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11385 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11386 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11387 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11388 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11389 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11390 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11391 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11392 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11393 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11394 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11395 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11396 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11397 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11398 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11399 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11400 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11401 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11402 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11403 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11404 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11405 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11406 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11407 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11408 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11409 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11410 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11411 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11412 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11413 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11414 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11415 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11416 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11417 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 11418 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11419 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11420 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11421 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11422 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11423 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11424 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11425 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11426 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11427 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11428 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11429 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11430 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11431 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11432 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11433 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11434 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11435 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11436 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11437 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11438 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11439 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11440 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11441 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11442 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11443 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11444 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11445 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11446 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11447 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11448 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11449 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 11450 | .ilen = 512, |
| 11451 | .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 11452 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 11453 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 11454 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 11455 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 11456 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 11457 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 11458 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 11459 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 11460 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 11461 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 11462 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 11463 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 11464 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 11465 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 11466 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 11467 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 11468 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 11469 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 11470 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 11471 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 11472 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 11473 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 11474 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 11475 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 11476 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 11477 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 11478 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 11479 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 11480 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 11481 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 11482 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 11483 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 11484 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 11485 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 11486 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 11487 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 11488 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 11489 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 11490 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 11491 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 11492 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 11493 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 11494 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 11495 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 11496 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 11497 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 11498 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 11499 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 11500 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 11501 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 11502 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 11503 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 11504 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 11505 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 11506 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 11507 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 11508 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 11509 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 11510 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 11511 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 11512 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 11513 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 11514 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 11515 | .rlen = 512, |
| 11516 | }, { |
| 11517 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 11518 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 11519 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 11520 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 11521 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 11522 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 11523 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 11524 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 11525 | .klen = 64, |
| 11526 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 11527 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11528 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11529 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11530 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11531 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11532 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11533 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11534 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11535 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11536 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11537 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11538 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11539 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11540 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11541 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11542 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11543 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11544 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11545 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11546 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11547 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11548 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11549 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11550 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11551 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11552 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11553 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11554 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11555 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11556 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11557 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11558 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11559 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 11560 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11561 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11562 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11563 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11564 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11565 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11566 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11567 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11568 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11569 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11570 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11571 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11572 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11573 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11574 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11575 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11576 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11577 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11578 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11579 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11580 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11581 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11582 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11583 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11584 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11585 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11586 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11587 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11588 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11589 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11590 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11591 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 11592 | .ilen = 512, |
| 11593 | .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 11594 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 11595 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 11596 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 11597 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 11598 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 11599 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 11600 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 11601 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 11602 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 11603 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 11604 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 11605 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 11606 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 11607 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 11608 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 11609 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 11610 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 11611 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 11612 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 11613 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 11614 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 11615 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 11616 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 11617 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 11618 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 11619 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 11620 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 11621 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 11622 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 11623 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 11624 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 11625 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 11626 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 11627 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 11628 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 11629 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 11630 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 11631 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 11632 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 11633 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 11634 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 11635 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 11636 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 11637 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 11638 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 11639 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 11640 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 11641 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 11642 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 11643 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 11644 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 11645 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 11646 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 11647 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 11648 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 11649 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 11650 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 11651 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 11652 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 11653 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 11654 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 11655 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 11656 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 11657 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11658 | .also_non_np = 1, |
| 11659 | .np = 2, |
| 11660 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 11661 | }, |
| 11662 | }; |
| 11663 | |
| 11664 | static struct cipher_testvec serpent_xts_dec_tv_template[] = { |
| 11665 | /* Generated from AES-XTS test vectors */ |
| 11666 | /* same as enc vectors with input and result reversed */ |
| 11667 | { |
| 11668 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11669 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11670 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11671 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11672 | .klen = 32, |
| 11673 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11674 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11675 | .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 11676 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 11677 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 11678 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 11679 | .ilen = 32, |
| 11680 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11681 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11682 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11683 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11684 | .rlen = 32, |
| 11685 | }, { |
| 11686 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 11687 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 11688 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 11689 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 11690 | .klen = 32, |
| 11691 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 11692 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11693 | .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 11694 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 11695 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 11696 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 11697 | .ilen = 32, |
| 11698 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11699 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11700 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11701 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 11702 | .rlen = 32, |
| 11703 | }, { |
| 11704 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 11705 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 11706 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 11707 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 11708 | .klen = 32, |
| 11709 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 11710 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11711 | .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 11712 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 11713 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 11714 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 11715 | .ilen = 32, |
| 11716 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11717 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11718 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11719 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 11720 | .rlen = 32, |
| 11721 | }, { |
| 11722 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 11723 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 11724 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 11725 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 11726 | .klen = 32, |
| 11727 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11728 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11729 | .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 11730 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 11731 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 11732 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 11733 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 11734 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 11735 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 11736 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 11737 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 11738 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 11739 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 11740 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 11741 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 11742 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 11743 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 11744 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 11745 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 11746 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 11747 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 11748 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 11749 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 11750 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 11751 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 11752 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 11753 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 11754 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 11755 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 11756 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 11757 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 11758 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 11759 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 11760 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 11761 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 11762 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 11763 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 11764 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 11765 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 11766 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 11767 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 11768 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 11769 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 11770 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 11771 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 11772 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 11773 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 11774 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 11775 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 11776 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 11777 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 11778 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 11779 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 11780 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 11781 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 11782 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 11783 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 11784 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 11785 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 11786 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 11787 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 11788 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 11789 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 11790 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 11791 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 11792 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 11793 | .ilen = 512, |
| 11794 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11795 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11796 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11797 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11798 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11799 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11800 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11801 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11802 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11803 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11804 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11805 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11806 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11807 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11808 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11809 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11810 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11811 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11812 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11813 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11814 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11815 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11816 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11817 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11818 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11819 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11820 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11821 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11822 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11823 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11824 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11825 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 11826 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11827 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11828 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11829 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11830 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11831 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11832 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11833 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11834 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11835 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11836 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11837 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11838 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11839 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11840 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11841 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11842 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11843 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11844 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11845 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11846 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11847 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11848 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11849 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11850 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11851 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11852 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11853 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11854 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11855 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11856 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11857 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 11858 | .rlen = 512, |
| 11859 | }, { |
| 11860 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 11861 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 11862 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 11863 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 11864 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 11865 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 11866 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 11867 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 11868 | .klen = 64, |
| 11869 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 11870 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11871 | .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 11872 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 11873 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 11874 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 11875 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 11876 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 11877 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 11878 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 11879 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 11880 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 11881 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 11882 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 11883 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 11884 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 11885 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 11886 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 11887 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 11888 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 11889 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 11890 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 11891 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 11892 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 11893 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 11894 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 11895 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 11896 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 11897 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 11898 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 11899 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 11900 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 11901 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 11902 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 11903 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 11904 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 11905 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 11906 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 11907 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 11908 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 11909 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 11910 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 11911 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 11912 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 11913 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 11914 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 11915 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 11916 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 11917 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 11918 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 11919 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 11920 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 11921 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 11922 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 11923 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 11924 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 11925 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 11926 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 11927 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 11928 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 11929 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 11930 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 11931 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 11932 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 11933 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 11934 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 11935 | .ilen = 512, |
| 11936 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11937 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11938 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11939 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11940 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11941 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11942 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11943 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11944 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11945 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11946 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11947 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11948 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11949 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11950 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11951 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11952 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11953 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11954 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11955 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11956 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11957 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11958 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11959 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11960 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11961 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11962 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11963 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11964 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11965 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11966 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11967 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 11968 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11969 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11970 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11971 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11972 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11973 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11974 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11975 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11976 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11977 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11978 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11979 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11980 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11981 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11982 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11983 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11984 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11985 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11986 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11987 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11988 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11989 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11990 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11991 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11992 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11993 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11994 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11995 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11996 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 11997 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 11998 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 11999 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 12000 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12001 | .also_non_np = 1, |
| 12002 | .np = 2, |
| 12003 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 12004 | }, |
| 12005 | }; |
| 12006 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12007 | /* Cast6 test vectors from RFC 2612 */ |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12008 | #define CAST6_ENC_TEST_VECTORS 4 |
| 12009 | #define CAST6_DEC_TEST_VECTORS 4 |
| 12010 | #define CAST6_CBC_ENC_TEST_VECTORS 1 |
| 12011 | #define CAST6_CBC_DEC_TEST_VECTORS 1 |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 12012 | #define CAST6_CTR_ENC_TEST_VECTORS 2 |
| 12013 | #define CAST6_CTR_DEC_TEST_VECTORS 2 |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12014 | #define CAST6_LRW_ENC_TEST_VECTORS 1 |
| 12015 | #define CAST6_LRW_DEC_TEST_VECTORS 1 |
| 12016 | #define CAST6_XTS_ENC_TEST_VECTORS 1 |
| 12017 | #define CAST6_XTS_DEC_TEST_VECTORS 1 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12018 | |
| 12019 | static struct cipher_testvec cast6_enc_tv_template[] = { |
| 12020 | { |
| 12021 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12022 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 12023 | .klen = 16, |
| 12024 | .input = zeroed_string, |
| 12025 | .ilen = 16, |
| 12026 | .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 12027 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 12028 | .rlen = 16, |
| 12029 | }, { |
| 12030 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12031 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12032 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 12033 | .klen = 24, |
| 12034 | .input = zeroed_string, |
| 12035 | .ilen = 16, |
| 12036 | .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 12037 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 12038 | .rlen = 16, |
| 12039 | }, { |
| 12040 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12041 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12042 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 12043 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 12044 | .klen = 32, |
| 12045 | .input = zeroed_string, |
| 12046 | .ilen = 16, |
| 12047 | .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 12048 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 12049 | .rlen = 16, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12050 | }, { /* Generated from TF test vectors */ |
| 12051 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12052 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12053 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12054 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12055 | .klen = 32, |
| 12056 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12057 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12058 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12059 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12060 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12061 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12062 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12063 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12064 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12065 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12066 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12067 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12068 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12069 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12070 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12071 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12072 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12073 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12074 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12075 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12076 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12077 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12078 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12079 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12080 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12081 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12082 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12083 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12084 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12085 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12086 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12087 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12088 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12089 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12090 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12091 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12092 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12093 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12094 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12095 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12096 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12097 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12098 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12099 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12100 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12101 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12102 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12103 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12104 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12105 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12106 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12107 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12108 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12109 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12110 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12111 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12112 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12113 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12114 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12115 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12116 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12117 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12118 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12119 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12120 | .ilen = 496, |
| 12121 | .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54" |
| 12122 | "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6" |
| 12123 | "\xB6\xB9\xC5\xA4\x91\x55\x14\x97" |
| 12124 | "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA" |
| 12125 | "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE" |
| 12126 | "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C" |
| 12127 | "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C" |
| 12128 | "\xD0\x6A\x99\x10\x72\xF8\x47\x62" |
| 12129 | "\x81\x42\xF8\xD8\xF5\xBB\x94\x08" |
| 12130 | "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E" |
| 12131 | "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58" |
| 12132 | "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12" |
| 12133 | "\x5A\x72\x85\x47\x8B\xEC\x9F\x26" |
| 12134 | "\x84\xB6\xED\x10\x33\x63\x9B\x5F" |
| 12135 | "\x4D\x53\xEE\x94\x45\x8B\x60\x58" |
| 12136 | "\x86\x20\xF9\x1E\x82\x08\x3E\x58" |
| 12137 | "\x60\x1B\x34\x19\x02\xBE\x4E\x09" |
| 12138 | "\xBB\x7C\x15\xCC\x60\x27\x55\x7A" |
| 12139 | "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3" |
| 12140 | "\xF1\xDD\xA7\x07\xA3\x12\x85\x28" |
| 12141 | "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A" |
| 12142 | "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43" |
| 12143 | "\x92\xE4\x7C\x26\x69\x4D\x83\x68" |
| 12144 | "\x14\x96\x42\x47\xBD\xA9\xE4\x8A" |
| 12145 | "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E" |
| 12146 | "\x91\x51\xB5\x36\x08\xDE\x1C\x06" |
| 12147 | "\x03\xBD\xDE\x81\x26\xF7\x99\xC2" |
| 12148 | "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF" |
| 12149 | "\xC1\xF5\x27\x05\xB8\x02\x57\x72" |
| 12150 | "\xE6\x42\x13\x0B\xC6\x47\x05\x74" |
| 12151 | "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9" |
| 12152 | "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C" |
| 12153 | "\x98\x82\x67\x67\xB4\xD7\xD3\x43" |
| 12154 | "\x23\x08\x02\xB7\x9B\x99\x05\xFB" |
| 12155 | "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6" |
| 12156 | "\x2E\x49\x58\xD0\xA8\x57\x29\x7F" |
| 12157 | "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67" |
| 12158 | "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D" |
| 12159 | "\x17\xE2\x58\x2B\x88\x0D\x68\x62" |
| 12160 | "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62" |
| 12161 | "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08" |
| 12162 | "\xEB\x84\x1D\x25\xA7\x38\x94\x06" |
| 12163 | "\x93\x9D\xF8\xFE\x88\x71\xE7\x84" |
| 12164 | "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29" |
| 12165 | "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB" |
| 12166 | "\x8E\x75\x3D\x73\xEB\x6A\xED\x29" |
| 12167 | "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA" |
| 12168 | "\x41\xE2\x10\x4C\x01\x8B\x69\x2B" |
| 12169 | "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B" |
| 12170 | "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6" |
| 12171 | "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06" |
| 12172 | "\x59\x28\x1D\x86\x43\x04\x5D\x3B" |
| 12173 | "\x99\x4C\x04\x5A\x21\x17\x8B\x76" |
| 12174 | "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3" |
| 12175 | "\x65\xA2\x58\x2A\xC5\x66\x24\xBF" |
| 12176 | "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8" |
| 12177 | "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9" |
| 12178 | "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E" |
| 12179 | "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1" |
| 12180 | "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C" |
| 12181 | "\x84\x52\x6D\x68\xDE\xC6\x64\xB2" |
| 12182 | "\x11\x74\x93\x57\xB4\x7E\xC6\x00", |
| 12183 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12184 | .also_non_np = 1, |
| 12185 | .np = 2, |
| 12186 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12187 | }, |
| 12188 | }; |
| 12189 | |
| 12190 | static struct cipher_testvec cast6_dec_tv_template[] = { |
| 12191 | { |
| 12192 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12193 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 12194 | .klen = 16, |
| 12195 | .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 12196 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 12197 | .ilen = 16, |
| 12198 | .result = zeroed_string, |
| 12199 | .rlen = 16, |
| 12200 | }, { |
| 12201 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12202 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12203 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 12204 | .klen = 24, |
| 12205 | .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 12206 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 12207 | .ilen = 16, |
| 12208 | .result = zeroed_string, |
| 12209 | .rlen = 16, |
| 12210 | }, { |
| 12211 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12212 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12213 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 12214 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 12215 | .klen = 32, |
| 12216 | .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 12217 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 12218 | .ilen = 16, |
| 12219 | .result = zeroed_string, |
| 12220 | .rlen = 16, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12221 | }, { /* Generated from TF test vectors */ |
| 12222 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12223 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12224 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12225 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12226 | .klen = 32, |
| 12227 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12228 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12229 | .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54" |
| 12230 | "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6" |
| 12231 | "\xB6\xB9\xC5\xA4\x91\x55\x14\x97" |
| 12232 | "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA" |
| 12233 | "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE" |
| 12234 | "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C" |
| 12235 | "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C" |
| 12236 | "\xD0\x6A\x99\x10\x72\xF8\x47\x62" |
| 12237 | "\x81\x42\xF8\xD8\xF5\xBB\x94\x08" |
| 12238 | "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E" |
| 12239 | "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58" |
| 12240 | "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12" |
| 12241 | "\x5A\x72\x85\x47\x8B\xEC\x9F\x26" |
| 12242 | "\x84\xB6\xED\x10\x33\x63\x9B\x5F" |
| 12243 | "\x4D\x53\xEE\x94\x45\x8B\x60\x58" |
| 12244 | "\x86\x20\xF9\x1E\x82\x08\x3E\x58" |
| 12245 | "\x60\x1B\x34\x19\x02\xBE\x4E\x09" |
| 12246 | "\xBB\x7C\x15\xCC\x60\x27\x55\x7A" |
| 12247 | "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3" |
| 12248 | "\xF1\xDD\xA7\x07\xA3\x12\x85\x28" |
| 12249 | "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A" |
| 12250 | "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43" |
| 12251 | "\x92\xE4\x7C\x26\x69\x4D\x83\x68" |
| 12252 | "\x14\x96\x42\x47\xBD\xA9\xE4\x8A" |
| 12253 | "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E" |
| 12254 | "\x91\x51\xB5\x36\x08\xDE\x1C\x06" |
| 12255 | "\x03\xBD\xDE\x81\x26\xF7\x99\xC2" |
| 12256 | "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF" |
| 12257 | "\xC1\xF5\x27\x05\xB8\x02\x57\x72" |
| 12258 | "\xE6\x42\x13\x0B\xC6\x47\x05\x74" |
| 12259 | "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9" |
| 12260 | "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C" |
| 12261 | "\x98\x82\x67\x67\xB4\xD7\xD3\x43" |
| 12262 | "\x23\x08\x02\xB7\x9B\x99\x05\xFB" |
| 12263 | "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6" |
| 12264 | "\x2E\x49\x58\xD0\xA8\x57\x29\x7F" |
| 12265 | "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67" |
| 12266 | "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D" |
| 12267 | "\x17\xE2\x58\x2B\x88\x0D\x68\x62" |
| 12268 | "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62" |
| 12269 | "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08" |
| 12270 | "\xEB\x84\x1D\x25\xA7\x38\x94\x06" |
| 12271 | "\x93\x9D\xF8\xFE\x88\x71\xE7\x84" |
| 12272 | "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29" |
| 12273 | "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB" |
| 12274 | "\x8E\x75\x3D\x73\xEB\x6A\xED\x29" |
| 12275 | "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA" |
| 12276 | "\x41\xE2\x10\x4C\x01\x8B\x69\x2B" |
| 12277 | "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B" |
| 12278 | "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6" |
| 12279 | "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06" |
| 12280 | "\x59\x28\x1D\x86\x43\x04\x5D\x3B" |
| 12281 | "\x99\x4C\x04\x5A\x21\x17\x8B\x76" |
| 12282 | "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3" |
| 12283 | "\x65\xA2\x58\x2A\xC5\x66\x24\xBF" |
| 12284 | "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8" |
| 12285 | "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9" |
| 12286 | "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E" |
| 12287 | "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1" |
| 12288 | "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C" |
| 12289 | "\x84\x52\x6D\x68\xDE\xC6\x64\xB2" |
| 12290 | "\x11\x74\x93\x57\xB4\x7E\xC6\x00", |
| 12291 | .ilen = 496, |
| 12292 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12293 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12294 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12295 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12296 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12297 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12298 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12299 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12300 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12301 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12302 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12303 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12304 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12305 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12306 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12307 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12308 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12309 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12310 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12311 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12312 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12313 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12314 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12315 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12316 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12317 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12318 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12319 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12320 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12321 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12322 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12323 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12324 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12325 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12326 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12327 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12328 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12329 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12330 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12331 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12332 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12333 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12334 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12335 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12336 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12337 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12338 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12339 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12340 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12341 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12342 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12343 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12344 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12345 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12346 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12347 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12348 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12349 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12350 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12351 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12352 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12353 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12354 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12355 | .also_non_np = 1, |
| 12356 | .np = 2, |
| 12357 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12358 | }, |
| 12359 | }; |
| 12360 | |
| 12361 | static struct cipher_testvec cast6_cbc_enc_tv_template[] = { |
| 12362 | { /* Generated from TF test vectors */ |
| 12363 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12364 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12365 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12366 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12367 | .klen = 32, |
| 12368 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12369 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12370 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12371 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12372 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12373 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12374 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12375 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12376 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12377 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12378 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12379 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12380 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12381 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12382 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12383 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12384 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12385 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12386 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12387 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12388 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12389 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12390 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12391 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12392 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12393 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12394 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12395 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12396 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12397 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12398 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12399 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12400 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12401 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12402 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12403 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12404 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12405 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12406 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12407 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12408 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12409 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12410 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12411 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12412 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12413 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12414 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12415 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12416 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12417 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12418 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12419 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12420 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12421 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12422 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12423 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12424 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12425 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12426 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12427 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12428 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12429 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12430 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12431 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12432 | .ilen = 496, |
| 12433 | .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2" |
| 12434 | "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F" |
| 12435 | "\xA0\x73\xB3\x70\xC3\x68\x64\x70" |
| 12436 | "\xAD\x33\x02\xFB\x88\x74\xAA\x78" |
| 12437 | "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F" |
| 12438 | "\x7E\x6F\xDF\x05\x13\x76\xA6\x72" |
| 12439 | "\xB7\x13\x09\x0F\x7D\x38\xDF\x25" |
| 12440 | "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0" |
| 12441 | "\x57\x95\xE1\x21\x26\x10\x9A\x21" |
| 12442 | "\xA1\x8A\x51\x05\xD1\xB1\x78\x35" |
| 12443 | "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF" |
| 12444 | "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B" |
| 12445 | "\x23\x16\x47\x72\x81\x13\x3A\x72" |
| 12446 | "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8" |
| 12447 | "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E" |
| 12448 | "\xA3\x63\x98\x7D\x35\xE4\xD9\x83" |
| 12449 | "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3" |
| 12450 | "\x41\x1A\x93\x8D\x76\x31\x9F\xF2" |
| 12451 | "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9" |
| 12452 | "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1" |
| 12453 | "\x21\x9C\x1A\xCA\x65\xDE\x44\x03" |
| 12454 | "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37" |
| 12455 | "\x53\x50\x23\xA4\x81\x6E\xDA\xFB" |
| 12456 | "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8" |
| 12457 | "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7" |
| 12458 | "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3" |
| 12459 | "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2" |
| 12460 | "\xC1\x03\xE6\x5A\x37\xD8\x64\x18" |
| 12461 | "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB" |
| 12462 | "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4" |
| 12463 | "\x89\x05\x81\x6E\x71\x4F\xC3\x28" |
| 12464 | "\x10\xC1\x62\xC4\x41\xE9\xD2\x39" |
| 12465 | "\xF3\x22\x39\x12\x2C\xC2\x95\x2D" |
| 12466 | "\xBF\x93\x58\x4B\x04\xD1\x8D\x57" |
| 12467 | "\xAE\xEB\x60\x03\x56\x35\xAD\x5A" |
| 12468 | "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8" |
| 12469 | "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E" |
| 12470 | "\x07\x09\x82\xBA\xF0\x80\x8A\xD0" |
| 12471 | "\xA0\x3F\x6A\xE9\x24\x87\x19\x65" |
| 12472 | "\x73\x3F\x12\x91\x47\x54\xBA\x39" |
| 12473 | "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF" |
| 12474 | "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76" |
| 12475 | "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47" |
| 12476 | "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1" |
| 12477 | "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12" |
| 12478 | "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D" |
| 12479 | "\x23\xFA\x7D\x77\xB8\x46\x75\xFE" |
| 12480 | "\x4F\x10\xD3\x09\x60\xA1\x36\x96" |
| 12481 | "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14" |
| 12482 | "\x80\x21\x83\x58\x3C\x76\xFD\x28" |
| 12483 | "\x1D\xF9\x93\x13\xD7\x0E\x62\x14" |
| 12484 | "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C" |
| 12485 | "\x68\x93\x44\x70\xDF\xCF\x4A\x51" |
| 12486 | "\x0B\x81\x29\x41\xE5\x62\x4D\x36" |
| 12487 | "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09" |
| 12488 | "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6" |
| 12489 | "\x01\x91\xB4\x27\xDA\x59\xD6\x17" |
| 12490 | "\x56\x4D\x82\x62\x37\xA3\x48\x01" |
| 12491 | "\x99\x91\x77\xB2\x08\x6B\x2C\x37" |
| 12492 | "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3" |
| 12493 | "\x4D\x59\x7D\xC5\x28\x69\xFA\x92" |
| 12494 | "\x22\x46\x89\x2D\x0F\x2B\x08\x24", |
| 12495 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12496 | .also_non_np = 1, |
| 12497 | .np = 2, |
| 12498 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12499 | }, |
| 12500 | }; |
| 12501 | |
| 12502 | static struct cipher_testvec cast6_cbc_dec_tv_template[] = { |
| 12503 | { /* Generated from TF test vectors */ |
| 12504 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12505 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12506 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12507 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12508 | .klen = 32, |
| 12509 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12510 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12511 | .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2" |
| 12512 | "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F" |
| 12513 | "\xA0\x73\xB3\x70\xC3\x68\x64\x70" |
| 12514 | "\xAD\x33\x02\xFB\x88\x74\xAA\x78" |
| 12515 | "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F" |
| 12516 | "\x7E\x6F\xDF\x05\x13\x76\xA6\x72" |
| 12517 | "\xB7\x13\x09\x0F\x7D\x38\xDF\x25" |
| 12518 | "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0" |
| 12519 | "\x57\x95\xE1\x21\x26\x10\x9A\x21" |
| 12520 | "\xA1\x8A\x51\x05\xD1\xB1\x78\x35" |
| 12521 | "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF" |
| 12522 | "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B" |
| 12523 | "\x23\x16\x47\x72\x81\x13\x3A\x72" |
| 12524 | "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8" |
| 12525 | "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E" |
| 12526 | "\xA3\x63\x98\x7D\x35\xE4\xD9\x83" |
| 12527 | "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3" |
| 12528 | "\x41\x1A\x93\x8D\x76\x31\x9F\xF2" |
| 12529 | "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9" |
| 12530 | "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1" |
| 12531 | "\x21\x9C\x1A\xCA\x65\xDE\x44\x03" |
| 12532 | "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37" |
| 12533 | "\x53\x50\x23\xA4\x81\x6E\xDA\xFB" |
| 12534 | "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8" |
| 12535 | "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7" |
| 12536 | "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3" |
| 12537 | "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2" |
| 12538 | "\xC1\x03\xE6\x5A\x37\xD8\x64\x18" |
| 12539 | "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB" |
| 12540 | "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4" |
| 12541 | "\x89\x05\x81\x6E\x71\x4F\xC3\x28" |
| 12542 | "\x10\xC1\x62\xC4\x41\xE9\xD2\x39" |
| 12543 | "\xF3\x22\x39\x12\x2C\xC2\x95\x2D" |
| 12544 | "\xBF\x93\x58\x4B\x04\xD1\x8D\x57" |
| 12545 | "\xAE\xEB\x60\x03\x56\x35\xAD\x5A" |
| 12546 | "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8" |
| 12547 | "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E" |
| 12548 | "\x07\x09\x82\xBA\xF0\x80\x8A\xD0" |
| 12549 | "\xA0\x3F\x6A\xE9\x24\x87\x19\x65" |
| 12550 | "\x73\x3F\x12\x91\x47\x54\xBA\x39" |
| 12551 | "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF" |
| 12552 | "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76" |
| 12553 | "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47" |
| 12554 | "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1" |
| 12555 | "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12" |
| 12556 | "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D" |
| 12557 | "\x23\xFA\x7D\x77\xB8\x46\x75\xFE" |
| 12558 | "\x4F\x10\xD3\x09\x60\xA1\x36\x96" |
| 12559 | "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14" |
| 12560 | "\x80\x21\x83\x58\x3C\x76\xFD\x28" |
| 12561 | "\x1D\xF9\x93\x13\xD7\x0E\x62\x14" |
| 12562 | "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C" |
| 12563 | "\x68\x93\x44\x70\xDF\xCF\x4A\x51" |
| 12564 | "\x0B\x81\x29\x41\xE5\x62\x4D\x36" |
| 12565 | "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09" |
| 12566 | "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6" |
| 12567 | "\x01\x91\xB4\x27\xDA\x59\xD6\x17" |
| 12568 | "\x56\x4D\x82\x62\x37\xA3\x48\x01" |
| 12569 | "\x99\x91\x77\xB2\x08\x6B\x2C\x37" |
| 12570 | "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3" |
| 12571 | "\x4D\x59\x7D\xC5\x28\x69\xFA\x92" |
| 12572 | "\x22\x46\x89\x2D\x0F\x2B\x08\x24", |
| 12573 | .ilen = 496, |
| 12574 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12575 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12576 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12577 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12578 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12579 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12580 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12581 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12582 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12583 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12584 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12585 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12586 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12587 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12588 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12589 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12590 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12591 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12592 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12593 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12594 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12595 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12596 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12597 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12598 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12599 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12600 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12601 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12602 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12603 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12604 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12605 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12606 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12607 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12608 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12609 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12610 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12611 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12612 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12613 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12614 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12615 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12616 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12617 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12618 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12619 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12620 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12621 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12622 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12623 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12624 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12625 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12626 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12627 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12628 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12629 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12630 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12631 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12632 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12633 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12634 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12635 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12636 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12637 | .also_non_np = 1, |
| 12638 | .np = 2, |
| 12639 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12640 | }, |
| 12641 | }; |
| 12642 | |
| 12643 | static struct cipher_testvec cast6_ctr_enc_tv_template[] = { |
| 12644 | { /* Generated from TF test vectors */ |
| 12645 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12646 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12647 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12648 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12649 | .klen = 32, |
| 12650 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12651 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12652 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12653 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 12654 | "\x3A", |
| 12655 | .ilen = 17, |
| 12656 | .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 12657 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
| 12658 | "\x57", |
| 12659 | .rlen = 17, |
| 12660 | }, { /* Generated from TF test vectors */ |
| 12661 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12662 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12663 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12664 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12665 | .klen = 32, |
| 12666 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12667 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12668 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12669 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12670 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12671 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12672 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12673 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12674 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12675 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12676 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12677 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12678 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12679 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12680 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12681 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12682 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12683 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12684 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12685 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12686 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12687 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12688 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12689 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12690 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12691 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12692 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12693 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12694 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12695 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12696 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12697 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12698 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12699 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12700 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12701 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12702 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12703 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12704 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12705 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12706 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12707 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12708 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12709 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12710 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12711 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12712 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12713 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12714 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12715 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12716 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12717 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12718 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12719 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12720 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12721 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12722 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12723 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12724 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12725 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12726 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12727 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12728 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12729 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12730 | .ilen = 496, |
| 12731 | .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 12732 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
| 12733 | "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7" |
| 12734 | "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56" |
| 12735 | "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8" |
| 12736 | "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3" |
| 12737 | "\xE3\xF3\xFA\xC2\x23\x55\x98\x20" |
| 12738 | "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5" |
| 12739 | "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30" |
| 12740 | "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D" |
| 12741 | "\x66\x45\xEE\xC8\x19\xBE\x50\xF0" |
| 12742 | "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9" |
| 12743 | "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5" |
| 12744 | "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C" |
| 12745 | "\x81\xDF\x82\x12\xC7\x4C\x1B\x07" |
| 12746 | "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA" |
| 12747 | "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6" |
| 12748 | "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5" |
| 12749 | "\x49\x61\x22\x52\x64\x8C\x46\x41" |
| 12750 | "\x1F\x48\x5F\x4F\xA2\x89\x36\x17" |
| 12751 | "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0" |
| 12752 | "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3" |
| 12753 | "\x00\x14\x15\x59\xC1\x30\x64\xAF" |
| 12754 | "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C" |
| 12755 | "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4" |
| 12756 | "\x02\x37\xC4\x69\xEF\x36\xC1\xF3" |
| 12757 | "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0" |
| 12758 | "\x51\x73\xA3\x22\x42\x41\xAB\xD2" |
| 12759 | "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA" |
| 12760 | "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF" |
| 12761 | "\xC9\x3F\x07\x87\x42\x4B\x3A\x54" |
| 12762 | "\x34\x8E\x37\xA3\x03\x6F\x65\x66" |
| 12763 | "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD" |
| 12764 | "\x61\xB4\x2B\x80\xA3\x98\x13\xF5" |
| 12765 | "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8" |
| 12766 | "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D" |
| 12767 | "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE" |
| 12768 | "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A" |
| 12769 | "\x60\x40\x38\x90\x20\x46\xC7\xB3" |
| 12770 | "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4" |
| 12771 | "\x11\x41\x76\x6B\xB3\x60\x82\x3C" |
| 12772 | "\x84\xFB\x08\x2E\x92\x25\xCB\x79" |
| 12773 | "\x6F\x58\xC5\x94\x00\x00\x47\xB6" |
| 12774 | "\x9E\xDC\x0F\x29\x70\x46\x20\x76" |
| 12775 | "\x65\x75\x66\x5C\x00\x96\xB3\xE1" |
| 12776 | "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45" |
| 12777 | "\x73\xFC\x91\xAB\x79\x41\x23\x14" |
| 12778 | "\x13\xB6\x72\x6C\x46\xB3\x03\x11" |
| 12779 | "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32" |
| 12780 | "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7" |
| 12781 | "\x15\x48\x44\x99\x09\xF6\xE0\xD7" |
| 12782 | "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2" |
| 12783 | "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2" |
| 12784 | "\x12\x53\x35\x9C\xF9\xE7\x35\x5D" |
| 12785 | "\x81\xE4\x86\x42\xC3\x58\xFB\xF0" |
| 12786 | "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F" |
| 12787 | "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4" |
| 12788 | "\x19\x35\x88\x22\x45\x59\x0E\x8F" |
| 12789 | "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41" |
| 12790 | "\x9B\x66\x8D\x32\xBA\x81\x34\x87" |
| 12791 | "\x0E\x74\x33\x30\x62\xB9\x89\xDF" |
| 12792 | "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB", |
| 12793 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12794 | .also_non_np = 1, |
| 12795 | .np = 2, |
| 12796 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12797 | }, |
| 12798 | }; |
| 12799 | |
| 12800 | static struct cipher_testvec cast6_ctr_dec_tv_template[] = { |
| 12801 | { /* Generated from TF test vectors */ |
| 12802 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12803 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12804 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12805 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12806 | .klen = 32, |
| 12807 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12808 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12809 | .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 12810 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 12811 | "\x57", |
| 12812 | .ilen = 17, |
| 12813 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12814 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12815 | "\x3A", |
| 12816 | .rlen = 17, |
| 12817 | }, { /* Generated from TF test vectors */ |
| 12818 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12819 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12820 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12821 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12822 | .klen = 32, |
| 12823 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12824 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12825 | .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 12826 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12827 | "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7" |
| 12828 | "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56" |
| 12829 | "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8" |
| 12830 | "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3" |
| 12831 | "\xE3\xF3\xFA\xC2\x23\x55\x98\x20" |
| 12832 | "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5" |
| 12833 | "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30" |
| 12834 | "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D" |
| 12835 | "\x66\x45\xEE\xC8\x19\xBE\x50\xF0" |
| 12836 | "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9" |
| 12837 | "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5" |
| 12838 | "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C" |
| 12839 | "\x81\xDF\x82\x12\xC7\x4C\x1B\x07" |
| 12840 | "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA" |
| 12841 | "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6" |
| 12842 | "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5" |
| 12843 | "\x49\x61\x22\x52\x64\x8C\x46\x41" |
| 12844 | "\x1F\x48\x5F\x4F\xA2\x89\x36\x17" |
| 12845 | "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0" |
| 12846 | "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3" |
| 12847 | "\x00\x14\x15\x59\xC1\x30\x64\xAF" |
| 12848 | "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C" |
| 12849 | "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4" |
| 12850 | "\x02\x37\xC4\x69\xEF\x36\xC1\xF3" |
| 12851 | "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0" |
| 12852 | "\x51\x73\xA3\x22\x42\x41\xAB\xD2" |
| 12853 | "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA" |
| 12854 | "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF" |
| 12855 | "\xC9\x3F\x07\x87\x42\x4B\x3A\x54" |
| 12856 | "\x34\x8E\x37\xA3\x03\x6F\x65\x66" |
| 12857 | "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD" |
| 12858 | "\x61\xB4\x2B\x80\xA3\x98\x13\xF5" |
| 12859 | "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8" |
| 12860 | "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D" |
| 12861 | "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE" |
| 12862 | "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A" |
| 12863 | "\x60\x40\x38\x90\x20\x46\xC7\xB3" |
| 12864 | "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4" |
| 12865 | "\x11\x41\x76\x6B\xB3\x60\x82\x3C" |
| 12866 | "\x84\xFB\x08\x2E\x92\x25\xCB\x79" |
| 12867 | "\x6F\x58\xC5\x94\x00\x00\x47\xB6" |
| 12868 | "\x9E\xDC\x0F\x29\x70\x46\x20\x76" |
| 12869 | "\x65\x75\x66\x5C\x00\x96\xB3\xE1" |
| 12870 | "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45" |
| 12871 | "\x73\xFC\x91\xAB\x79\x41\x23\x14" |
| 12872 | "\x13\xB6\x72\x6C\x46\xB3\x03\x11" |
| 12873 | "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32" |
| 12874 | "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7" |
| 12875 | "\x15\x48\x44\x99\x09\xF6\xE0\xD7" |
| 12876 | "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2" |
| 12877 | "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2" |
| 12878 | "\x12\x53\x35\x9C\xF9\xE7\x35\x5D" |
| 12879 | "\x81\xE4\x86\x42\xC3\x58\xFB\xF0" |
| 12880 | "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F" |
| 12881 | "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4" |
| 12882 | "\x19\x35\x88\x22\x45\x59\x0E\x8F" |
| 12883 | "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41" |
| 12884 | "\x9B\x66\x8D\x32\xBA\x81\x34\x87" |
| 12885 | "\x0E\x74\x33\x30\x62\xB9\x89\xDF" |
| 12886 | "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB", |
| 12887 | .ilen = 496, |
| 12888 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12889 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12890 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12891 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12892 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12893 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12894 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12895 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12896 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12897 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12898 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12899 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12900 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12901 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12902 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12903 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12904 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12905 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12906 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12907 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12908 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12909 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12910 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12911 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12912 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12913 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12914 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12915 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12916 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12917 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12918 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12919 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12920 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12921 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12922 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12923 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12924 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12925 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12926 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12927 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12928 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12929 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12930 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12931 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12932 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12933 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12934 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12935 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12936 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12937 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12938 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12939 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12940 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12941 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12942 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12943 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12944 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12945 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12946 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12947 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12948 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12949 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12950 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12951 | .also_non_np = 1, |
| 12952 | .np = 2, |
| 12953 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12954 | }, |
| 12955 | }; |
| 12956 | |
| 12957 | static struct cipher_testvec cast6_lrw_enc_tv_template[] = { |
| 12958 | { /* Generated from TF test vectors */ |
| 12959 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 12960 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 12961 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 12962 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 12963 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 12964 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 12965 | .klen = 48, |
| 12966 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12967 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12968 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 12969 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 12970 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 12971 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 12972 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 12973 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 12974 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 12975 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 12976 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 12977 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 12978 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 12979 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 12980 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 12981 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 12982 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 12983 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 12984 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 12985 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 12986 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 12987 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 12988 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 12989 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 12990 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 12991 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 12992 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 12993 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 12994 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 12995 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 12996 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 12997 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 12998 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 12999 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 13000 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 13001 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 13002 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 13003 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 13004 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 13005 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 13006 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 13007 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 13008 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 13009 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 13010 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 13011 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 13012 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 13013 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 13014 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 13015 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 13016 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 13017 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 13018 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 13019 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 13020 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 13021 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 13022 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 13023 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 13024 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 13025 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 13026 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 13027 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 13028 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 13029 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 13030 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 13031 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 13032 | .ilen = 512, |
| 13033 | .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF" |
| 13034 | "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB" |
| 13035 | "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA" |
| 13036 | "\x58\xB6\x73\xF0\xD7\x52\x34\xEF" |
| 13037 | "\xFB\x3E\x96\x81\xB7\x71\x34\xA4" |
| 13038 | "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1" |
| 13039 | "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7" |
| 13040 | "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B" |
| 13041 | "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08" |
| 13042 | "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D" |
| 13043 | "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE" |
| 13044 | "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA" |
| 13045 | "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D" |
| 13046 | "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28" |
| 13047 | "\x80\x1D\xF0\x30\xBA\x62\x77\x7D" |
| 13048 | "\xDB\x15\x69\xDF\xFA\x2A\x81\x64" |
| 13049 | "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30" |
| 13050 | "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7" |
| 13051 | "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B" |
| 13052 | "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61" |
| 13053 | "\x5E\xDB\xFC\x11\x74\x25\x96\x65" |
| 13054 | "\xE8\xE2\x34\x57\x77\x15\x5E\x70" |
| 13055 | "\xFF\x10\x90\xC3\x64\xF0\x11\x0A" |
| 13056 | "\x63\x3A\xD3\x55\x92\x15\x4B\x0C" |
| 13057 | "\xC7\x08\x89\x17\x3B\x99\xAD\x63" |
| 13058 | "\xE7\x06\xDF\x52\xBC\x15\x64\x45" |
| 13059 | "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9" |
| 13060 | "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23" |
| 13061 | "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E" |
| 13062 | "\xBD\xAB\x60\x1A\x51\x17\x54\x27" |
| 13063 | "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19" |
| 13064 | "\x2F\x6F\x20\xA7\x47\xED\x74\x6C" |
| 13065 | "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F" |
| 13066 | "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1" |
| 13067 | "\x07\x16\xDE\x76\xCC\x5E\x94\x02" |
| 13068 | "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F" |
| 13069 | "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7" |
| 13070 | "\x6E\x21\x58\x36\x06\xDE\xB3\xD4" |
| 13071 | "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23" |
| 13072 | "\x51\x21\x2B\x32\x68\xAA\xF8\xA8" |
| 13073 | "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7" |
| 13074 | "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25" |
| 13075 | "\x30\xC7\x10\x3F\x97\x27\x01\x8E" |
| 13076 | "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB" |
| 13077 | "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8" |
| 13078 | "\x22\xE2\xE6\x92\xA7\x5F\x11\x32" |
| 13079 | "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54" |
| 13080 | "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC" |
| 13081 | "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5" |
| 13082 | "\x96\x3D\x69\x91\x20\x4E\xF2\x61" |
| 13083 | "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A" |
| 13084 | "\x78\x39\xB0\xE0\xCF\x12\x56\xD6" |
| 13085 | "\x05\xDC\xF9\x19\x66\x44\x1D\xF9" |
| 13086 | "\x82\x37\xD4\xC2\x60\xB6\x31\xDF" |
| 13087 | "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D" |
| 13088 | "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9" |
| 13089 | "\x9B\x8D\xA7\x00\x86\x25\xB6\x14" |
| 13090 | "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3" |
| 13091 | "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6" |
| 13092 | "\x15\xB7\x94\x7D\x4E\x70\x4C\x75" |
| 13093 | "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A" |
| 13094 | "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5" |
| 13095 | "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7" |
| 13096 | "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46", |
| 13097 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13098 | .also_non_np = 1, |
| 13099 | .np = 2, |
| 13100 | .tap = { 512 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13101 | }, |
| 13102 | }; |
| 13103 | |
| 13104 | static struct cipher_testvec cast6_lrw_dec_tv_template[] = { |
| 13105 | { /* Generated from TF test vectors */ |
| 13106 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 13107 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 13108 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 13109 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 13110 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 13111 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 13112 | .klen = 48, |
| 13113 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13114 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 13115 | .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF" |
| 13116 | "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB" |
| 13117 | "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA" |
| 13118 | "\x58\xB6\x73\xF0\xD7\x52\x34\xEF" |
| 13119 | "\xFB\x3E\x96\x81\xB7\x71\x34\xA4" |
| 13120 | "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1" |
| 13121 | "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7" |
| 13122 | "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B" |
| 13123 | "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08" |
| 13124 | "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D" |
| 13125 | "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE" |
| 13126 | "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA" |
| 13127 | "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D" |
| 13128 | "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28" |
| 13129 | "\x80\x1D\xF0\x30\xBA\x62\x77\x7D" |
| 13130 | "\xDB\x15\x69\xDF\xFA\x2A\x81\x64" |
| 13131 | "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30" |
| 13132 | "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7" |
| 13133 | "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B" |
| 13134 | "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61" |
| 13135 | "\x5E\xDB\xFC\x11\x74\x25\x96\x65" |
| 13136 | "\xE8\xE2\x34\x57\x77\x15\x5E\x70" |
| 13137 | "\xFF\x10\x90\xC3\x64\xF0\x11\x0A" |
| 13138 | "\x63\x3A\xD3\x55\x92\x15\x4B\x0C" |
| 13139 | "\xC7\x08\x89\x17\x3B\x99\xAD\x63" |
| 13140 | "\xE7\x06\xDF\x52\xBC\x15\x64\x45" |
| 13141 | "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9" |
| 13142 | "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23" |
| 13143 | "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E" |
| 13144 | "\xBD\xAB\x60\x1A\x51\x17\x54\x27" |
| 13145 | "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19" |
| 13146 | "\x2F\x6F\x20\xA7\x47\xED\x74\x6C" |
| 13147 | "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F" |
| 13148 | "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1" |
| 13149 | "\x07\x16\xDE\x76\xCC\x5E\x94\x02" |
| 13150 | "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F" |
| 13151 | "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7" |
| 13152 | "\x6E\x21\x58\x36\x06\xDE\xB3\xD4" |
| 13153 | "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23" |
| 13154 | "\x51\x21\x2B\x32\x68\xAA\xF8\xA8" |
| 13155 | "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7" |
| 13156 | "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25" |
| 13157 | "\x30\xC7\x10\x3F\x97\x27\x01\x8E" |
| 13158 | "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB" |
| 13159 | "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8" |
| 13160 | "\x22\xE2\xE6\x92\xA7\x5F\x11\x32" |
| 13161 | "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54" |
| 13162 | "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC" |
| 13163 | "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5" |
| 13164 | "\x96\x3D\x69\x91\x20\x4E\xF2\x61" |
| 13165 | "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A" |
| 13166 | "\x78\x39\xB0\xE0\xCF\x12\x56\xD6" |
| 13167 | "\x05\xDC\xF9\x19\x66\x44\x1D\xF9" |
| 13168 | "\x82\x37\xD4\xC2\x60\xB6\x31\xDF" |
| 13169 | "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D" |
| 13170 | "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9" |
| 13171 | "\x9B\x8D\xA7\x00\x86\x25\xB6\x14" |
| 13172 | "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3" |
| 13173 | "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6" |
| 13174 | "\x15\xB7\x94\x7D\x4E\x70\x4C\x75" |
| 13175 | "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A" |
| 13176 | "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5" |
| 13177 | "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7" |
| 13178 | "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46", |
| 13179 | .ilen = 512, |
| 13180 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 13181 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 13182 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 13183 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 13184 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 13185 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 13186 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 13187 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 13188 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 13189 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 13190 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 13191 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 13192 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 13193 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 13194 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 13195 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 13196 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 13197 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 13198 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 13199 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 13200 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 13201 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 13202 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 13203 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 13204 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 13205 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 13206 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 13207 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 13208 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 13209 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 13210 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 13211 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 13212 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 13213 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 13214 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 13215 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 13216 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 13217 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 13218 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 13219 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 13220 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 13221 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 13222 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 13223 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 13224 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 13225 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 13226 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 13227 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 13228 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 13229 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 13230 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 13231 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 13232 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 13233 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 13234 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 13235 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 13236 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 13237 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 13238 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 13239 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 13240 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 13241 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 13242 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 13243 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 13244 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13245 | .also_non_np = 1, |
| 13246 | .np = 2, |
| 13247 | .tap = { 512 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13248 | }, |
| 13249 | }; |
| 13250 | |
| 13251 | static struct cipher_testvec cast6_xts_enc_tv_template[] = { |
| 13252 | { /* Generated from TF test vectors */ |
| 13253 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13254 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13255 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 13256 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 13257 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13258 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 13259 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 13260 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 13261 | .klen = 64, |
| 13262 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 13263 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13264 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13265 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13266 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13267 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13268 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13269 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13270 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13271 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13272 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13273 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13274 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13275 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13276 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13277 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13278 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13279 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13280 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13281 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13282 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13283 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13284 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13285 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13286 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13287 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13288 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13289 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13290 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13291 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13292 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13293 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13294 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13295 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13296 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13297 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13298 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13299 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13300 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13301 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13302 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13303 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13304 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13305 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13306 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13307 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13308 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13309 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13310 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13311 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13312 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13313 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13314 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13315 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13316 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13317 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13318 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13319 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13320 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13321 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13322 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13323 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13324 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13325 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13326 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13327 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13328 | .ilen = 512, |
| 13329 | .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78" |
| 13330 | "\x88\x5A\x4F\x8D\x82\x76\x52\x6D" |
| 13331 | "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6" |
| 13332 | "\xE2\xC5\x62\x8D\x61\xA1\x01\xED" |
| 13333 | "\xD9\x38\x01\xC1\x43\x63\x4E\x88" |
| 13334 | "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71" |
| 13335 | "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13" |
| 13336 | "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81" |
| 13337 | "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6" |
| 13338 | "\x60\x54\x09\x32\xFE\x6A\x76\x2E" |
| 13339 | "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D" |
| 13340 | "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB" |
| 13341 | "\xB8\x25\x70\xF8\x40\xBC\x90\x1B" |
| 13342 | "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD" |
| 13343 | "\xD3\x3B\xCF\x60\xA1\x78\x94\x57" |
| 13344 | "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98" |
| 13345 | "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA" |
| 13346 | "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67" |
| 13347 | "\x05\xDD\x1D\x58\x6E\x2F\x95\x08" |
| 13348 | "\x3A\xF8\x78\x76\x82\x56\xA7\xEC" |
| 13349 | "\x51\x4B\x85\x77\xC2\x4C\x4A\x34" |
| 13350 | "\x71\x38\x17\x91\x44\xE8\xFC\x65" |
| 13351 | "\x99\x0D\x52\x91\xEE\xF8\xEF\x27" |
| 13352 | "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4" |
| 13353 | "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D" |
| 13354 | "\x59\x22\x9B\x29\x5C\x18\xF0\xC3" |
| 13355 | "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1" |
| 13356 | "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3" |
| 13357 | "\x91\x3B\x49\x73\x18\xAB\xD4\xC9" |
| 13358 | "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A" |
| 13359 | "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E" |
| 13360 | "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24" |
| 13361 | "\xE6\x87\xEA\xFE\x96\x25\x67\x8E" |
| 13362 | "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C" |
| 13363 | "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9" |
| 13364 | "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97" |
| 13365 | "\x49\xF7\x04\xCB\xEF\x84\x98\x33" |
| 13366 | "\xAF\x38\xD3\x04\x1C\x24\x71\x38" |
| 13367 | "\xC7\x71\xDD\x43\x0D\x12\x4A\x18" |
| 13368 | "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95" |
| 13369 | "\x02\x43\x5D\xCE\x19\xCC\xCD\x66" |
| 13370 | "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C" |
| 13371 | "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB" |
| 13372 | "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B" |
| 13373 | "\x30\x45\xA9\xB7\xAF\x80\x64\x6F" |
| 13374 | "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE" |
| 13375 | "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE" |
| 13376 | "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8" |
| 13377 | "\x97\xA3\xE1\x6F\x38\x24\x34\x88" |
| 13378 | "\xCE\xBD\x32\x52\xE0\x00\x6C\x94" |
| 13379 | "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F" |
| 13380 | "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59" |
| 13381 | "\x34\x39\xA8\x35\x12\xB7\xBC\xAC" |
| 13382 | "\xEA\x52\x9C\x78\x02\x6D\x92\x36" |
| 13383 | "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83" |
| 13384 | "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64" |
| 13385 | "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3" |
| 13386 | "\xB0\xEB\x31\xE4\x69\x95\xAB\x35" |
| 13387 | "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82" |
| 13388 | "\xF8\xD9\x47\x82\xA9\x82\x03\x91" |
| 13389 | "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F" |
| 13390 | "\x45\x72\x80\x17\x81\xBD\x9D\x62" |
| 13391 | "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC" |
| 13392 | "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9", |
| 13393 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13394 | .also_non_np = 1, |
| 13395 | .np = 2, |
| 13396 | .tap = { 512 - 16, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13397 | }, |
| 13398 | }; |
| 13399 | |
| 13400 | static struct cipher_testvec cast6_xts_dec_tv_template[] = { |
| 13401 | { /* Generated from TF test vectors */ |
| 13402 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13403 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13404 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 13405 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 13406 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13407 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 13408 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 13409 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 13410 | .klen = 64, |
| 13411 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 13412 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13413 | .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78" |
| 13414 | "\x88\x5A\x4F\x8D\x82\x76\x52\x6D" |
| 13415 | "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6" |
| 13416 | "\xE2\xC5\x62\x8D\x61\xA1\x01\xED" |
| 13417 | "\xD9\x38\x01\xC1\x43\x63\x4E\x88" |
| 13418 | "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71" |
| 13419 | "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13" |
| 13420 | "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81" |
| 13421 | "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6" |
| 13422 | "\x60\x54\x09\x32\xFE\x6A\x76\x2E" |
| 13423 | "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D" |
| 13424 | "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB" |
| 13425 | "\xB8\x25\x70\xF8\x40\xBC\x90\x1B" |
| 13426 | "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD" |
| 13427 | "\xD3\x3B\xCF\x60\xA1\x78\x94\x57" |
| 13428 | "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98" |
| 13429 | "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA" |
| 13430 | "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67" |
| 13431 | "\x05\xDD\x1D\x58\x6E\x2F\x95\x08" |
| 13432 | "\x3A\xF8\x78\x76\x82\x56\xA7\xEC" |
| 13433 | "\x51\x4B\x85\x77\xC2\x4C\x4A\x34" |
| 13434 | "\x71\x38\x17\x91\x44\xE8\xFC\x65" |
| 13435 | "\x99\x0D\x52\x91\xEE\xF8\xEF\x27" |
| 13436 | "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4" |
| 13437 | "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D" |
| 13438 | "\x59\x22\x9B\x29\x5C\x18\xF0\xC3" |
| 13439 | "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1" |
| 13440 | "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3" |
| 13441 | "\x91\x3B\x49\x73\x18\xAB\xD4\xC9" |
| 13442 | "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A" |
| 13443 | "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E" |
| 13444 | "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24" |
| 13445 | "\xE6\x87\xEA\xFE\x96\x25\x67\x8E" |
| 13446 | "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C" |
| 13447 | "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9" |
| 13448 | "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97" |
| 13449 | "\x49\xF7\x04\xCB\xEF\x84\x98\x33" |
| 13450 | "\xAF\x38\xD3\x04\x1C\x24\x71\x38" |
| 13451 | "\xC7\x71\xDD\x43\x0D\x12\x4A\x18" |
| 13452 | "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95" |
| 13453 | "\x02\x43\x5D\xCE\x19\xCC\xCD\x66" |
| 13454 | "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C" |
| 13455 | "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB" |
| 13456 | "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B" |
| 13457 | "\x30\x45\xA9\xB7\xAF\x80\x64\x6F" |
| 13458 | "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE" |
| 13459 | "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE" |
| 13460 | "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8" |
| 13461 | "\x97\xA3\xE1\x6F\x38\x24\x34\x88" |
| 13462 | "\xCE\xBD\x32\x52\xE0\x00\x6C\x94" |
| 13463 | "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F" |
| 13464 | "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59" |
| 13465 | "\x34\x39\xA8\x35\x12\xB7\xBC\xAC" |
| 13466 | "\xEA\x52\x9C\x78\x02\x6D\x92\x36" |
| 13467 | "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83" |
| 13468 | "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64" |
| 13469 | "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3" |
| 13470 | "\xB0\xEB\x31\xE4\x69\x95\xAB\x35" |
| 13471 | "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82" |
| 13472 | "\xF8\xD9\x47\x82\xA9\x82\x03\x91" |
| 13473 | "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F" |
| 13474 | "\x45\x72\x80\x17\x81\xBD\x9D\x62" |
| 13475 | "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC" |
| 13476 | "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9", |
| 13477 | .ilen = 512, |
| 13478 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13479 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13480 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13481 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13482 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13483 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13484 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13485 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13486 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13487 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13488 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13489 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13490 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13491 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13492 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13493 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13494 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13495 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13496 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13497 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13498 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13499 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13500 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13501 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13502 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13503 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13504 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13505 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13506 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13507 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13508 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13509 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13510 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13511 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13512 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13513 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13514 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13515 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13516 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13517 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13518 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13519 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13520 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13521 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13522 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13523 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13524 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13525 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13526 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13527 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13528 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13529 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13530 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13531 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13532 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13533 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13534 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13535 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13536 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13537 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13538 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13539 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13540 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13541 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13542 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13543 | .also_non_np = 1, |
| 13544 | .np = 2, |
| 13545 | .tap = { 512 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13546 | }, |
| 13547 | }; |
| 13548 | |
| 13549 | |
| 13550 | /* |
| 13551 | * AES test vectors. |
| 13552 | */ |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 13553 | #define AES_ENC_TEST_VECTORS 4 |
| 13554 | #define AES_DEC_TEST_VECTORS 4 |
| 13555 | #define AES_CBC_ENC_TEST_VECTORS 5 |
| 13556 | #define AES_CBC_DEC_TEST_VECTORS 5 |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 13557 | #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2 |
| 13558 | #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2 |
| 13559 | #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2 |
| 13560 | #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2 |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 13561 | #define HMAC_SHA1_AES_CBC_ENC_TEST_VECTORS 7 |
| 13562 | #define HMAC_SHA256_AES_CBC_ENC_TEST_VECTORS 7 |
| 13563 | #define HMAC_SHA512_AES_CBC_ENC_TEST_VECTORS 7 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13564 | #define AES_LRW_ENC_TEST_VECTORS 8 |
| 13565 | #define AES_LRW_DEC_TEST_VECTORS 8 |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 13566 | #define AES_XTS_ENC_TEST_VECTORS 5 |
| 13567 | #define AES_XTS_DEC_TEST_VECTORS 5 |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 13568 | #define AES_CTR_ENC_TEST_VECTORS 5 |
| 13569 | #define AES_CTR_DEC_TEST_VECTORS 5 |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 13570 | #define AES_OFB_ENC_TEST_VECTORS 1 |
| 13571 | #define AES_OFB_DEC_TEST_VECTORS 1 |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 13572 | #define AES_CTR_3686_ENC_TEST_VECTORS 7 |
| 13573 | #define AES_CTR_3686_DEC_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13574 | #define AES_GCM_ENC_TEST_VECTORS 9 |
| 13575 | #define AES_GCM_DEC_TEST_VECTORS 8 |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 13576 | #define AES_GCM_4106_ENC_TEST_VECTORS 7 |
| 13577 | #define AES_GCM_4106_DEC_TEST_VECTORS 7 |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 13578 | #define AES_GCM_4543_ENC_TEST_VECTORS 1 |
| 13579 | #define AES_GCM_4543_DEC_TEST_VECTORS 2 |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 13580 | #define AES_CCM_ENC_TEST_VECTORS 8 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13581 | #define AES_CCM_DEC_TEST_VECTORS 7 |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 13582 | #define AES_CCM_4309_ENC_TEST_VECTORS 7 |
| 13583 | #define AES_CCM_4309_DEC_TEST_VECTORS 10 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13584 | |
| 13585 | static struct cipher_testvec aes_enc_tv_template[] = { |
| 13586 | { /* From FIPS-197 */ |
| 13587 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13588 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 13589 | .klen = 16, |
| 13590 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13591 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13592 | .ilen = 16, |
| 13593 | .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 13594 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 13595 | .rlen = 16, |
| 13596 | }, { |
| 13597 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13598 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13599 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 13600 | .klen = 24, |
| 13601 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13602 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13603 | .ilen = 16, |
| 13604 | .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 13605 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 13606 | .rlen = 16, |
| 13607 | }, { |
| 13608 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13609 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13610 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13611 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 13612 | .klen = 32, |
| 13613 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13614 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13615 | .ilen = 16, |
| 13616 | .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 13617 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 13618 | .rlen = 16, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 13619 | }, { /* Generated with Crypto++ */ |
| 13620 | .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32" |
| 13621 | "\x55\x0F\x32\x55\x78\x9B\xBE\x78" |
| 13622 | "\x9B\xBE\xE1\x04\x27\xE1\x04\x27" |
| 13623 | "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6", |
| 13624 | .klen = 32, |
| 13625 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 13626 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 13627 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 13628 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 13629 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 13630 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 13631 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 13632 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 13633 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 13634 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 13635 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 13636 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 13637 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 13638 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 13639 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 13640 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 13641 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 13642 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 13643 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 13644 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 13645 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 13646 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 13647 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 13648 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 13649 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 13650 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 13651 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 13652 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 13653 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 13654 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 13655 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 13656 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 13657 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 13658 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 13659 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 13660 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 13661 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 13662 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 13663 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 13664 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 13665 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 13666 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 13667 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 13668 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 13669 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 13670 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 13671 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 13672 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 13673 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 13674 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 13675 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 13676 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 13677 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 13678 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 13679 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 13680 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 13681 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 13682 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 13683 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 13684 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 13685 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 13686 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 13687 | .ilen = 496, |
| 13688 | .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D" |
| 13689 | "\x61\x1E\xBB\x63\x42\x79\xDB\x64" |
| 13690 | "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B" |
| 13691 | "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F" |
| 13692 | "\x5E\x06\xF0\x5F\x31\x51\x18\x37" |
| 13693 | "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1" |
| 13694 | "\xDD\x8D\x22\x65\x2B\x00\x50\xCE" |
| 13695 | "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA" |
| 13696 | "\x78\x69\x7F\xAE\x8F\x8B\x69\x37" |
| 13697 | "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09" |
| 13698 | "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8" |
| 13699 | "\x81\x82\x27\xFA\x45\x9C\x29\xA4" |
| 13700 | "\x22\x8B\x78\x69\x5B\x46\xF9\x39" |
| 13701 | "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C" |
| 13702 | "\x41\x72\x51\x97\x1D\x07\x49\xA0" |
| 13703 | "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03" |
| 13704 | "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64" |
| 13705 | "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA" |
| 13706 | "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F" |
| 13707 | "\xE1\x8B\x22\x17\x59\x0C\x47\x89" |
| 13708 | "\x33\xA1\xD6\x47\x03\x19\x4F\xA8" |
| 13709 | "\x67\x69\xF0\x5B\xF0\x20\xAD\x06" |
| 13710 | "\x27\x81\x92\xD8\xC5\xBA\x98\x12" |
| 13711 | "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD" |
| 13712 | "\x12\x2F\x07\x32\xEE\x39\xAF\x64" |
| 13713 | "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E" |
| 13714 | "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68" |
| 13715 | "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC" |
| 13716 | "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F" |
| 13717 | "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C" |
| 13718 | "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B" |
| 13719 | "\x25\xFB\x26\x81\xE0\x2F\xF0\x96" |
| 13720 | "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64" |
| 13721 | "\x63\x29\x4C\x8E\x18\x13\xC5\xBF" |
| 13722 | "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29" |
| 13723 | "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1" |
| 13724 | "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1" |
| 13725 | "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA" |
| 13726 | "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50" |
| 13727 | "\x31\xCB\x69\x3F\x96\x15\xD6\xF5" |
| 13728 | "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10" |
| 13729 | "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A" |
| 13730 | "\xDC\x6A\x80\x34\x73\x97\x1B\xC5" |
| 13731 | "\xCA\x26\x16\x77\x0E\x60\xAB\x89" |
| 13732 | "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4" |
| 13733 | "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70" |
| 13734 | "\x42\x71\x51\x78\x70\xB3\xE0\x3D" |
| 13735 | "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92" |
| 13736 | "\x11\x08\x42\x4F\xE5\xAD\x26\x92" |
| 13737 | "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47" |
| 13738 | "\x22\xC1\x95\xC1\x63\x7F\xCB\x03" |
| 13739 | "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA" |
| 13740 | "\x35\xA2\xFD\x45\x52\x39\x13\x6F" |
| 13741 | "\xC1\x53\xF3\x53\xDF\x33\x84\xD7" |
| 13742 | "\xD2\xC8\x37\xB0\x75\xE3\x41\x46" |
| 13743 | "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5" |
| 13744 | "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD" |
| 13745 | "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F" |
| 13746 | "\x40\x86\x7F\x51\xE1\x11\x9C\xCB" |
| 13747 | "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF" |
| 13748 | "\x09\x79\xA0\x43\x5C\x0D\x08\x58" |
| 13749 | "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9", |
| 13750 | .rlen = 496, |
| 13751 | .also_non_np = 1, |
| 13752 | .np = 2, |
| 13753 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13754 | }, |
| 13755 | }; |
| 13756 | |
| 13757 | static struct cipher_testvec aes_dec_tv_template[] = { |
| 13758 | { /* From FIPS-197 */ |
| 13759 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13760 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 13761 | .klen = 16, |
| 13762 | .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 13763 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 13764 | .ilen = 16, |
| 13765 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13766 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13767 | .rlen = 16, |
| 13768 | }, { |
| 13769 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13770 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13771 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 13772 | .klen = 24, |
| 13773 | .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 13774 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 13775 | .ilen = 16, |
| 13776 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13777 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13778 | .rlen = 16, |
| 13779 | }, { |
| 13780 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13781 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13782 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13783 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 13784 | .klen = 32, |
| 13785 | .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 13786 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 13787 | .ilen = 16, |
| 13788 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13789 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13790 | .rlen = 16, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 13791 | }, { /* Generated with Crypto++ */ |
| 13792 | .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32" |
| 13793 | "\x55\x0F\x32\x55\x78\x9B\xBE\x78" |
| 13794 | "\x9B\xBE\xE1\x04\x27\xE1\x04\x27" |
| 13795 | "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6", |
| 13796 | .klen = 32, |
| 13797 | .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D" |
| 13798 | "\x61\x1E\xBB\x63\x42\x79\xDB\x64" |
| 13799 | "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B" |
| 13800 | "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F" |
| 13801 | "\x5E\x06\xF0\x5F\x31\x51\x18\x37" |
| 13802 | "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1" |
| 13803 | "\xDD\x8D\x22\x65\x2B\x00\x50\xCE" |
| 13804 | "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA" |
| 13805 | "\x78\x69\x7F\xAE\x8F\x8B\x69\x37" |
| 13806 | "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09" |
| 13807 | "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8" |
| 13808 | "\x81\x82\x27\xFA\x45\x9C\x29\xA4" |
| 13809 | "\x22\x8B\x78\x69\x5B\x46\xF9\x39" |
| 13810 | "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C" |
| 13811 | "\x41\x72\x51\x97\x1D\x07\x49\xA0" |
| 13812 | "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03" |
| 13813 | "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64" |
| 13814 | "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA" |
| 13815 | "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F" |
| 13816 | "\xE1\x8B\x22\x17\x59\x0C\x47\x89" |
| 13817 | "\x33\xA1\xD6\x47\x03\x19\x4F\xA8" |
| 13818 | "\x67\x69\xF0\x5B\xF0\x20\xAD\x06" |
| 13819 | "\x27\x81\x92\xD8\xC5\xBA\x98\x12" |
| 13820 | "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD" |
| 13821 | "\x12\x2F\x07\x32\xEE\x39\xAF\x64" |
| 13822 | "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E" |
| 13823 | "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68" |
| 13824 | "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC" |
| 13825 | "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F" |
| 13826 | "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C" |
| 13827 | "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B" |
| 13828 | "\x25\xFB\x26\x81\xE0\x2F\xF0\x96" |
| 13829 | "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64" |
| 13830 | "\x63\x29\x4C\x8E\x18\x13\xC5\xBF" |
| 13831 | "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29" |
| 13832 | "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1" |
| 13833 | "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1" |
| 13834 | "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA" |
| 13835 | "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50" |
| 13836 | "\x31\xCB\x69\x3F\x96\x15\xD6\xF5" |
| 13837 | "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10" |
| 13838 | "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A" |
| 13839 | "\xDC\x6A\x80\x34\x73\x97\x1B\xC5" |
| 13840 | "\xCA\x26\x16\x77\x0E\x60\xAB\x89" |
| 13841 | "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4" |
| 13842 | "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70" |
| 13843 | "\x42\x71\x51\x78\x70\xB3\xE0\x3D" |
| 13844 | "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92" |
| 13845 | "\x11\x08\x42\x4F\xE5\xAD\x26\x92" |
| 13846 | "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47" |
| 13847 | "\x22\xC1\x95\xC1\x63\x7F\xCB\x03" |
| 13848 | "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA" |
| 13849 | "\x35\xA2\xFD\x45\x52\x39\x13\x6F" |
| 13850 | "\xC1\x53\xF3\x53\xDF\x33\x84\xD7" |
| 13851 | "\xD2\xC8\x37\xB0\x75\xE3\x41\x46" |
| 13852 | "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5" |
| 13853 | "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD" |
| 13854 | "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F" |
| 13855 | "\x40\x86\x7F\x51\xE1\x11\x9C\xCB" |
| 13856 | "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF" |
| 13857 | "\x09\x79\xA0\x43\x5C\x0D\x08\x58" |
| 13858 | "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9", |
| 13859 | .ilen = 496, |
| 13860 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 13861 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 13862 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 13863 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 13864 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 13865 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 13866 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 13867 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 13868 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 13869 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 13870 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 13871 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 13872 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 13873 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 13874 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 13875 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 13876 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 13877 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 13878 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 13879 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 13880 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 13881 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 13882 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 13883 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 13884 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 13885 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 13886 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 13887 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 13888 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 13889 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 13890 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 13891 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 13892 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 13893 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 13894 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 13895 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 13896 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 13897 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 13898 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 13899 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 13900 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 13901 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 13902 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 13903 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 13904 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 13905 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 13906 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 13907 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 13908 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 13909 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 13910 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 13911 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 13912 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 13913 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 13914 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 13915 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 13916 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 13917 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 13918 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 13919 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 13920 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 13921 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 13922 | .rlen = 496, |
| 13923 | .also_non_np = 1, |
| 13924 | .np = 2, |
| 13925 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13926 | }, |
| 13927 | }; |
| 13928 | |
| 13929 | static struct cipher_testvec aes_cbc_enc_tv_template[] = { |
| 13930 | { /* From RFC 3602 */ |
| 13931 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 13932 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 13933 | .klen = 16, |
| 13934 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 13935 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 13936 | .input = "Single block msg", |
| 13937 | .ilen = 16, |
| 13938 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 13939 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 13940 | .rlen = 16, |
| 13941 | }, { |
| 13942 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 13943 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 13944 | .klen = 16, |
| 13945 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 13946 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 13947 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13948 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13949 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13950 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 13951 | .ilen = 32, |
| 13952 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 13953 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 13954 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 13955 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 13956 | .rlen = 32, |
| 13957 | }, { /* From NIST SP800-38A */ |
| 13958 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 13959 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 13960 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 13961 | .klen = 24, |
| 13962 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13963 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 13964 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 13965 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 13966 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 13967 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 13968 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 13969 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 13970 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 13971 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 13972 | .ilen = 64, |
| 13973 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 13974 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 13975 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 13976 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 13977 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 13978 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 13979 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 13980 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 13981 | .rlen = 64, |
| 13982 | }, { |
| 13983 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 13984 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 13985 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 13986 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 13987 | .klen = 32, |
| 13988 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13989 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 13990 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 13991 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 13992 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 13993 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 13994 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 13995 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 13996 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 13997 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 13998 | .ilen = 64, |
| 13999 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 14000 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 14001 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 14002 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 14003 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 14004 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 14005 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 14006 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 14007 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14008 | }, { /* Generated with Crypto++ */ |
| 14009 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 14010 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 14011 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 14012 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 14013 | .klen = 32, |
| 14014 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 14015 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 14016 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 14017 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 14018 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 14019 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 14020 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 14021 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 14022 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 14023 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 14024 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 14025 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 14026 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 14027 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 14028 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 14029 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 14030 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 14031 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 14032 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 14033 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 14034 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 14035 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 14036 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 14037 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 14038 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 14039 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 14040 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 14041 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 14042 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 14043 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 14044 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 14045 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 14046 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 14047 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 14048 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 14049 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 14050 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 14051 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 14052 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 14053 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 14054 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 14055 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 14056 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 14057 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 14058 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 14059 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 14060 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 14061 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 14062 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 14063 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 14064 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 14065 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 14066 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 14067 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 14068 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 14069 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 14070 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 14071 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 14072 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 14073 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 14074 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 14075 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 14076 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 14077 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 14078 | .ilen = 496, |
| 14079 | .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F" |
| 14080 | "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF" |
| 14081 | "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F" |
| 14082 | "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8" |
| 14083 | "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0" |
| 14084 | "\x11\x15\xFF\x6D\x1E\x82\x04\xA6" |
| 14085 | "\xB1\x74\xD1\x08\x13\xFD\x90\x7C" |
| 14086 | "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F" |
| 14087 | "\x0A\x70\xF1\x88\x07\xCF\x21\x26" |
| 14088 | "\x40\x40\x8A\xF5\x53\xF7\x24\x4F" |
| 14089 | "\x83\x38\x43\x5F\x08\x99\xEB\xE3" |
| 14090 | "\xDC\x02\x64\x67\x50\x6E\x15\xC3" |
| 14091 | "\x01\x1A\xA0\x81\x13\x65\xA6\x73" |
| 14092 | "\x71\xA6\x3B\x91\x83\x77\xBE\xFA" |
| 14093 | "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3" |
| 14094 | "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F" |
| 14095 | "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F" |
| 14096 | "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43" |
| 14097 | "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40" |
| 14098 | "\x03\xA8\x6C\x50\x42\x9F\x77\x59" |
| 14099 | "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99" |
| 14100 | "\x16\x24\x02\x07\x48\xAE\xF2\x31" |
| 14101 | "\x34\x0E\xC3\x85\xFE\x1C\x95\x99" |
| 14102 | "\x87\x58\x98\x8B\xE7\xC6\xC5\x70" |
| 14103 | "\x73\x81\x07\x7C\x56\x2F\xD8\x1B" |
| 14104 | "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F" |
| 14105 | "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98" |
| 14106 | "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04" |
| 14107 | "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5" |
| 14108 | "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD" |
| 14109 | "\xF1\xE3\x3D\x98\x50\x02\x77\x9E" |
| 14110 | "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66" |
| 14111 | "\x20\x02\x23\xDA\xDF\xA0\x89\xF6" |
| 14112 | "\xD8\xF3\x45\x24\x53\x6F\x16\x77" |
| 14113 | "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78" |
| 14114 | "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3" |
| 14115 | "\x57\xBC\x0B\x9F\x43\x51\x28\x4F" |
| 14116 | "\x07\x50\x6C\x68\x12\x07\xCF\xFA" |
| 14117 | "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C" |
| 14118 | "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD" |
| 14119 | "\x22\x39\x7B\x16\x03\x01\x69\xAF" |
| 14120 | "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5" |
| 14121 | "\x03\xB4\x2F\x51\x8A\x56\x17\x2B" |
| 14122 | "\x88\x42\x6D\x40\x68\x8F\xD0\x11" |
| 14123 | "\x19\xF9\x1F\x43\x79\x95\x31\xFA" |
| 14124 | "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC" |
| 14125 | "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC" |
| 14126 | "\x8D\x53\x6E\x72\x68\xA3\xC7\x63" |
| 14127 | "\x43\x2B\x78\xE0\x04\x29\x8F\x72" |
| 14128 | "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD" |
| 14129 | "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D" |
| 14130 | "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44" |
| 14131 | "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61" |
| 14132 | "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC" |
| 14133 | "\x58\x08\x15\xAB\x12\xAB\x17\x4A" |
| 14134 | "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB" |
| 14135 | "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F" |
| 14136 | "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61" |
| 14137 | "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD" |
| 14138 | "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A" |
| 14139 | "\xE0\x1F\x91\xF8\x82\x96\x2D\x65" |
| 14140 | "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02", |
| 14141 | .rlen = 496, |
| 14142 | .also_non_np = 1, |
| 14143 | .np = 2, |
| 14144 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14145 | }, |
| 14146 | }; |
| 14147 | |
| 14148 | static struct cipher_testvec aes_cbc_dec_tv_template[] = { |
| 14149 | { /* From RFC 3602 */ |
| 14150 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 14151 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 14152 | .klen = 16, |
| 14153 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 14154 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 14155 | .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 14156 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 14157 | .ilen = 16, |
| 14158 | .result = "Single block msg", |
| 14159 | .rlen = 16, |
| 14160 | }, { |
| 14161 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 14162 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 14163 | .klen = 16, |
| 14164 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 14165 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 14166 | .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 14167 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 14168 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 14169 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 14170 | .ilen = 32, |
| 14171 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14172 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14173 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14174 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14175 | .rlen = 32, |
| 14176 | }, { /* From NIST SP800-38A */ |
| 14177 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 14178 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 14179 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 14180 | .klen = 24, |
| 14181 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14182 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14183 | .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 14184 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 14185 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 14186 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 14187 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 14188 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 14189 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 14190 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 14191 | .ilen = 64, |
| 14192 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14193 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14194 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14195 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14196 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14197 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14198 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14199 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14200 | .rlen = 64, |
| 14201 | }, { |
| 14202 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 14203 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 14204 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 14205 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 14206 | .klen = 32, |
| 14207 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14208 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14209 | .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 14210 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 14211 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 14212 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 14213 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 14214 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 14215 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 14216 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 14217 | .ilen = 64, |
| 14218 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14219 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14220 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14221 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14222 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14223 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14224 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14225 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14226 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14227 | }, { /* Generated with Crypto++ */ |
| 14228 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 14229 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 14230 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 14231 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 14232 | .klen = 32, |
| 14233 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 14234 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 14235 | .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F" |
| 14236 | "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF" |
| 14237 | "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F" |
| 14238 | "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8" |
| 14239 | "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0" |
| 14240 | "\x11\x15\xFF\x6D\x1E\x82\x04\xA6" |
| 14241 | "\xB1\x74\xD1\x08\x13\xFD\x90\x7C" |
| 14242 | "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F" |
| 14243 | "\x0A\x70\xF1\x88\x07\xCF\x21\x26" |
| 14244 | "\x40\x40\x8A\xF5\x53\xF7\x24\x4F" |
| 14245 | "\x83\x38\x43\x5F\x08\x99\xEB\xE3" |
| 14246 | "\xDC\x02\x64\x67\x50\x6E\x15\xC3" |
| 14247 | "\x01\x1A\xA0\x81\x13\x65\xA6\x73" |
| 14248 | "\x71\xA6\x3B\x91\x83\x77\xBE\xFA" |
| 14249 | "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3" |
| 14250 | "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F" |
| 14251 | "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F" |
| 14252 | "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43" |
| 14253 | "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40" |
| 14254 | "\x03\xA8\x6C\x50\x42\x9F\x77\x59" |
| 14255 | "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99" |
| 14256 | "\x16\x24\x02\x07\x48\xAE\xF2\x31" |
| 14257 | "\x34\x0E\xC3\x85\xFE\x1C\x95\x99" |
| 14258 | "\x87\x58\x98\x8B\xE7\xC6\xC5\x70" |
| 14259 | "\x73\x81\x07\x7C\x56\x2F\xD8\x1B" |
| 14260 | "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F" |
| 14261 | "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98" |
| 14262 | "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04" |
| 14263 | "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5" |
| 14264 | "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD" |
| 14265 | "\xF1\xE3\x3D\x98\x50\x02\x77\x9E" |
| 14266 | "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66" |
| 14267 | "\x20\x02\x23\xDA\xDF\xA0\x89\xF6" |
| 14268 | "\xD8\xF3\x45\x24\x53\x6F\x16\x77" |
| 14269 | "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78" |
| 14270 | "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3" |
| 14271 | "\x57\xBC\x0B\x9F\x43\x51\x28\x4F" |
| 14272 | "\x07\x50\x6C\x68\x12\x07\xCF\xFA" |
| 14273 | "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C" |
| 14274 | "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD" |
| 14275 | "\x22\x39\x7B\x16\x03\x01\x69\xAF" |
| 14276 | "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5" |
| 14277 | "\x03\xB4\x2F\x51\x8A\x56\x17\x2B" |
| 14278 | "\x88\x42\x6D\x40\x68\x8F\xD0\x11" |
| 14279 | "\x19\xF9\x1F\x43\x79\x95\x31\xFA" |
| 14280 | "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC" |
| 14281 | "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC" |
| 14282 | "\x8D\x53\x6E\x72\x68\xA3\xC7\x63" |
| 14283 | "\x43\x2B\x78\xE0\x04\x29\x8F\x72" |
| 14284 | "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD" |
| 14285 | "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D" |
| 14286 | "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44" |
| 14287 | "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61" |
| 14288 | "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC" |
| 14289 | "\x58\x08\x15\xAB\x12\xAB\x17\x4A" |
| 14290 | "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB" |
| 14291 | "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F" |
| 14292 | "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61" |
| 14293 | "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD" |
| 14294 | "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A" |
| 14295 | "\xE0\x1F\x91\xF8\x82\x96\x2D\x65" |
| 14296 | "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02", |
| 14297 | .ilen = 496, |
| 14298 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 14299 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 14300 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 14301 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 14302 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 14303 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 14304 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 14305 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 14306 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 14307 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 14308 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 14309 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 14310 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 14311 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 14312 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 14313 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 14314 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 14315 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 14316 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 14317 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 14318 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 14319 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 14320 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 14321 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 14322 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 14323 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 14324 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 14325 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 14326 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 14327 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 14328 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 14329 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 14330 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 14331 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 14332 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 14333 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 14334 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 14335 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 14336 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 14337 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 14338 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 14339 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 14340 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 14341 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 14342 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 14343 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 14344 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 14345 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 14346 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 14347 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 14348 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 14349 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 14350 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 14351 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 14352 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 14353 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 14354 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 14355 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 14356 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 14357 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 14358 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 14359 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 14360 | .rlen = 496, |
| 14361 | .also_non_np = 1, |
| 14362 | .np = 2, |
| 14363 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14364 | }, |
| 14365 | }; |
| 14366 | |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 14367 | static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = { |
| 14368 | { /* Input data from RFC 2410 Case 1 */ |
| 14369 | #ifdef __LITTLE_ENDIAN |
| 14370 | .key = "\x08\x00" /* rta length */ |
| 14371 | "\x01\x00" /* rta type */ |
| 14372 | #else |
| 14373 | .key = "\x00\x08" /* rta length */ |
| 14374 | "\x00\x01" /* rta type */ |
| 14375 | #endif |
| 14376 | "\x00\x00\x00\x00" /* enc key length */ |
| 14377 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14378 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14379 | .klen = 8 + 16 + 0, |
| 14380 | .iv = "", |
| 14381 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 14382 | .ilen = 8, |
| 14383 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 14384 | "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a" |
| 14385 | "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae", |
| 14386 | .rlen = 8 + 16, |
| 14387 | }, { /* Input data from RFC 2410 Case 2 */ |
| 14388 | #ifdef __LITTLE_ENDIAN |
| 14389 | .key = "\x08\x00" /* rta length */ |
| 14390 | "\x01\x00" /* rta type */ |
| 14391 | #else |
| 14392 | .key = "\x00\x08" /* rta length */ |
| 14393 | "\x00\x01" /* rta type */ |
| 14394 | #endif |
| 14395 | "\x00\x00\x00\x00" /* enc key length */ |
| 14396 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14397 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14398 | .klen = 8 + 16 + 0, |
| 14399 | .iv = "", |
| 14400 | .input = "Network Security People Have A Strange Sense Of Humor", |
| 14401 | .ilen = 53, |
| 14402 | .result = "Network Security People Have A Strange Sense Of Humor" |
| 14403 | "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a" |
| 14404 | "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23", |
| 14405 | .rlen = 53 + 16, |
| 14406 | }, |
| 14407 | }; |
| 14408 | |
| 14409 | static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = { |
| 14410 | { |
| 14411 | #ifdef __LITTLE_ENDIAN |
| 14412 | .key = "\x08\x00" /* rta length */ |
| 14413 | "\x01\x00" /* rta type */ |
| 14414 | #else |
| 14415 | .key = "\x00\x08" /* rta length */ |
| 14416 | "\x00\x01" /* rta type */ |
| 14417 | #endif |
| 14418 | "\x00\x00\x00\x00" /* enc key length */ |
| 14419 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14420 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14421 | .klen = 8 + 16 + 0, |
| 14422 | .iv = "", |
| 14423 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 14424 | "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a" |
| 14425 | "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae", |
| 14426 | .ilen = 8 + 16, |
| 14427 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 14428 | .rlen = 8, |
| 14429 | }, { |
| 14430 | #ifdef __LITTLE_ENDIAN |
| 14431 | .key = "\x08\x00" /* rta length */ |
| 14432 | "\x01\x00" /* rta type */ |
| 14433 | #else |
| 14434 | .key = "\x00\x08" /* rta length */ |
| 14435 | "\x00\x01" /* rta type */ |
| 14436 | #endif |
| 14437 | "\x00\x00\x00\x00" /* enc key length */ |
| 14438 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14439 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14440 | .klen = 8 + 16 + 0, |
| 14441 | .iv = "", |
| 14442 | .input = "Network Security People Have A Strange Sense Of Humor" |
| 14443 | "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a" |
| 14444 | "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23", |
| 14445 | .ilen = 53 + 16, |
| 14446 | .result = "Network Security People Have A Strange Sense Of Humor", |
| 14447 | .rlen = 53, |
| 14448 | }, |
| 14449 | }; |
| 14450 | |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 14451 | static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_template[] = { |
| 14452 | { /* RFC 3602 Case 1 */ |
| 14453 | #ifdef __LITTLE_ENDIAN |
| 14454 | .key = "\x08\x00" /* rta length */ |
| 14455 | "\x01\x00" /* rta type */ |
| 14456 | #else |
| 14457 | .key = "\x00\x08" /* rta length */ |
| 14458 | "\x00\x01" /* rta type */ |
| 14459 | #endif |
| 14460 | "\x00\x00\x00\x10" /* enc key length */ |
| 14461 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14462 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14463 | "\x00\x00\x00\x00" |
| 14464 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 14465 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 14466 | .klen = 8 + 20 + 16, |
| 14467 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 14468 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 14469 | .input = "Single block msg", |
| 14470 | .ilen = 16, |
| 14471 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 14472 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 14473 | "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c" |
| 14474 | "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5" |
| 14475 | "\x03\x71\xa2\x06", |
| 14476 | .rlen = 16 + 20, |
| 14477 | }, { /* RFC 3602 Case 2 */ |
| 14478 | #ifdef __LITTLE_ENDIAN |
| 14479 | .key = "\x08\x00" /* rta length */ |
| 14480 | "\x01\x00" /* rta type */ |
| 14481 | #else |
| 14482 | .key = "\x00\x08" /* rta length */ |
| 14483 | "\x00\x01" /* rta type */ |
| 14484 | #endif |
| 14485 | "\x00\x00\x00\x10" /* enc key length */ |
| 14486 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14487 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14488 | "\x30\x31\x32\x33" |
| 14489 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 14490 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 14491 | .klen = 8 + 20 + 16, |
| 14492 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 14493 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 14494 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14495 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14496 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14497 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14498 | .ilen = 32, |
| 14499 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 14500 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 14501 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 14502 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 14503 | "\xad\x9b\x4c\x5c\x85\xe1\xda\xae" |
| 14504 | "\xee\x81\x4e\xd7\xdb\x74\xcf\x58" |
| 14505 | "\x65\x39\xf8\xde", |
| 14506 | .rlen = 32 + 20, |
| 14507 | }, { /* RFC 3602 Case 3 */ |
| 14508 | #ifdef __LITTLE_ENDIAN |
| 14509 | .key = "\x08\x00" /* rta length */ |
| 14510 | "\x01\x00" /* rta type */ |
| 14511 | #else |
| 14512 | .key = "\x00\x08" /* rta length */ |
| 14513 | "\x00\x01" /* rta type */ |
| 14514 | #endif |
| 14515 | "\x00\x00\x00\x10" /* enc key length */ |
| 14516 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14517 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14518 | "\x22\x33\x44\x55" |
| 14519 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 14520 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 14521 | .klen = 8 + 20 + 16, |
| 14522 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 14523 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 14524 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 14525 | .ilen = 48, |
| 14526 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 14527 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 14528 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 14529 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 14530 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 14531 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 14532 | "\xc2\xec\x0c\xf8\x7f\x05\xba\xca" |
| 14533 | "\xff\xee\x4c\xd0\x93\xe6\x36\x7f" |
| 14534 | "\x8d\x62\xf2\x1e", |
| 14535 | .rlen = 48 + 20, |
| 14536 | }, { /* RFC 3602 Case 4 */ |
| 14537 | #ifdef __LITTLE_ENDIAN |
| 14538 | .key = "\x08\x00" /* rta length */ |
| 14539 | "\x01\x00" /* rta type */ |
| 14540 | #else |
| 14541 | .key = "\x00\x08" /* rta length */ |
| 14542 | "\x00\x01" /* rta type */ |
| 14543 | #endif |
| 14544 | "\x00\x00\x00\x10" /* enc key length */ |
| 14545 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14546 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14547 | "\x22\x33\x44\x55" |
| 14548 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 14549 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 14550 | .klen = 8 + 20 + 16, |
| 14551 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 14552 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 14553 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14554 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14555 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14556 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14557 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14558 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14559 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14560 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 14561 | .ilen = 64, |
| 14562 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 14563 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 14564 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 14565 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 14566 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 14567 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 14568 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 14569 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 14570 | "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d" |
| 14571 | "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d" |
| 14572 | "\x1d\xbe\xc6\xe9", |
| 14573 | .rlen = 64 + 20, |
| 14574 | }, { /* RFC 3602 Case 5 */ |
| 14575 | #ifdef __LITTLE_ENDIAN |
| 14576 | .key = "\x08\x00" /* rta length */ |
| 14577 | "\x01\x00" /* rta type */ |
| 14578 | #else |
| 14579 | .key = "\x00\x08" /* rta length */ |
| 14580 | "\x00\x01" /* rta type */ |
| 14581 | #endif |
| 14582 | "\x00\x00\x00\x10" /* enc key length */ |
| 14583 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14584 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14585 | "\x22\x33\x44\x55" |
| 14586 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 14587 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 14588 | .klen = 8 + 20 + 16, |
| 14589 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 14590 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 14591 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01", |
| 14592 | .alen = 8, |
| 14593 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 14594 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 14595 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14596 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14597 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14598 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14599 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14600 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14601 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 14602 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 14603 | .ilen = 80, |
| 14604 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 14605 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 14606 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 14607 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 14608 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 14609 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 14610 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 14611 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 14612 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 14613 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 14614 | "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c" |
| 14615 | "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8" |
| 14616 | "\x85\xe1\x59\xf7", |
| 14617 | .rlen = 80 + 20, |
| 14618 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 14619 | #ifdef __LITTLE_ENDIAN |
| 14620 | .key = "\x08\x00" /* rta length */ |
| 14621 | "\x01\x00" /* rta type */ |
| 14622 | #else |
| 14623 | .key = "\x00\x08" /* rta length */ |
| 14624 | "\x00\x01" /* rta type */ |
| 14625 | #endif |
| 14626 | "\x00\x00\x00\x18" /* enc key length */ |
| 14627 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14628 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14629 | "\x22\x33\x44\x55" |
| 14630 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 14631 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 14632 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 14633 | .klen = 8 + 20 + 24, |
| 14634 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14635 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14636 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14637 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14638 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14639 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14640 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14641 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14642 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14643 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14644 | .ilen = 64, |
| 14645 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 14646 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 14647 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 14648 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 14649 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 14650 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 14651 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 14652 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 14653 | "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4" |
| 14654 | "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36" |
| 14655 | "\x47\x4c\xfc\x36", |
| 14656 | .rlen = 64 + 20, |
| 14657 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 14658 | #ifdef __LITTLE_ENDIAN |
| 14659 | .key = "\x08\x00" /* rta length */ |
| 14660 | "\x01\x00" /* rta type */ |
| 14661 | #else |
| 14662 | .key = "\x00\x08" /* rta length */ |
| 14663 | "\x00\x01" /* rta type */ |
| 14664 | #endif |
| 14665 | "\x00\x00\x00\x20" /* enc key length */ |
| 14666 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14667 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14668 | "\x22\x33\x44\x55" |
| 14669 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 14670 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 14671 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 14672 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 14673 | .klen = 8 + 20 + 32, |
| 14674 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14675 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14676 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14677 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14678 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14679 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14680 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14681 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14682 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14683 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14684 | .ilen = 64, |
| 14685 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 14686 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 14687 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 14688 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 14689 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 14690 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 14691 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 14692 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 14693 | "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde" |
| 14694 | "\x1b\x9f\xc6\x81\x26\x43\x4a\x87" |
| 14695 | "\x51\xee\xd6\x4e", |
| 14696 | .rlen = 64 + 20, |
| 14697 | }, |
| 14698 | }; |
| 14699 | |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 14700 | static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_template[] = { |
| 14701 | { /* Input data from RFC 2410 Case 1 */ |
| 14702 | #ifdef __LITTLE_ENDIAN |
| 14703 | .key = "\x08\x00" /* rta length */ |
| 14704 | "\x01\x00" /* rta type */ |
| 14705 | #else |
| 14706 | .key = "\x00\x08" /* rta length */ |
| 14707 | "\x00\x01" /* rta type */ |
| 14708 | #endif |
| 14709 | "\x00\x00\x00\x00" /* enc key length */ |
| 14710 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14711 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14712 | "\x00\x00\x00\x00", |
| 14713 | .klen = 8 + 20 + 0, |
| 14714 | .iv = "", |
| 14715 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 14716 | .ilen = 8, |
| 14717 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 14718 | "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab" |
| 14719 | "\x99\x5e\x19\x04\xd1\x72\xef\xb8" |
| 14720 | "\x8c\x5e\xe4\x08", |
| 14721 | .rlen = 8 + 20, |
| 14722 | }, { /* Input data from RFC 2410 Case 2 */ |
| 14723 | #ifdef __LITTLE_ENDIAN |
| 14724 | .key = "\x08\x00" /* rta length */ |
| 14725 | "\x01\x00" /* rta type */ |
| 14726 | #else |
| 14727 | .key = "\x00\x08" /* rta length */ |
| 14728 | "\x00\x01" /* rta type */ |
| 14729 | #endif |
| 14730 | "\x00\x00\x00\x00" /* enc key length */ |
| 14731 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14732 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14733 | "\x00\x00\x00\x00", |
| 14734 | .klen = 8 + 20 + 0, |
| 14735 | .iv = "", |
| 14736 | .input = "Network Security People Have A Strange Sense Of Humor", |
| 14737 | .ilen = 53, |
| 14738 | .result = "Network Security People Have A Strange Sense Of Humor" |
| 14739 | "\x75\x6f\x42\x1e\xf8\x50\x21\xd2" |
| 14740 | "\x65\x47\xee\x8e\x1a\xef\x16\xf6" |
| 14741 | "\x91\x56\xe4\xd6", |
| 14742 | .rlen = 53 + 20, |
| 14743 | }, |
| 14744 | }; |
| 14745 | |
| 14746 | static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_template[] = { |
| 14747 | { |
| 14748 | #ifdef __LITTLE_ENDIAN |
| 14749 | .key = "\x08\x00" /* rta length */ |
| 14750 | "\x01\x00" /* rta type */ |
| 14751 | #else |
| 14752 | .key = "\x00\x08" /* rta length */ |
| 14753 | "\x00\x01" /* rta type */ |
| 14754 | #endif |
| 14755 | "\x00\x00\x00\x00" /* enc key length */ |
| 14756 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14757 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14758 | "\x00\x00\x00\x00", |
| 14759 | .klen = 8 + 20 + 0, |
| 14760 | .iv = "", |
| 14761 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 14762 | "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab" |
| 14763 | "\x99\x5e\x19\x04\xd1\x72\xef\xb8" |
| 14764 | "\x8c\x5e\xe4\x08", |
| 14765 | .ilen = 8 + 20, |
| 14766 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 14767 | .rlen = 8, |
| 14768 | }, { |
| 14769 | #ifdef __LITTLE_ENDIAN |
| 14770 | .key = "\x08\x00" /* rta length */ |
| 14771 | "\x01\x00" /* rta type */ |
| 14772 | #else |
| 14773 | .key = "\x00\x08" /* rta length */ |
| 14774 | "\x00\x01" /* rta type */ |
| 14775 | #endif |
| 14776 | "\x00\x00\x00\x00" /* enc key length */ |
| 14777 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14778 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14779 | "\x00\x00\x00\x00", |
| 14780 | .klen = 8 + 20 + 0, |
| 14781 | .iv = "", |
| 14782 | .input = "Network Security People Have A Strange Sense Of Humor" |
| 14783 | "\x75\x6f\x42\x1e\xf8\x50\x21\xd2" |
| 14784 | "\x65\x47\xee\x8e\x1a\xef\x16\xf6" |
| 14785 | "\x91\x56\xe4\xd6", |
| 14786 | .ilen = 53 + 20, |
| 14787 | .result = "Network Security People Have A Strange Sense Of Humor", |
| 14788 | .rlen = 53, |
| 14789 | }, |
| 14790 | }; |
| 14791 | |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 14792 | static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_template[] = { |
| 14793 | { /* RFC 3602 Case 1 */ |
| 14794 | #ifdef __LITTLE_ENDIAN |
| 14795 | .key = "\x08\x00" /* rta length */ |
| 14796 | "\x01\x00" /* rta type */ |
| 14797 | #else |
| 14798 | .key = "\x00\x08" /* rta length */ |
| 14799 | "\x00\x01" /* rta type */ |
| 14800 | #endif |
| 14801 | "\x00\x00\x00\x10" /* enc key length */ |
| 14802 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14803 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14804 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14805 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14806 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 14807 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 14808 | .klen = 8 + 32 + 16, |
| 14809 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 14810 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 14811 | .input = "Single block msg", |
| 14812 | .ilen = 16, |
| 14813 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 14814 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 14815 | "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc" |
| 14816 | "\x38\x06\x38\x51\xb4\xb8\xf3\x5b" |
| 14817 | "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5" |
| 14818 | "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5", |
| 14819 | .rlen = 16 + 32, |
| 14820 | }, { /* RFC 3602 Case 2 */ |
| 14821 | #ifdef __LITTLE_ENDIAN |
| 14822 | .key = "\x08\x00" /* rta length */ |
| 14823 | "\x01\x00" /* rta type */ |
| 14824 | #else |
| 14825 | .key = "\x00\x08" /* rta length */ |
| 14826 | "\x00\x01" /* rta type */ |
| 14827 | #endif |
| 14828 | "\x00\x00\x00\x10" /* enc key length */ |
| 14829 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14830 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14831 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14832 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14833 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 14834 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 14835 | .klen = 8 + 32 + 16, |
| 14836 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 14837 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 14838 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14839 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14840 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14841 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14842 | .ilen = 32, |
| 14843 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 14844 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 14845 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 14846 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 14847 | "\xf5\x33\x53\xf3\x68\x85\x2a\x99" |
| 14848 | "\x0e\x06\x58\x8f\xba\xf6\x06\xda" |
| 14849 | "\x49\x69\x0d\x5b\xd4\x36\x06\x62" |
| 14850 | "\x35\x5e\x54\x58\x53\x4d\xdf\xbf", |
| 14851 | .rlen = 32 + 32, |
| 14852 | }, { /* RFC 3602 Case 3 */ |
| 14853 | #ifdef __LITTLE_ENDIAN |
| 14854 | .key = "\x08\x00" /* rta length */ |
| 14855 | "\x01\x00" /* rta type */ |
| 14856 | #else |
| 14857 | .key = "\x00\x08" /* rta length */ |
| 14858 | "\x00\x01" /* rta type */ |
| 14859 | #endif |
| 14860 | "\x00\x00\x00\x10" /* enc key length */ |
| 14861 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14862 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14863 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 14864 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 14865 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 14866 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 14867 | .klen = 8 + 32 + 16, |
| 14868 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 14869 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 14870 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 14871 | .ilen = 48, |
| 14872 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 14873 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 14874 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 14875 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 14876 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 14877 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 14878 | "\x68\xb9\x3e\x90\x38\xa0\x88\x01" |
| 14879 | "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d" |
| 14880 | "\x24\x78\xfb\xbe\x02\xe0\x4f\x40" |
| 14881 | "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a", |
| 14882 | .rlen = 48 + 32, |
| 14883 | }, { /* RFC 3602 Case 4 */ |
| 14884 | #ifdef __LITTLE_ENDIAN |
| 14885 | .key = "\x08\x00" /* rta length */ |
| 14886 | "\x01\x00" /* rta type */ |
| 14887 | #else |
| 14888 | .key = "\x00\x08" /* rta length */ |
| 14889 | "\x00\x01" /* rta type */ |
| 14890 | #endif |
| 14891 | "\x00\x00\x00\x10" /* enc key length */ |
| 14892 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14893 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14894 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 14895 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 14896 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 14897 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 14898 | .klen = 8 + 32 + 16, |
| 14899 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 14900 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 14901 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14902 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14903 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14904 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14905 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14906 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14907 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14908 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 14909 | .ilen = 64, |
| 14910 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 14911 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 14912 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 14913 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 14914 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 14915 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 14916 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 14917 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 14918 | "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2" |
| 14919 | "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8" |
| 14920 | "\x3f\x54\xe2\x49\x39\xe3\x71\x25" |
| 14921 | "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64", |
| 14922 | .rlen = 64 + 32, |
| 14923 | }, { /* RFC 3602 Case 5 */ |
| 14924 | #ifdef __LITTLE_ENDIAN |
| 14925 | .key = "\x08\x00" /* rta length */ |
| 14926 | "\x01\x00" /* rta type */ |
| 14927 | #else |
| 14928 | .key = "\x00\x08" /* rta length */ |
| 14929 | "\x00\x01" /* rta type */ |
| 14930 | #endif |
| 14931 | "\x00\x00\x00\x10" /* enc key length */ |
| 14932 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14933 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14934 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 14935 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 14936 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 14937 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 14938 | .klen = 8 + 32 + 16, |
| 14939 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 14940 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 14941 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01", |
| 14942 | .alen = 8, |
| 14943 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 14944 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 14945 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14946 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14947 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14948 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14949 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14950 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14951 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 14952 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 14953 | .ilen = 80, |
| 14954 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 14955 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 14956 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 14957 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 14958 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 14959 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 14960 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 14961 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 14962 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 14963 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 14964 | "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8" |
| 14965 | "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7" |
| 14966 | "\x73\xc3\x46\x20\x2c\xb1\xef\x68" |
| 14967 | "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf", |
| 14968 | .rlen = 80 + 32, |
| 14969 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 14970 | #ifdef __LITTLE_ENDIAN |
| 14971 | .key = "\x08\x00" /* rta length */ |
| 14972 | "\x01\x00" /* rta type */ |
| 14973 | #else |
| 14974 | .key = "\x00\x08" /* rta length */ |
| 14975 | "\x00\x01" /* rta type */ |
| 14976 | #endif |
| 14977 | "\x00\x00\x00\x18" /* enc key length */ |
| 14978 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 14979 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 14980 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 14981 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 14982 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 14983 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 14984 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 14985 | .klen = 8 + 32 + 24, |
| 14986 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14987 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14988 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14989 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14990 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14991 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14992 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14993 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14994 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14995 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14996 | .ilen = 64, |
| 14997 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 14998 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 14999 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 15000 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 15001 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 15002 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 15003 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 15004 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 15005 | "\x2f\xee\x5f\xdb\x66\xfe\x79\x09" |
| 15006 | "\x61\x81\x31\xea\x5b\x3d\x8e\xfb" |
| 15007 | "\xca\x71\x85\x93\xf7\x85\x55\x8b" |
| 15008 | "\x7a\xe4\x94\xca\x8b\xba\x19\x33", |
| 15009 | .rlen = 64 + 32, |
| 15010 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 15011 | #ifdef __LITTLE_ENDIAN |
| 15012 | .key = "\x08\x00" /* rta length */ |
| 15013 | "\x01\x00" /* rta type */ |
| 15014 | #else |
| 15015 | .key = "\x00\x08" /* rta length */ |
| 15016 | "\x00\x01" /* rta type */ |
| 15017 | #endif |
| 15018 | "\x00\x00\x00\x20" /* enc key length */ |
| 15019 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15020 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15021 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15022 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15023 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 15024 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 15025 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 15026 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 15027 | .klen = 8 + 32 + 32, |
| 15028 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15029 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15030 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15031 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15032 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15033 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15034 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15035 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15036 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15037 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15038 | .ilen = 64, |
| 15039 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 15040 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 15041 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 15042 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 15043 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 15044 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 15045 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 15046 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 15047 | "\x24\x29\xed\xc2\x31\x49\xdb\xb1" |
| 15048 | "\x8f\x74\xbd\x17\x92\x03\xbe\x8f" |
| 15049 | "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0" |
| 15050 | "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f", |
| 15051 | .rlen = 64 + 32, |
| 15052 | }, |
| 15053 | }; |
| 15054 | |
| 15055 | static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_template[] = { |
| 15056 | { /* RFC 3602 Case 1 */ |
| 15057 | #ifdef __LITTLE_ENDIAN |
| 15058 | .key = "\x08\x00" /* rta length */ |
| 15059 | "\x01\x00" /* rta type */ |
| 15060 | #else |
| 15061 | .key = "\x00\x08" /* rta length */ |
| 15062 | "\x00\x01" /* rta type */ |
| 15063 | #endif |
| 15064 | "\x00\x00\x00\x10" /* enc key length */ |
| 15065 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15066 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15067 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15068 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15069 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15070 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15071 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15072 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15073 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 15074 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 15075 | .klen = 8 + 64 + 16, |
| 15076 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 15077 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 15078 | .input = "Single block msg", |
| 15079 | .ilen = 16, |
| 15080 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 15081 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 15082 | "\x3f\xdc\xad\x90\x03\x63\x5e\x68" |
| 15083 | "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7" |
| 15084 | "\x19\x6e\x03\x75\x2b\xa1\x62\xce" |
| 15085 | "\xe0\xc6\x96\x75\xb2\x14\xca\x96" |
| 15086 | "\xec\xbd\x50\x08\x07\x64\x1a\x49" |
| 15087 | "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2" |
| 15088 | "\xfa\x20\x89\xdd\x9c\xac\x9e\x16" |
| 15089 | "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a", |
| 15090 | .rlen = 16 + 64, |
| 15091 | }, { /* RFC 3602 Case 2 */ |
| 15092 | #ifdef __LITTLE_ENDIAN |
| 15093 | .key = "\x08\x00" /* rta length */ |
| 15094 | "\x01\x00" /* rta type */ |
| 15095 | #else |
| 15096 | .key = "\x00\x08" /* rta length */ |
| 15097 | "\x00\x01" /* rta type */ |
| 15098 | #endif |
| 15099 | "\x00\x00\x00\x10" /* enc key length */ |
| 15100 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15101 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15102 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15103 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15104 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15105 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15106 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15107 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15108 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 15109 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 15110 | .klen = 8 + 64 + 16, |
| 15111 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 15112 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 15113 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15114 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15115 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15116 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 15117 | .ilen = 32, |
| 15118 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 15119 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 15120 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 15121 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 15122 | "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef" |
| 15123 | "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41" |
| 15124 | "\x03\x9f\xc4\x64\x7f\x01\x42\x9b" |
| 15125 | "\x0e\x1b\xea\xef\xbc\x88\x19\x5e" |
| 15126 | "\x31\x7e\xc2\x95\xfc\x09\x32\x0a" |
| 15127 | "\x46\x32\x7c\x41\x9c\x59\x3e\xe9" |
| 15128 | "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8" |
| 15129 | "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d", |
| 15130 | .rlen = 32 + 64, |
| 15131 | }, { /* RFC 3602 Case 3 */ |
| 15132 | #ifdef __LITTLE_ENDIAN |
| 15133 | .key = "\x08\x00" /* rta length */ |
| 15134 | "\x01\x00" /* rta type */ |
| 15135 | #else |
| 15136 | .key = "\x00\x08" /* rta length */ |
| 15137 | "\x00\x01" /* rta type */ |
| 15138 | #endif |
| 15139 | "\x00\x00\x00\x10" /* enc key length */ |
| 15140 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15141 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15142 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15143 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15144 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15145 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15146 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15147 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15148 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 15149 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 15150 | .klen = 8 + 64 + 16, |
| 15151 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 15152 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 15153 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 15154 | .ilen = 48, |
| 15155 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 15156 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 15157 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 15158 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 15159 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 15160 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 15161 | "\x64\x19\x17\x5b\x57\xe0\x21\x0f" |
| 15162 | "\xca\xdb\xa1\x26\x38\x14\xa2\x69" |
| 15163 | "\xdb\x54\x67\x80\xc0\x54\xe0\xfd" |
| 15164 | "\x3e\x91\xe7\x91\x7f\x13\x38\x44" |
| 15165 | "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41" |
| 15166 | "\x08\xea\x29\x6c\x74\x67\x3f\xb0" |
| 15167 | "\xac\x7f\x5c\x1d\xf5\xee\x22\x66" |
| 15168 | "\x27\xa6\xb6\x13\xba\xba\xf0\xc2", |
| 15169 | .rlen = 48 + 64, |
| 15170 | }, { /* RFC 3602 Case 4 */ |
| 15171 | #ifdef __LITTLE_ENDIAN |
| 15172 | .key = "\x08\x00" /* rta length */ |
| 15173 | "\x01\x00" /* rta type */ |
| 15174 | #else |
| 15175 | .key = "\x00\x08" /* rta length */ |
| 15176 | "\x00\x01" /* rta type */ |
| 15177 | #endif |
| 15178 | "\x00\x00\x00\x10" /* enc key length */ |
| 15179 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15180 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15181 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15182 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15183 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15184 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15185 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15186 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15187 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 15188 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 15189 | .klen = 8 + 64 + 16, |
| 15190 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 15191 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 15192 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15193 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15194 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15195 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15196 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15197 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15198 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15199 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 15200 | .ilen = 64, |
| 15201 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 15202 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 15203 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 15204 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 15205 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 15206 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 15207 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 15208 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 15209 | "\x82\xcd\x42\x28\x21\x20\x15\xcc" |
| 15210 | "\xb7\xb2\x48\x40\xc7\x64\x41\x3a" |
| 15211 | "\x61\x32\x82\x85\xcf\x27\xed\xb4" |
| 15212 | "\xe4\x68\xa2\xf5\x79\x26\x27\xb2" |
| 15213 | "\x51\x67\x6a\xc4\xf0\x66\x55\x50" |
| 15214 | "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c" |
| 15215 | "\x62\x98\x14\xd7\x2f\x37\x8d\xdf" |
| 15216 | "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda", |
| 15217 | .rlen = 64 + 64, |
| 15218 | }, { /* RFC 3602 Case 5 */ |
| 15219 | #ifdef __LITTLE_ENDIAN |
| 15220 | .key = "\x08\x00" /* rta length */ |
| 15221 | "\x01\x00" /* rta type */ |
| 15222 | #else |
| 15223 | .key = "\x00\x08" /* rta length */ |
| 15224 | "\x00\x01" /* rta type */ |
| 15225 | #endif |
| 15226 | "\x00\x00\x00\x10" /* enc key length */ |
| 15227 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15228 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15229 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15230 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15231 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15232 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15233 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15234 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15235 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 15236 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 15237 | .klen = 8 + 64 + 16, |
| 15238 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 15239 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 15240 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01", |
| 15241 | .alen = 8, |
| 15242 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 15243 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 15244 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15245 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15246 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15247 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15248 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15249 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15250 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 15251 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 15252 | .ilen = 80, |
| 15253 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 15254 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 15255 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 15256 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 15257 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 15258 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 15259 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 15260 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 15261 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 15262 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 15263 | "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf" |
| 15264 | "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf" |
| 15265 | "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f" |
| 15266 | "\x14\xd9\x3d\x53\x8e\x12\xb3\x00" |
| 15267 | "\x4c\x0a\x4e\x32\x40\x43\x88\xce" |
| 15268 | "\x92\x26\xc1\x76\x20\x11\xeb\xba" |
| 15269 | "\x62\x4f\x9a\x62\x25\xc3\x75\x80" |
| 15270 | "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14", |
| 15271 | .rlen = 80 + 64, |
| 15272 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 15273 | #ifdef __LITTLE_ENDIAN |
| 15274 | .key = "\x08\x00" /* rta length */ |
| 15275 | "\x01\x00" /* rta type */ |
| 15276 | #else |
| 15277 | .key = "\x00\x08" /* rta length */ |
| 15278 | "\x00\x01" /* rta type */ |
| 15279 | #endif |
| 15280 | "\x00\x00\x00\x18" /* enc key length */ |
| 15281 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15282 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15283 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15284 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15285 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15286 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15287 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15288 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15289 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 15290 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 15291 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 15292 | .klen = 8 + 64 + 24, |
| 15293 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15294 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15295 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15296 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15297 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15298 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15299 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15300 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15301 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15302 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15303 | .ilen = 64, |
| 15304 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 15305 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 15306 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 15307 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 15308 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 15309 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 15310 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 15311 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 15312 | "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99" |
| 15313 | "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56" |
| 15314 | "\xbb\x21\xd2\x7d\x93\x11\x17\x91" |
| 15315 | "\xc4\x83\xfd\x0a\xea\x71\xfe\x77" |
| 15316 | "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35" |
| 15317 | "\xba\x03\xd5\x32\xfa\x5f\x41\x58" |
| 15318 | "\x8d\x43\x98\xa7\x94\x16\x07\x02" |
| 15319 | "\x0f\xb6\x81\x50\x28\x95\x2e\x75", |
| 15320 | .rlen = 64 + 64, |
| 15321 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 15322 | #ifdef __LITTLE_ENDIAN |
| 15323 | .key = "\x08\x00" /* rta length */ |
| 15324 | "\x01\x00" /* rta type */ |
| 15325 | #else |
| 15326 | .key = "\x00\x08" /* rta length */ |
| 15327 | "\x00\x01" /* rta type */ |
| 15328 | #endif |
| 15329 | "\x00\x00\x00\x20" /* enc key length */ |
| 15330 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15331 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15332 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15333 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15334 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15335 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15336 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15337 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15338 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 15339 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 15340 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 15341 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 15342 | .klen = 8 + 64 + 32, |
| 15343 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15344 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15345 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15346 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15347 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15348 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15349 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15350 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15351 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15352 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15353 | .ilen = 64, |
| 15354 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 15355 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 15356 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 15357 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 15358 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 15359 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 15360 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 15361 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 15362 | "\xb2\x27\x69\x7f\x45\x64\x79\x2b" |
| 15363 | "\xb7\xb8\x4c\xd4\x75\x94\x68\x40" |
| 15364 | "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b" |
| 15365 | "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d" |
| 15366 | "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c" |
| 15367 | "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c" |
| 15368 | "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2" |
| 15369 | "\x2c\xb1\x62\x2c\x10\xca\xf1\x21", |
| 15370 | .rlen = 64 + 64, |
| 15371 | }, |
| 15372 | }; |
| 15373 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 15374 | static struct cipher_testvec aes_lrw_enc_tv_template[] = { |
| 15375 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 15376 | { /* LRW-32-AES 1 */ |
| 15377 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 15378 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 15379 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 15380 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 15381 | .klen = 32, |
| 15382 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15383 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15384 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15385 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15386 | .ilen = 16, |
| 15387 | .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 15388 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 15389 | .rlen = 16, |
| 15390 | }, { /* LRW-32-AES 2 */ |
| 15391 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 15392 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 15393 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 15394 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 15395 | .klen = 32, |
| 15396 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15397 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 15398 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15399 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15400 | .ilen = 16, |
| 15401 | .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 15402 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 15403 | .rlen = 16, |
| 15404 | }, { /* LRW-32-AES 3 */ |
| 15405 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 15406 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 15407 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 15408 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 15409 | .klen = 32, |
| 15410 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15411 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 15412 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15413 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15414 | .ilen = 16, |
| 15415 | .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 15416 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 15417 | .rlen = 16, |
| 15418 | }, { /* LRW-32-AES 4 */ |
| 15419 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 15420 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 15421 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 15422 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 15423 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 15424 | .klen = 40, |
| 15425 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15426 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15427 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15428 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15429 | .ilen = 16, |
| 15430 | .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 15431 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 15432 | .rlen = 16, |
| 15433 | }, { /* LRW-32-AES 5 */ |
| 15434 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 15435 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 15436 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 15437 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 15438 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 15439 | .klen = 40, |
| 15440 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15441 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 15442 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15443 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15444 | .ilen = 16, |
| 15445 | .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 15446 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 15447 | .rlen = 16, |
| 15448 | }, { /* LRW-32-AES 6 */ |
| 15449 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 15450 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 15451 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 15452 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 15453 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 15454 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 15455 | .klen = 48, |
| 15456 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15457 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15458 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15459 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15460 | .ilen = 16, |
| 15461 | .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 15462 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 15463 | .rlen = 16, |
| 15464 | }, { /* LRW-32-AES 7 */ |
| 15465 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 15466 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 15467 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 15468 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 15469 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 15470 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 15471 | .klen = 48, |
| 15472 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15473 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 15474 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15475 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15476 | .ilen = 16, |
| 15477 | .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 15478 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 15479 | .rlen = 16, |
| 15480 | }, { |
| 15481 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 15482 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 15483 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 15484 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 15485 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 15486 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 15487 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 15488 | .klen = 48, |
| 15489 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15490 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15491 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 15492 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 15493 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 15494 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 15495 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 15496 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 15497 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 15498 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 15499 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 15500 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 15501 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 15502 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 15503 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 15504 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 15505 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 15506 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 15507 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 15508 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 15509 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 15510 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 15511 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 15512 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 15513 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 15514 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 15515 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 15516 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 15517 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 15518 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 15519 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 15520 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 15521 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 15522 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 15523 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 15524 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 15525 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 15526 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 15527 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 15528 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 15529 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 15530 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 15531 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 15532 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 15533 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 15534 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 15535 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 15536 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 15537 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 15538 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 15539 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 15540 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 15541 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 15542 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 15543 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 15544 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 15545 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 15546 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 15547 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 15548 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 15549 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 15550 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 15551 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 15552 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 15553 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 15554 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 15555 | .ilen = 512, |
| 15556 | .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 15557 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 15558 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 15559 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 15560 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 15561 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 15562 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 15563 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 15564 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 15565 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 15566 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 15567 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 15568 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 15569 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 15570 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 15571 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 15572 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 15573 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 15574 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 15575 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 15576 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 15577 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 15578 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 15579 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 15580 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 15581 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 15582 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 15583 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 15584 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 15585 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 15586 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 15587 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 15588 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 15589 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 15590 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 15591 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 15592 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 15593 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 15594 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 15595 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 15596 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 15597 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 15598 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 15599 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 15600 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 15601 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 15602 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 15603 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 15604 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 15605 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 15606 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 15607 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 15608 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 15609 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 15610 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 15611 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 15612 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 15613 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 15614 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 15615 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 15616 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 15617 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 15618 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 15619 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 15620 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 15621 | .also_non_np = 1, |
| 15622 | .np = 2, |
| 15623 | .tap = { 512 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 15624 | } |
| 15625 | }; |
| 15626 | |
| 15627 | static struct cipher_testvec aes_lrw_dec_tv_template[] = { |
| 15628 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 15629 | /* same as enc vectors with input and result reversed */ |
| 15630 | { /* LRW-32-AES 1 */ |
| 15631 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 15632 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 15633 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 15634 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 15635 | .klen = 32, |
| 15636 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15637 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15638 | .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 15639 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 15640 | .ilen = 16, |
| 15641 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15642 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15643 | .rlen = 16, |
| 15644 | }, { /* LRW-32-AES 2 */ |
| 15645 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 15646 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 15647 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 15648 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 15649 | .klen = 32, |
| 15650 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15651 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 15652 | .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 15653 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 15654 | .ilen = 16, |
| 15655 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15656 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15657 | .rlen = 16, |
| 15658 | }, { /* LRW-32-AES 3 */ |
| 15659 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 15660 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 15661 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 15662 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 15663 | .klen = 32, |
| 15664 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15665 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 15666 | .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 15667 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 15668 | .ilen = 16, |
| 15669 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15670 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15671 | .rlen = 16, |
| 15672 | }, { /* LRW-32-AES 4 */ |
| 15673 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 15674 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 15675 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 15676 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 15677 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 15678 | .klen = 40, |
| 15679 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15680 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15681 | .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 15682 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 15683 | .ilen = 16, |
| 15684 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15685 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15686 | .rlen = 16, |
| 15687 | }, { /* LRW-32-AES 5 */ |
| 15688 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 15689 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 15690 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 15691 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 15692 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 15693 | .klen = 40, |
| 15694 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15695 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 15696 | .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 15697 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 15698 | .ilen = 16, |
| 15699 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15700 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15701 | .rlen = 16, |
| 15702 | }, { /* LRW-32-AES 6 */ |
| 15703 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 15704 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 15705 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 15706 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 15707 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 15708 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 15709 | .klen = 48, |
| 15710 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15711 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15712 | .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 15713 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 15714 | .ilen = 16, |
| 15715 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15716 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15717 | .rlen = 16, |
| 15718 | }, { /* LRW-32-AES 7 */ |
| 15719 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 15720 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 15721 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 15722 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 15723 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 15724 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 15725 | .klen = 48, |
| 15726 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15727 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 15728 | .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 15729 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 15730 | .ilen = 16, |
| 15731 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15732 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 15733 | .rlen = 16, |
| 15734 | }, { |
| 15735 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 15736 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 15737 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 15738 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 15739 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 15740 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 15741 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 15742 | .klen = 48, |
| 15743 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15744 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 15745 | .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 15746 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 15747 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 15748 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 15749 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 15750 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 15751 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 15752 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 15753 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 15754 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 15755 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 15756 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 15757 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 15758 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 15759 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 15760 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 15761 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 15762 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 15763 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 15764 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 15765 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 15766 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 15767 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 15768 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 15769 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 15770 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 15771 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 15772 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 15773 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 15774 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 15775 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 15776 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 15777 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 15778 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 15779 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 15780 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 15781 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 15782 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 15783 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 15784 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 15785 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 15786 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 15787 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 15788 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 15789 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 15790 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 15791 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 15792 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 15793 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 15794 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 15795 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 15796 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 15797 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 15798 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 15799 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 15800 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 15801 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 15802 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 15803 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 15804 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 15805 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 15806 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 15807 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 15808 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 15809 | .ilen = 512, |
| 15810 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 15811 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 15812 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 15813 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 15814 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 15815 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 15816 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 15817 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 15818 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 15819 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 15820 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 15821 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 15822 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 15823 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 15824 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 15825 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 15826 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 15827 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 15828 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 15829 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 15830 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 15831 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 15832 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 15833 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 15834 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 15835 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 15836 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 15837 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 15838 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 15839 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 15840 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 15841 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 15842 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 15843 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 15844 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 15845 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 15846 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 15847 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 15848 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 15849 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 15850 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 15851 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 15852 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 15853 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 15854 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 15855 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 15856 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 15857 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 15858 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 15859 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 15860 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 15861 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 15862 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 15863 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 15864 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 15865 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 15866 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 15867 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 15868 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 15869 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 15870 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 15871 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 15872 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 15873 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 15874 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 15875 | .also_non_np = 1, |
| 15876 | .np = 2, |
| 15877 | .tap = { 512 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 15878 | } |
| 15879 | }; |
| 15880 | |
| 15881 | static struct cipher_testvec aes_xts_enc_tv_template[] = { |
| 15882 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 15883 | { /* XTS-AES 1 */ |
| 15884 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15885 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15886 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15887 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15888 | .klen = 32, |
| 15889 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15890 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15891 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15892 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15893 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15894 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15895 | .ilen = 32, |
| 15896 | .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 15897 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 15898 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 15899 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 15900 | .rlen = 32, |
| 15901 | }, { /* XTS-AES 2 */ |
| 15902 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 15903 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 15904 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 15905 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 15906 | .klen = 32, |
| 15907 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 15908 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15909 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15910 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15911 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15912 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 15913 | .ilen = 32, |
| 15914 | .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 15915 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 15916 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 15917 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 15918 | .rlen = 32, |
| 15919 | }, { /* XTS-AES 3 */ |
| 15920 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 15921 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 15922 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 15923 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 15924 | .klen = 32, |
| 15925 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 15926 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15927 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15928 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15929 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15930 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 15931 | .ilen = 32, |
| 15932 | .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 15933 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 15934 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 15935 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 15936 | .rlen = 32, |
| 15937 | }, { /* XTS-AES 4 */ |
| 15938 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 15939 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 15940 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 15941 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 15942 | .klen = 32, |
| 15943 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15944 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15945 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15946 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15947 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15948 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15949 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15950 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15951 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15952 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15953 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15954 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15955 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15956 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15957 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15958 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15959 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15960 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15961 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15962 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15963 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15964 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15965 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15966 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15967 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15968 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15969 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15970 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15971 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15972 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15973 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15974 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15975 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15976 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 15977 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15978 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15979 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15980 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15981 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15982 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15983 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15984 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15985 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15986 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15987 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15988 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15989 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15990 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15991 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15992 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15993 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15994 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15995 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15996 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15997 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15998 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15999 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16000 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16001 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16002 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16003 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16004 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16005 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16006 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16007 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16008 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16009 | .ilen = 512, |
| 16010 | .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 16011 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 16012 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 16013 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 16014 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 16015 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 16016 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 16017 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 16018 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 16019 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 16020 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 16021 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 16022 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 16023 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 16024 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 16025 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 16026 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 16027 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 16028 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 16029 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 16030 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 16031 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 16032 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 16033 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 16034 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 16035 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 16036 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 16037 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 16038 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 16039 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 16040 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 16041 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 16042 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 16043 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 16044 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 16045 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 16046 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 16047 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 16048 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 16049 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 16050 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 16051 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 16052 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 16053 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 16054 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 16055 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 16056 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 16057 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 16058 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 16059 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 16060 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 16061 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 16062 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 16063 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 16064 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 16065 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 16066 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 16067 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 16068 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 16069 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 16070 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 16071 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 16072 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 16073 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 16074 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 16075 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 16076 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 16077 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 16078 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 16079 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 16080 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 16081 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 16082 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 16083 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 16084 | .klen = 64, |
| 16085 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 16086 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 16087 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16088 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16089 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16090 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16091 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16092 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16093 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16094 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16095 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16096 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16097 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16098 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16099 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16100 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16101 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16102 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16103 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16104 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16105 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16106 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16107 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16108 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16109 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16110 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16111 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16112 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16113 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16114 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16115 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16116 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16117 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16118 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 16119 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16120 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16121 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16122 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16123 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16124 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16125 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16126 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16127 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16128 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16129 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16130 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16131 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16132 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16133 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16134 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16135 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16136 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16137 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16138 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16139 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16140 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16141 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16142 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16143 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16144 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16145 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16146 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16147 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16148 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16149 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16150 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16151 | .ilen = 512, |
| 16152 | .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 16153 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 16154 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 16155 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 16156 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 16157 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 16158 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 16159 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 16160 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 16161 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 16162 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 16163 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 16164 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 16165 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 16166 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 16167 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 16168 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 16169 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 16170 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 16171 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 16172 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 16173 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 16174 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 16175 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 16176 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 16177 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 16178 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 16179 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 16180 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 16181 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 16182 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 16183 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 16184 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 16185 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 16186 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 16187 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 16188 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 16189 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 16190 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 16191 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 16192 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 16193 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 16194 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 16195 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 16196 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 16197 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 16198 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 16199 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 16200 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 16201 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 16202 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 16203 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 16204 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 16205 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 16206 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 16207 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 16208 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 16209 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 16210 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 16211 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 16212 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 16213 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 16214 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 16215 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 16216 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16217 | .also_non_np = 1, |
| 16218 | .np = 2, |
| 16219 | .tap = { 512 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16220 | } |
| 16221 | }; |
| 16222 | |
| 16223 | static struct cipher_testvec aes_xts_dec_tv_template[] = { |
| 16224 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 16225 | { /* XTS-AES 1 */ |
| 16226 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16227 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16228 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16229 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16230 | .klen = 32, |
| 16231 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16232 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16233 | .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 16234 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 16235 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 16236 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 16237 | .ilen = 32, |
| 16238 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16239 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16240 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16241 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16242 | .rlen = 32, |
| 16243 | }, { /* XTS-AES 2 */ |
| 16244 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 16245 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 16246 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 16247 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 16248 | .klen = 32, |
| 16249 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 16250 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16251 | .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 16252 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 16253 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 16254 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 16255 | .ilen = 32, |
| 16256 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 16257 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 16258 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 16259 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 16260 | .rlen = 32, |
| 16261 | }, { /* XTS-AES 3 */ |
| 16262 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 16263 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 16264 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 16265 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 16266 | .klen = 32, |
| 16267 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 16268 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16269 | .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 16270 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 16271 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 16272 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 16273 | .ilen = 32, |
| 16274 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 16275 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 16276 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 16277 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 16278 | .rlen = 32, |
| 16279 | }, { /* XTS-AES 4 */ |
| 16280 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 16281 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 16282 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 16283 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 16284 | .klen = 32, |
| 16285 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16286 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16287 | .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 16288 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 16289 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 16290 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 16291 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 16292 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 16293 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 16294 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 16295 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 16296 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 16297 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 16298 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 16299 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 16300 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 16301 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 16302 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 16303 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 16304 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 16305 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 16306 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 16307 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 16308 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 16309 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 16310 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 16311 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 16312 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 16313 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 16314 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 16315 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 16316 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 16317 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 16318 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 16319 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 16320 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 16321 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 16322 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 16323 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 16324 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 16325 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 16326 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 16327 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 16328 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 16329 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 16330 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 16331 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 16332 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 16333 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 16334 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 16335 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 16336 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 16337 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 16338 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 16339 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 16340 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 16341 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 16342 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 16343 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 16344 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 16345 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 16346 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 16347 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 16348 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 16349 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 16350 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 16351 | .ilen = 512, |
| 16352 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16353 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16354 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16355 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16356 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16357 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16358 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16359 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16360 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16361 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16362 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16363 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16364 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16365 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16366 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16367 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16368 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16369 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16370 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16371 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16372 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16373 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16374 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16375 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16376 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16377 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16378 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16379 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16380 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16381 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16382 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16383 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 16384 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16385 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16386 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16387 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16388 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16389 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16390 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16391 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16392 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16393 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16394 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16395 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16396 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16397 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16398 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16399 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16400 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16401 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16402 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16403 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16404 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16405 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16406 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16407 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16408 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16409 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16410 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16411 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16412 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16413 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16414 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16415 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16416 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 16417 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 16418 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 16419 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 16420 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 16421 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 16422 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 16423 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 16424 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 16425 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 16426 | .klen = 64, |
| 16427 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 16428 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 16429 | .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 16430 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 16431 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 16432 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 16433 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 16434 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 16435 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 16436 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 16437 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 16438 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 16439 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 16440 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 16441 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 16442 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 16443 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 16444 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 16445 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 16446 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 16447 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 16448 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 16449 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 16450 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 16451 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 16452 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 16453 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 16454 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 16455 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 16456 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 16457 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 16458 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 16459 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 16460 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 16461 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 16462 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 16463 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 16464 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 16465 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 16466 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 16467 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 16468 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 16469 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 16470 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 16471 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 16472 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 16473 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 16474 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 16475 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 16476 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 16477 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 16478 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 16479 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 16480 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 16481 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 16482 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 16483 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 16484 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 16485 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 16486 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 16487 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 16488 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 16489 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 16490 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 16491 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 16492 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 16493 | .ilen = 512, |
| 16494 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16495 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16496 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16497 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16498 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16499 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16500 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16501 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16502 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16503 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16504 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16505 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16506 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16507 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16508 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16509 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16510 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16511 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16512 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16513 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16514 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16515 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16516 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16517 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16518 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16519 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16520 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16521 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16522 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16523 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16524 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16525 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 16526 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16527 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16528 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16529 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16530 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16531 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16532 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16533 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16534 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16535 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16536 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16537 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16538 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16539 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16540 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16541 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16542 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16543 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16544 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16545 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16546 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16547 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16548 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16549 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16550 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16551 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16552 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16553 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16554 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16555 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16556 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16557 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16558 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16559 | .also_non_np = 1, |
| 16560 | .np = 2, |
| 16561 | .tap = { 512 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16562 | } |
| 16563 | }; |
| 16564 | |
| 16565 | |
| 16566 | static struct cipher_testvec aes_ctr_enc_tv_template[] = { |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 16567 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 16568 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 16569 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 16570 | .klen = 16, |
| 16571 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16572 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16573 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 16574 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 16575 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 16576 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 16577 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 16578 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 16579 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 16580 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 16581 | .ilen = 64, |
| 16582 | .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 16583 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 16584 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 16585 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 16586 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 16587 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 16588 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 16589 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 16590 | .rlen = 64, |
| 16591 | }, { |
| 16592 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 16593 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 16594 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 16595 | .klen = 24, |
| 16596 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16597 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16598 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 16599 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 16600 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 16601 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 16602 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 16603 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 16604 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 16605 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 16606 | .ilen = 64, |
| 16607 | .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 16608 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 16609 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 16610 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 16611 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 16612 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 16613 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 16614 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 16615 | .rlen = 64, |
| 16616 | }, { |
| 16617 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 16618 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 16619 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 16620 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 16621 | .klen = 32, |
| 16622 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16623 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16624 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 16625 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 16626 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 16627 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 16628 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 16629 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 16630 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 16631 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 16632 | .ilen = 64, |
| 16633 | .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 16634 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 16635 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 16636 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 16637 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 16638 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 16639 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 16640 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 16641 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 16642 | }, { /* Generated with Crypto++ */ |
| 16643 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 16644 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 16645 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 16646 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 16647 | .klen = 32, |
| 16648 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 16649 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 16650 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 16651 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 16652 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 16653 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 16654 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 16655 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 16656 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 16657 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 16658 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 16659 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 16660 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 16661 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 16662 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 16663 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 16664 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 16665 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 16666 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 16667 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 16668 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 16669 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 16670 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 16671 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 16672 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 16673 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 16674 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 16675 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 16676 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 16677 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 16678 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 16679 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 16680 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 16681 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 16682 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 16683 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 16684 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 16685 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 16686 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 16687 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 16688 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 16689 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 16690 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 16691 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 16692 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 16693 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 16694 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 16695 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 16696 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 16697 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 16698 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 16699 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 16700 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 16701 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 16702 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 16703 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 16704 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 16705 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 16706 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 16707 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 16708 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 16709 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 16710 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 16711 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 16712 | .ilen = 496, |
| 16713 | .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF" |
| 16714 | "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53" |
| 16715 | "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9" |
| 16716 | "\x69\x95\x35\x98\x8D\x4D\x8C\xC1" |
| 16717 | "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2" |
| 16718 | "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE" |
| 16719 | "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB" |
| 16720 | "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB" |
| 16721 | "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81" |
| 16722 | "\x47\x61\x12\x4D\xC2\x8C\xFA\x78" |
| 16723 | "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC" |
| 16724 | "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B" |
| 16725 | "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D" |
| 16726 | "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74" |
| 16727 | "\x32\x41\x1F\x31\x9C\x08\xA2\x5D" |
| 16728 | "\x67\xEB\x72\x1D\xF8\xE7\x70\x54" |
| 16729 | "\x34\x4B\x31\x69\x84\x66\x96\x44" |
| 16730 | "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9" |
| 16731 | "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF" |
| 16732 | "\x16\x5C\x5F\x79\x34\x52\x54\xFE" |
| 16733 | "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06" |
| 16734 | "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B" |
| 16735 | "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC" |
| 16736 | "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD" |
| 16737 | "\x3C\x98\x08\x12\xEC\xAA\x9E\x11" |
| 16738 | "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72" |
| 16739 | "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56" |
| 16740 | "\xD5\x45\x16\xD2\xAF\x13\x66\xF7" |
| 16741 | "\x8C\x67\xAC\x79\xB2\xAF\x56\x27" |
| 16742 | "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1" |
| 16743 | "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4" |
| 16744 | "\x42\xC8\x21\x08\x16\xF7\x01\xD7" |
| 16745 | "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4" |
| 16746 | "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3" |
| 16747 | "\x35\x1C\x82\xB9\x10\xF9\x42\xA1" |
| 16748 | "\xFC\x74\x9B\x44\x4F\x25\x02\xE3" |
| 16749 | "\x08\xF5\xD4\x32\x39\x08\x11\xE8" |
| 16750 | "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B" |
| 16751 | "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E" |
| 16752 | "\x0D\x07\x19\xDB\x67\xD7\x98\x91" |
| 16753 | "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33" |
| 16754 | "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA" |
| 16755 | "\x85\x99\x22\xE8\x91\x38\x70\x83" |
| 16756 | "\x93\x01\x24\x6C\xFA\x9A\xB9\x07" |
| 16757 | "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16" |
| 16758 | "\x2F\x69\xEE\x84\x36\x44\x76\x98" |
| 16759 | "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B" |
| 16760 | "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D" |
| 16761 | "\xAC\xED\x18\x1F\x50\xA4\xF5\x98" |
| 16762 | "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6" |
| 16763 | "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3" |
| 16764 | "\x1B\x39\x72\xD5\x26\xCA\x04\xE0" |
| 16765 | "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C" |
| 16766 | "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA" |
| 16767 | "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D" |
| 16768 | "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC" |
| 16769 | "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63" |
| 16770 | "\xEF\xDC\xC9\x79\x10\x26\xE8\x61" |
| 16771 | "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63" |
| 16772 | "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B" |
| 16773 | "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE" |
| 16774 | "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51", |
| 16775 | .rlen = 496, |
| 16776 | .also_non_np = 1, |
| 16777 | .np = 2, |
| 16778 | .tap = { 496 - 16, 16 }, |
| 16779 | }, { /* Generated with Crypto++ */ |
| 16780 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 16781 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 16782 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 16783 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 16784 | .klen = 32, |
| 16785 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 16786 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 16787 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 16788 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 16789 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 16790 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 16791 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 16792 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 16793 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 16794 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 16795 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 16796 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 16797 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 16798 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 16799 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 16800 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 16801 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 16802 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 16803 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 16804 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 16805 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 16806 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 16807 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 16808 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 16809 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 16810 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 16811 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 16812 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 16813 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 16814 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 16815 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 16816 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 16817 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 16818 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 16819 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 16820 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 16821 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 16822 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 16823 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 16824 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 16825 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 16826 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 16827 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 16828 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 16829 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 16830 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 16831 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 16832 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 16833 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 16834 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 16835 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 16836 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 16837 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 16838 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 16839 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 16840 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 16841 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 16842 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 16843 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 16844 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 16845 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 16846 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 16847 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 16848 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12" |
| 16849 | "\x7B\xE4\x4D", |
| 16850 | .ilen = 499, |
| 16851 | .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2" |
| 16852 | "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5" |
| 16853 | "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44" |
| 16854 | "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE" |
| 16855 | "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F" |
| 16856 | "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E" |
| 16857 | "\x76\xEA\x06\x32\x23\xF3\x59\x2E" |
| 16858 | "\x75\xDE\x71\x86\x3C\x98\x23\x44" |
| 16859 | "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD" |
| 16860 | "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04" |
| 16861 | "\x70\x8B\x92\x55\x23\xE9\x6A\x3A" |
| 16862 | "\x78\x7A\x1B\x10\x85\x52\x9C\x12" |
| 16863 | "\xE4\x55\x81\x21\xCE\x53\xD0\x3B" |
| 16864 | "\x63\x77\x2C\x74\xD1\xF5\x60\xF3" |
| 16865 | "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD" |
| 16866 | "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E" |
| 16867 | "\xA8\x28\x69\x65\x31\xE1\x45\x83" |
| 16868 | "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21" |
| 16869 | "\xCD\x5D\x0F\x15\xB7\x93\x07\x26" |
| 16870 | "\xB0\x65\x6D\x91\x90\x23\x7A\xC6" |
| 16871 | "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E" |
| 16872 | "\xC6\x91\x83\x20\x92\x4D\x63\x7A" |
| 16873 | "\x45\x18\x18\x74\x19\xAD\x71\x01" |
| 16874 | "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46" |
| 16875 | "\xC9\x73\x7A\xF9\x02\x95\xF4\x07" |
| 16876 | "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C" |
| 16877 | "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8" |
| 16878 | "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D" |
| 16879 | "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7" |
| 16880 | "\xE8\x61\xE5\x95\x52\x1E\x3E\x49" |
| 16881 | "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD" |
| 16882 | "\xDD\x15\x3B\x20\x59\x24\xFF\xB0" |
| 16883 | "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5" |
| 16884 | "\x15\xF0\x61\x4F\xAE\x89\x10\x58" |
| 16885 | "\x5A\x33\x95\x52\x2A\xB5\x77\x9C" |
| 16886 | "\xA5\x43\x80\x40\x27\x2D\xAE\xD9" |
| 16887 | "\x3F\xE0\x80\x94\x78\x79\xCB\x7E" |
| 16888 | "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE" |
| 16889 | "\x0B\x05\x2A\x82\x99\x58\xBB\x7A" |
| 16890 | "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93" |
| 16891 | "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70" |
| 16892 | "\x16\xAE\x35\xC5\x52\x0F\x46\x1F" |
| 16893 | "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F" |
| 16894 | "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6" |
| 16895 | "\xF6\xB8\x32\xCD\xD6\x85\x73\x60" |
| 16896 | "\x59\x20\xE7\x55\x0E\x91\xE2\x0C" |
| 16897 | "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2" |
| 16898 | "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D" |
| 16899 | "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7" |
| 16900 | "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D" |
| 16901 | "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4" |
| 16902 | "\xFB\x81\x5D\xF7\x96\x96\xD4\x50" |
| 16903 | "\x89\xA7\xF6\xB9\x67\x76\x40\x9E" |
| 16904 | "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F" |
| 16905 | "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D" |
| 16906 | "\x87\x52\xA4\x91\xA9\xD7\xA9\x51" |
| 16907 | "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D" |
| 16908 | "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D" |
| 16909 | "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37" |
| 16910 | "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A" |
| 16911 | "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11" |
| 16912 | "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76" |
| 16913 | "\xFB\xF2\x3F", |
| 16914 | .rlen = 499, |
| 16915 | .also_non_np = 1, |
| 16916 | .np = 2, |
| 16917 | .tap = { 499 - 16, 16 }, |
| 16918 | }, |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 16919 | }; |
| 16920 | |
| 16921 | static struct cipher_testvec aes_ctr_dec_tv_template[] = { |
| 16922 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 16923 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 16924 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 16925 | .klen = 16, |
| 16926 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16927 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16928 | .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 16929 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 16930 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 16931 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 16932 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 16933 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 16934 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 16935 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 16936 | .ilen = 64, |
| 16937 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 16938 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 16939 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 16940 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 16941 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 16942 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 16943 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 16944 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 16945 | .rlen = 64, |
| 16946 | }, { |
| 16947 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 16948 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 16949 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 16950 | .klen = 24, |
| 16951 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16952 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16953 | .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 16954 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 16955 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 16956 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 16957 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 16958 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 16959 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 16960 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 16961 | .ilen = 64, |
| 16962 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 16963 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 16964 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 16965 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 16966 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 16967 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 16968 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 16969 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 16970 | .rlen = 64, |
| 16971 | }, { |
| 16972 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 16973 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 16974 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 16975 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 16976 | .klen = 32, |
| 16977 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16978 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16979 | .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 16980 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 16981 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 16982 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 16983 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 16984 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 16985 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 16986 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 16987 | .ilen = 64, |
| 16988 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 16989 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 16990 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 16991 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 16992 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 16993 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 16994 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 16995 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 16996 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 16997 | }, { /* Generated with Crypto++ */ |
| 16998 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 16999 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 17000 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 17001 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 17002 | .klen = 32, |
| 17003 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 17004 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 17005 | .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF" |
| 17006 | "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53" |
| 17007 | "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9" |
| 17008 | "\x69\x95\x35\x98\x8D\x4D\x8C\xC1" |
| 17009 | "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2" |
| 17010 | "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE" |
| 17011 | "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB" |
| 17012 | "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB" |
| 17013 | "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81" |
| 17014 | "\x47\x61\x12\x4D\xC2\x8C\xFA\x78" |
| 17015 | "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC" |
| 17016 | "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B" |
| 17017 | "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D" |
| 17018 | "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74" |
| 17019 | "\x32\x41\x1F\x31\x9C\x08\xA2\x5D" |
| 17020 | "\x67\xEB\x72\x1D\xF8\xE7\x70\x54" |
| 17021 | "\x34\x4B\x31\x69\x84\x66\x96\x44" |
| 17022 | "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9" |
| 17023 | "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF" |
| 17024 | "\x16\x5C\x5F\x79\x34\x52\x54\xFE" |
| 17025 | "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06" |
| 17026 | "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B" |
| 17027 | "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC" |
| 17028 | "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD" |
| 17029 | "\x3C\x98\x08\x12\xEC\xAA\x9E\x11" |
| 17030 | "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72" |
| 17031 | "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56" |
| 17032 | "\xD5\x45\x16\xD2\xAF\x13\x66\xF7" |
| 17033 | "\x8C\x67\xAC\x79\xB2\xAF\x56\x27" |
| 17034 | "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1" |
| 17035 | "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4" |
| 17036 | "\x42\xC8\x21\x08\x16\xF7\x01\xD7" |
| 17037 | "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4" |
| 17038 | "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3" |
| 17039 | "\x35\x1C\x82\xB9\x10\xF9\x42\xA1" |
| 17040 | "\xFC\x74\x9B\x44\x4F\x25\x02\xE3" |
| 17041 | "\x08\xF5\xD4\x32\x39\x08\x11\xE8" |
| 17042 | "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B" |
| 17043 | "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E" |
| 17044 | "\x0D\x07\x19\xDB\x67\xD7\x98\x91" |
| 17045 | "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33" |
| 17046 | "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA" |
| 17047 | "\x85\x99\x22\xE8\x91\x38\x70\x83" |
| 17048 | "\x93\x01\x24\x6C\xFA\x9A\xB9\x07" |
| 17049 | "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16" |
| 17050 | "\x2F\x69\xEE\x84\x36\x44\x76\x98" |
| 17051 | "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B" |
| 17052 | "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D" |
| 17053 | "\xAC\xED\x18\x1F\x50\xA4\xF5\x98" |
| 17054 | "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6" |
| 17055 | "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3" |
| 17056 | "\x1B\x39\x72\xD5\x26\xCA\x04\xE0" |
| 17057 | "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C" |
| 17058 | "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA" |
| 17059 | "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D" |
| 17060 | "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC" |
| 17061 | "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63" |
| 17062 | "\xEF\xDC\xC9\x79\x10\x26\xE8\x61" |
| 17063 | "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63" |
| 17064 | "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B" |
| 17065 | "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE" |
| 17066 | "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51", |
| 17067 | .ilen = 496, |
| 17068 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 17069 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 17070 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 17071 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 17072 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 17073 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 17074 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 17075 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 17076 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 17077 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 17078 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 17079 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 17080 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 17081 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 17082 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 17083 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 17084 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 17085 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 17086 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 17087 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 17088 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 17089 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 17090 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 17091 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 17092 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 17093 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 17094 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 17095 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 17096 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 17097 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 17098 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 17099 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 17100 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 17101 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 17102 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 17103 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 17104 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 17105 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 17106 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 17107 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 17108 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 17109 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 17110 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 17111 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 17112 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 17113 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 17114 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 17115 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 17116 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 17117 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 17118 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 17119 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 17120 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 17121 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 17122 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 17123 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 17124 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 17125 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 17126 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 17127 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 17128 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 17129 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 17130 | .rlen = 496, |
| 17131 | .also_non_np = 1, |
| 17132 | .np = 2, |
| 17133 | .tap = { 496 - 16, 16 }, |
| 17134 | }, { /* Generated with Crypto++ */ |
| 17135 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 17136 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 17137 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 17138 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 17139 | .klen = 32, |
| 17140 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 17141 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 17142 | .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2" |
| 17143 | "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5" |
| 17144 | "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44" |
| 17145 | "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE" |
| 17146 | "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F" |
| 17147 | "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E" |
| 17148 | "\x76\xEA\x06\x32\x23\xF3\x59\x2E" |
| 17149 | "\x75\xDE\x71\x86\x3C\x98\x23\x44" |
| 17150 | "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD" |
| 17151 | "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04" |
| 17152 | "\x70\x8B\x92\x55\x23\xE9\x6A\x3A" |
| 17153 | "\x78\x7A\x1B\x10\x85\x52\x9C\x12" |
| 17154 | "\xE4\x55\x81\x21\xCE\x53\xD0\x3B" |
| 17155 | "\x63\x77\x2C\x74\xD1\xF5\x60\xF3" |
| 17156 | "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD" |
| 17157 | "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E" |
| 17158 | "\xA8\x28\x69\x65\x31\xE1\x45\x83" |
| 17159 | "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21" |
| 17160 | "\xCD\x5D\x0F\x15\xB7\x93\x07\x26" |
| 17161 | "\xB0\x65\x6D\x91\x90\x23\x7A\xC6" |
| 17162 | "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E" |
| 17163 | "\xC6\x91\x83\x20\x92\x4D\x63\x7A" |
| 17164 | "\x45\x18\x18\x74\x19\xAD\x71\x01" |
| 17165 | "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46" |
| 17166 | "\xC9\x73\x7A\xF9\x02\x95\xF4\x07" |
| 17167 | "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C" |
| 17168 | "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8" |
| 17169 | "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D" |
| 17170 | "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7" |
| 17171 | "\xE8\x61\xE5\x95\x52\x1E\x3E\x49" |
| 17172 | "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD" |
| 17173 | "\xDD\x15\x3B\x20\x59\x24\xFF\xB0" |
| 17174 | "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5" |
| 17175 | "\x15\xF0\x61\x4F\xAE\x89\x10\x58" |
| 17176 | "\x5A\x33\x95\x52\x2A\xB5\x77\x9C" |
| 17177 | "\xA5\x43\x80\x40\x27\x2D\xAE\xD9" |
| 17178 | "\x3F\xE0\x80\x94\x78\x79\xCB\x7E" |
| 17179 | "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE" |
| 17180 | "\x0B\x05\x2A\x82\x99\x58\xBB\x7A" |
| 17181 | "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93" |
| 17182 | "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70" |
| 17183 | "\x16\xAE\x35\xC5\x52\x0F\x46\x1F" |
| 17184 | "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F" |
| 17185 | "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6" |
| 17186 | "\xF6\xB8\x32\xCD\xD6\x85\x73\x60" |
| 17187 | "\x59\x20\xE7\x55\x0E\x91\xE2\x0C" |
| 17188 | "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2" |
| 17189 | "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D" |
| 17190 | "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7" |
| 17191 | "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D" |
| 17192 | "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4" |
| 17193 | "\xFB\x81\x5D\xF7\x96\x96\xD4\x50" |
| 17194 | "\x89\xA7\xF6\xB9\x67\x76\x40\x9E" |
| 17195 | "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F" |
| 17196 | "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D" |
| 17197 | "\x87\x52\xA4\x91\xA9\xD7\xA9\x51" |
| 17198 | "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D" |
| 17199 | "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D" |
| 17200 | "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37" |
| 17201 | "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A" |
| 17202 | "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11" |
| 17203 | "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76" |
| 17204 | "\xFB\xF2\x3F", |
| 17205 | .ilen = 499, |
| 17206 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 17207 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 17208 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 17209 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 17210 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 17211 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 17212 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 17213 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 17214 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 17215 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 17216 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 17217 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 17218 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 17219 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 17220 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 17221 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 17222 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 17223 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 17224 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 17225 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 17226 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 17227 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 17228 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 17229 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 17230 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 17231 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 17232 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 17233 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 17234 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 17235 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 17236 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 17237 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 17238 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 17239 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 17240 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 17241 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 17242 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 17243 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 17244 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 17245 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 17246 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 17247 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 17248 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 17249 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 17250 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 17251 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 17252 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 17253 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 17254 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 17255 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 17256 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 17257 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 17258 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 17259 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 17260 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 17261 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 17262 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 17263 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 17264 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 17265 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 17266 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 17267 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12" |
| 17268 | "\x7B\xE4\x4D", |
| 17269 | .rlen = 499, |
| 17270 | .also_non_np = 1, |
| 17271 | .np = 2, |
| 17272 | .tap = { 499 - 16, 16 }, |
| 17273 | }, |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 17274 | }; |
| 17275 | |
| 17276 | static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17277 | { /* From RFC 3686 */ |
| 17278 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 17279 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 17280 | "\x00\x00\x00\x30", |
| 17281 | .klen = 20, |
| 17282 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17283 | .input = "Single block msg", |
| 17284 | .ilen = 16, |
| 17285 | .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 17286 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 17287 | .rlen = 16, |
| 17288 | }, { |
| 17289 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 17290 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 17291 | "\x00\x6c\xb6\xdb", |
| 17292 | .klen = 20, |
| 17293 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 17294 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17295 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17296 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17297 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 17298 | .ilen = 32, |
| 17299 | .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 17300 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 17301 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 17302 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 17303 | .rlen = 32, |
| 17304 | }, { |
| 17305 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 17306 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 17307 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 17308 | "\x00\x00\x00\x48", |
| 17309 | .klen = 28, |
| 17310 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 17311 | .input = "Single block msg", |
| 17312 | .ilen = 16, |
| 17313 | .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 17314 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 17315 | .rlen = 16, |
| 17316 | }, { |
| 17317 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 17318 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 17319 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 17320 | "\x00\x96\xb0\x3b", |
| 17321 | .klen = 28, |
| 17322 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 17323 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17324 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17325 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17326 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 17327 | .ilen = 32, |
| 17328 | .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 17329 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 17330 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 17331 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 17332 | .rlen = 32, |
| 17333 | }, { |
| 17334 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 17335 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 17336 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 17337 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 17338 | "\x00\x00\x00\x60", |
| 17339 | .klen = 36, |
| 17340 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 17341 | .input = "Single block msg", |
| 17342 | .ilen = 16, |
| 17343 | .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 17344 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 17345 | .rlen = 16, |
| 17346 | }, { |
| 17347 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 17348 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 17349 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 17350 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 17351 | "\x00\xfa\xac\x24", |
| 17352 | .klen = 36, |
| 17353 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 17354 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17355 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17356 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17357 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 17358 | .ilen = 32, |
| 17359 | .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 17360 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 17361 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 17362 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 17363 | .rlen = 32, |
| 17364 | }, { |
| 17365 | // generated using Crypto++ |
| 17366 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17367 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17368 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17369 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17370 | "\x00\x00\x00\x00", |
| 17371 | .klen = 32 + 4, |
| 17372 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17373 | .input = |
| 17374 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17375 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17376 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17377 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17378 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17379 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17380 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17381 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17382 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17383 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17384 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17385 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17386 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17387 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17388 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17389 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17390 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17391 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17392 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17393 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17394 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17395 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17396 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17397 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17398 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17399 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17400 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17401 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17402 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17403 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17404 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17405 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 17406 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 17407 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 17408 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 17409 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 17410 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 17411 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 17412 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 17413 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 17414 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 17415 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 17416 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 17417 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 17418 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 17419 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 17420 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 17421 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 17422 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 17423 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 17424 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 17425 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 17426 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 17427 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 17428 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 17429 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 17430 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 17431 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 17432 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 17433 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 17434 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 17435 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 17436 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 17437 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 17438 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 17439 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 17440 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 17441 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 17442 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 17443 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 17444 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 17445 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 17446 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 17447 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 17448 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 17449 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 17450 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 17451 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 17452 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 17453 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 17454 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 17455 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 17456 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 17457 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 17458 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 17459 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 17460 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 17461 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 17462 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 17463 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 17464 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 17465 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 17466 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 17467 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 17468 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 17469 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 17470 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 17471 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 17472 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 17473 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 17474 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 17475 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 17476 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 17477 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 17478 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 17479 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 17480 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 17481 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 17482 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 17483 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 17484 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 17485 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 17486 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 17487 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 17488 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 17489 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 17490 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 17491 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 17492 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 17493 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 17494 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 17495 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 17496 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 17497 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 17498 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 17499 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 17500 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 17501 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 17502 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 17503 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 17504 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 17505 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 17506 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 17507 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 17508 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 17509 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 17510 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 17511 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 17512 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 17513 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 17514 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 17515 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 17516 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 17517 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 17518 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 17519 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 17520 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 17521 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 17522 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 17523 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 17524 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 17525 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 17526 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 17527 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 17528 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 17529 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 17530 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 17531 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 17532 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 17533 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 17534 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 17535 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 17536 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 17537 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 17538 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 17539 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 17540 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 17541 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 17542 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 17543 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 17544 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 17545 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 17546 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 17547 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 17548 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 17549 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 17550 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 17551 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 17552 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 17553 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 17554 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 17555 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 17556 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 17557 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 17558 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 17559 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 17560 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 17561 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 17562 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 17563 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 17564 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 17565 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 17566 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 17567 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 17568 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 17569 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 17570 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 17571 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 17572 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 17573 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 17574 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 17575 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 17576 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 17577 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 17578 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 17579 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 17580 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 17581 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 17582 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 17583 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 17584 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 17585 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 17586 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 17587 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 17588 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 17589 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 17590 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 17591 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 17592 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 17593 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 17594 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 17595 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 17596 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 17597 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 17598 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 17599 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 17600 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 17601 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 17602 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 17603 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 17604 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 17605 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 17606 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 17607 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 17608 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 17609 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 17610 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 17611 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 17612 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 17613 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 17614 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 17615 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 17616 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 17617 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 17618 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 17619 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 17620 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 17621 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 17622 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 17623 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 17624 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 17625 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 17626 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 17627 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 17628 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 17629 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 17630 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 17631 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 17632 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 17633 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 17634 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 17635 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 17636 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 17637 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 17638 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 17639 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 17640 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 17641 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 17642 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 17643 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 17644 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 17645 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 17646 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 17647 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 17648 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 17649 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 17650 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 17651 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 17652 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 17653 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 17654 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 17655 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 17656 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 17657 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 17658 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 17659 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 17660 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 17661 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 17662 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 17663 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 17664 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 17665 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 17666 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 17667 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 17668 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 17669 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 17670 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 17671 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 17672 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 17673 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 17674 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 17675 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 17676 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 17677 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 17678 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 17679 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 17680 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 17681 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 17682 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 17683 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 17684 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 17685 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 17686 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 17687 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 17688 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 17689 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 17690 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 17691 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 17692 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 17693 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 17694 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 17695 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 17696 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 17697 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 17698 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 17699 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 17700 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 17701 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 17702 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 17703 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 17704 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 17705 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 17706 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 17707 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 17708 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 17709 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 17710 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 17711 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 17712 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 17713 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 17714 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 17715 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 17716 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 17717 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 17718 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 17719 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 17720 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 17721 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 17722 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 17723 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 17724 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 17725 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 17726 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 17727 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 17728 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 17729 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 17730 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 17731 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 17732 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 17733 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 17734 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 17735 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 17736 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 17737 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 17738 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 17739 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 17740 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 17741 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 17742 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 17743 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 17744 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 17745 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 17746 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 17747 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 17748 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 17749 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 17750 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 17751 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 17752 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 17753 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 17754 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 17755 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 17756 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 17757 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 17758 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 17759 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 17760 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 17761 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 17762 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 17763 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 17764 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 17765 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 17766 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 17767 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 17768 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 17769 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 17770 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 17771 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 17772 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 17773 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 17774 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 17775 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 17776 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 17777 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 17778 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 17779 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 17780 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 17781 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 17782 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 17783 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 17784 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 17785 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 17786 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 17787 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 17788 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 17789 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 17790 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 17791 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 17792 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 17793 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 17794 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 17795 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 17796 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 17797 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 17798 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 17799 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 17800 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 17801 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 17802 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 17803 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 17804 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 17805 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 17806 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 17807 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 17808 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 17809 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 17810 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 17811 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 17812 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 17813 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 17814 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 17815 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 17816 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 17817 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 17818 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 17819 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 17820 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 17821 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 17822 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 17823 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 17824 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 17825 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 17826 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 17827 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 17828 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 17829 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 17830 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 17831 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 17832 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 17833 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 17834 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 17835 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 17836 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 17837 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 17838 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 17839 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 17840 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 17841 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 17842 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 17843 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 17844 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 17845 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 17846 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 17847 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 17848 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 17849 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 17850 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 17851 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 17852 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 17853 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 17854 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 17855 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 17856 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 17857 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 17858 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 17859 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 17860 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 17861 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 17862 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 17863 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 17864 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 17865 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 17866 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 17867 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 17868 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 17869 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 17870 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 17871 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 17872 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 17873 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 17874 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 17875 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 17876 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 17877 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 17878 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 17879 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 17880 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 17881 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 17882 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 17883 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 17884 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 17885 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 17886 | "\x00\x21\x42\x63", |
| 17887 | .ilen = 4100, |
| 17888 | .result = |
| 17889 | "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2" |
| 17890 | "\xae\xff\x91\x3a\x44\xcf\x38\x32" |
| 17891 | "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa" |
| 17892 | "\x10\xb1\xb3\x2e\x04\x31\x8f\x86" |
| 17893 | "\xf2\x62\x74\x70\x0c\xa4\x46\x08" |
| 17894 | "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79" |
| 17895 | "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31" |
| 17896 | "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71" |
| 17897 | "\xe9\x46\x03\xa5\x3d\x34\x00\xe2" |
| 17898 | "\x18\xff\x75\x6d\x06\x2d\x00\xab" |
| 17899 | "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5" |
| 17900 | "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6" |
| 17901 | "\x3d\x74\x54\xfa\x44\xcd\x23\x26" |
| 17902 | "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf" |
| 17903 | "\xa7\x20\x3c\x74\x58\x2a\x9a\xde" |
| 17904 | "\x61\x00\x1c\x4f\xff\x59\xc4\x22" |
| 17905 | "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b" |
| 17906 | "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d" |
| 17907 | "\xee\x2f\x04\x1f\x7f\xbc\x99\xee" |
| 17908 | "\x84\xff\x42\x60\xdc\x3a\x18\xa5" |
| 17909 | "\x81\xf9\xef\xdc\x7a\x0f\x65\x41" |
| 17910 | "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d" |
| 17911 | "\x8f\xd3\x76\x96\xad\x49\x6d\x38" |
| 17912 | "\x3d\x39\x0b\x6c\x80\xb7\x54\x69" |
| 17913 | "\xf0\x2c\x90\x02\x29\x0d\x1c\x12" |
| 17914 | "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3" |
| 17915 | "\xb2\x64\x33\x90\x5e\xca\x4b\xe2" |
| 17916 | "\xfb\x75\xdc\x63\xf7\x9f\x82\x74" |
| 17917 | "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33" |
| 17918 | "\xbc\x88\x00\x7f\xca\xb2\x1f\x14" |
| 17919 | "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08" |
| 17920 | "\xf3\x83\xe8\xe0\x94\x86\x2e\x92" |
| 17921 | "\x78\x6b\x01\xc9\xc7\x83\xba\x21" |
| 17922 | "\x6a\x25\x15\x33\x4e\x45\x08\xec" |
| 17923 | "\x35\xdb\xe0\x6e\x31\x51\x79\xa9" |
| 17924 | "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a" |
| 17925 | "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc" |
| 17926 | "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec" |
| 17927 | "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16" |
| 17928 | "\x1b\x66\x84\xda\xe2\x92\xe5\xc0" |
| 17929 | "\xc8\x53\x07\xaf\x80\x84\xec\xfd" |
| 17930 | "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36" |
| 17931 | "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a" |
| 17932 | "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a" |
| 17933 | "\x06\x51\x48\x4e\xf6\x59\x87\xd2" |
| 17934 | "\x04\x02\xef\xd3\x44\xde\x76\x31" |
| 17935 | "\xb3\x34\x17\x1b\x9d\x66\x11\x9f" |
| 17936 | "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7" |
| 17937 | "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb" |
| 17938 | "\x65\x83\xd0\x3b\xe3\x30\xea\x94" |
| 17939 | "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64" |
| 17940 | "\xb4\x01\xab\x36\x2c\x77\x13\xaf" |
| 17941 | "\xf8\x2b\x88\x3f\x54\x39\xc4\x44" |
| 17942 | "\xfe\xef\x6f\x68\x34\xbe\x0f\x05" |
| 17943 | "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed" |
| 17944 | "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe" |
| 17945 | "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7" |
| 17946 | "\x93\x97\xc6\x48\x45\x1d\x9f\x83" |
| 17947 | "\xdf\x4b\x40\x3e\x42\x25\x87\x80" |
| 17948 | "\x4c\x7d\xa8\xd4\x98\x23\x95\x75" |
| 17949 | "\x41\x8c\xda\x41\x9b\xd4\xa7\x06" |
| 17950 | "\xb5\xf1\x71\x09\x53\xbe\xca\xbf" |
| 17951 | "\x32\x03\xed\xf0\x50\x1c\x56\x39" |
| 17952 | "\x5b\xa4\x75\x18\xf7\x9b\x58\xef" |
| 17953 | "\x53\xfc\x2a\x38\x23\x15\x75\xcd" |
| 17954 | "\x45\xe5\x5a\x82\x55\xba\x21\xfa" |
| 17955 | "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12" |
| 17956 | "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28" |
| 17957 | "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e" |
| 17958 | "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32" |
| 17959 | "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0" |
| 17960 | "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed" |
| 17961 | "\xd1\x26\xb9\xd8\x49\x5a\x07\x19" |
| 17962 | "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3" |
| 17963 | "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59" |
| 17964 | "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31" |
| 17965 | "\xb3\x42\xba\xa2\x7e\xd4\x32\x71" |
| 17966 | "\x45\x87\x48\xa9\xc2\xf2\x89\xb3" |
| 17967 | "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe" |
| 17968 | "\xc9\xdd\x81\xeb\x13\xab\xab\xc3" |
| 17969 | "\x98\x59\xd8\x16\x3d\x14\x7a\x1c" |
| 17970 | "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2" |
| 17971 | "\x69\x3a\x29\x23\xac\x86\x32\xa5" |
| 17972 | "\x48\x9c\x9e\xf3\x47\x77\x81\x70" |
| 17973 | "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff" |
| 17974 | "\x59\x6a\xd3\x50\x59\x43\x59\xde" |
| 17975 | "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a" |
| 17976 | "\x18\x34\x0d\x1a\x63\x33\xed\x10" |
| 17977 | "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8" |
| 17978 | "\xca\xb5\x9a\xd3\xdd\xca\x45\x84" |
| 17979 | "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe" |
| 17980 | "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d" |
| 17981 | "\x85\xd8\xc9\xdf\x68\xc9\x12\x80" |
| 17982 | "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d" |
| 17983 | "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0" |
| 17984 | "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f" |
| 17985 | "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8" |
| 17986 | "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2" |
| 17987 | "\xa6\xad\x30\xbc\x78\x3c\x5b\x10" |
| 17988 | "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33" |
| 17989 | "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8" |
| 17990 | "\xe8\x99\x57\x8c\x11\xed\x66\xd9" |
| 17991 | "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a" |
| 17992 | "\x6a\xcb\x42\x24\x06\xed\x3e\x4e" |
| 17993 | "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5" |
| 17994 | "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc" |
| 17995 | "\x64\x76\x38\x49\x4d\xfe\x30\x6d" |
| 17996 | "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba" |
| 17997 | "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3" |
| 17998 | "\x28\xa2\x82\x1f\x61\x69\xad\xc1" |
| 17999 | "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b" |
| 18000 | "\x51\xb5\x17\x7f\x12\x69\x8c\x24" |
| 18001 | "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a" |
| 18002 | "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a" |
| 18003 | "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5" |
| 18004 | "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7" |
| 18005 | "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2" |
| 18006 | "\x4d\x29\x77\x53\x35\x6a\x00\x8d" |
| 18007 | "\xcd\xa3\x58\xbe\x77\x99\x18\xf8" |
| 18008 | "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2" |
| 18009 | "\x5a\x8a\x93\x25\xaf\xf3\x78\x80" |
| 18010 | "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91" |
| 18011 | "\x58\xe1\x9f\x89\x35\x9d\x1d\x21" |
| 18012 | "\x29\x9f\xf4\x99\x02\x27\x0f\xa8" |
| 18013 | "\x4f\x79\x94\x2b\x33\x2c\xda\xa2" |
| 18014 | "\x26\x39\x83\x94\xef\x27\xd8\x53" |
| 18015 | "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd" |
| 18016 | "\x43\x7c\x95\x0a\x53\xef\x66\xda" |
| 18017 | "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71" |
| 18018 | "\xba\x40\x9b\x74\xf8\xd7\xd7\x41" |
| 18019 | "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c" |
| 18020 | "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3" |
| 18021 | "\x88\xee\x73\xcf\x66\x2f\x52\x56" |
| 18022 | "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88" |
| 18023 | "\x3f\x0e\x54\x17\x48\x80\x5d\xd3" |
| 18024 | "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f" |
| 18025 | "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1" |
| 18026 | "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9" |
| 18027 | "\x85\x9c\xf1\xac\xeb\x0c\x02\x46" |
| 18028 | "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94" |
| 18029 | "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36" |
| 18030 | "\xba\x61\x34\x38\x7c\xda\x48\x3e" |
| 18031 | "\x08\xc9\x39\x23\x5e\x02\x2c\x1a" |
| 18032 | "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02" |
| 18033 | "\xb1\x33\x37\x32\xe7\xde\xd6\xd0" |
| 18034 | "\x7c\x58\x65\x4b\xf8\x34\x27\x9c" |
| 18035 | "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d" |
| 18036 | "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37" |
| 18037 | "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4" |
| 18038 | "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a" |
| 18039 | "\x35\x12\xe3\x36\x28\x27\x36\x58" |
| 18040 | "\x01\x2b\x79\xe4\xba\x6d\x10\x7d" |
| 18041 | "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f" |
| 18042 | "\x2b\x9f\x96\x00\x86\x60\xf0\x21" |
| 18043 | "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b" |
| 18044 | "\x97\xd7\xb6\x53\x2a\xcc\xab\x40" |
| 18045 | "\x9d\x62\x79\x58\x52\xe6\x65\xb7" |
| 18046 | "\xab\x55\x67\x9c\x89\x7c\x03\xb0" |
| 18047 | "\x73\x59\xc5\x81\xf5\x18\x17\x5c" |
| 18048 | "\x89\xf3\x78\x35\x44\x62\x78\x72" |
| 18049 | "\xd0\x96\xeb\x31\xe7\x87\x77\x14" |
| 18050 | "\x99\x51\xf2\x59\x26\x9e\xb5\xa6" |
| 18051 | "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a" |
| 18052 | "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe" |
| 18053 | "\x17\xd4\x84\xa0\xac\xb5\xc7\xda" |
| 18054 | "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d" |
| 18055 | "\xfb\x79\x2e\x04\x2d\x50\x28\x83" |
| 18056 | "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a" |
| 18057 | "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c" |
| 18058 | "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92" |
| 18059 | "\xd2\x49\x77\x81\x6d\x90\x70\xae" |
| 18060 | "\x98\xa1\x03\x0d\x6b\xb9\x77\x14" |
| 18061 | "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2" |
| 18062 | "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f" |
| 18063 | "\x65\x54\xa4\x7a\x42\xdc\x18\x0d" |
| 18064 | "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b" |
| 18065 | "\x45\x42\x27\x75\x50\xe5\xee\xb8" |
| 18066 | "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c" |
| 18067 | "\x3c\xe3\x0d\x80\x01\xba\x0d\x29" |
| 18068 | "\xd8\x3c\xe9\x13\x16\x57\xe6\xea" |
| 18069 | "\x94\x52\xe7\x00\x4d\x30\xb0\x0f" |
| 18070 | "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44" |
| 18071 | "\xe1\x2f\xfd\x88\xed\x43\xe7\x52" |
| 18072 | "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7" |
| 18073 | "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3" |
| 18074 | "\xdc\x9b\x2f\x01\x56\x36\x09\xc5" |
| 18075 | "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03" |
| 18076 | "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a" |
| 18077 | "\xa9\x21\x2b\x92\x94\x87\x62\x57" |
| 18078 | "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84" |
| 18079 | "\x3b\x9e\x72\x02\xd7\xcc\x09\x56" |
| 18080 | "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8" |
| 18081 | "\xd2\x0d\x61\xcb\xef\xce\x0d\x05" |
| 18082 | "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93" |
| 18083 | "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1" |
| 18084 | "\xec\xfc\x89\xf9\x64\xb0\x22\xbf" |
| 18085 | "\x9e\x55\x46\x9f\x7c\x50\x8e\x84" |
| 18086 | "\x54\x20\x98\xd7\x6c\x40\x1e\xdb" |
| 18087 | "\x69\x34\x78\x61\x24\x21\x9c\x8a" |
| 18088 | "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35" |
| 18089 | "\x86\x13\xb1\x6c\x64\x2e\x41\xa5" |
| 18090 | "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e" |
| 18091 | "\x8a\x59\x94\x3c\xcf\x36\x27\x82" |
| 18092 | "\xc2\x45\xee\x58\xcd\x88\xb4\xec" |
| 18093 | "\xde\xb2\x96\x0a\xaf\x38\x6f\x88" |
| 18094 | "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a" |
| 18095 | "\xb1\x95\x28\x86\x20\xe9\x17\x49" |
| 18096 | "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1" |
| 18097 | "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b" |
| 18098 | "\xdb\x7c\x73\x10\xb9\xba\x89\x76" |
| 18099 | "\x54\xae\x7d\x71\xb3\x93\xf6\x32" |
| 18100 | "\xe6\x47\x43\x55\xac\xa0\x0d\xc2" |
| 18101 | "\x93\x27\x4a\x8e\x0e\x74\x15\xc7" |
| 18102 | "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e" |
| 18103 | "\xea\x8f\x85\x6d\x3a\x12\x4f\x72" |
| 18104 | "\x69\x58\x7a\x80\xbb\xb5\x97\xf3" |
| 18105 | "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79" |
| 18106 | "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62" |
| 18107 | "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0" |
| 18108 | "\x79\x00\xa8\x6c\x29\xd9\x18\x24" |
| 18109 | "\x36\xa2\x46\xc0\x96\x65\x7f\xbd" |
| 18110 | "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4" |
| 18111 | "\xc5\xb4\xe2\x12\xed\x69\xed\x4f" |
| 18112 | "\x26\x2c\x39\x52\x89\x98\xe7\x2c" |
| 18113 | "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a" |
| 18114 | "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b" |
| 18115 | "\x95\x0d\x3b\x09\x6e\xee\x83\x5d" |
| 18116 | "\x32\x4d\xed\xab\xfa\x98\x14\x4e" |
| 18117 | "\xc3\x15\x45\x53\x61\xc4\x93\xbd" |
| 18118 | "\x90\xf4\x99\x95\x4c\xe6\x76\x92" |
| 18119 | "\x29\x90\x46\x30\x92\x69\x7d\x13" |
| 18120 | "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f" |
| 18121 | "\x63\x40\x36\x5f\x09\xe2\x78\xf8" |
| 18122 | "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24" |
| 18123 | "\xa8\x89\x32\x5c\x37\x25\x1d\xb2" |
| 18124 | "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c" |
| 18125 | "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2" |
| 18126 | "\x85\x8e\xbf\xf8\xde\x92\xa0\xae" |
| 18127 | "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e" |
| 18128 | "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e" |
| 18129 | "\x37\x2f\xe2\x94\x32\xaf\xa0\x23" |
| 18130 | "\x49\xe4\xc0\xb3\xac\x00\x8f\x36" |
| 18131 | "\x05\xc4\xa6\x96\xec\x05\x98\x4f" |
| 18132 | "\x96\x67\x57\x1f\x20\x86\x1b\x2d" |
| 18133 | "\x69\xe4\x29\x93\x66\x5f\xaf\x6b" |
| 18134 | "\x88\x26\x2c\x67\x02\x4b\x52\xd0" |
| 18135 | "\x83\x7a\x43\x1f\xc0\x71\x15\x25" |
| 18136 | "\x77\x65\x08\x60\x11\x76\x4c\x8d" |
| 18137 | "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a" |
| 18138 | "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3" |
| 18139 | "\x03\xd1\x24\x95\xec\x6d\xab\x38" |
| 18140 | "\x72\xce\xe2\x8b\x33\xd7\x51\x09" |
| 18141 | "\xdc\x45\xe0\x09\x96\x32\xf3\xc4" |
| 18142 | "\x84\xdc\x73\x73\x2d\x1b\x11\x98" |
| 18143 | "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d" |
| 18144 | "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74" |
| 18145 | "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a" |
| 18146 | "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96" |
| 18147 | "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1" |
| 18148 | "\x62\x8f\x7a\x73\x32\xab\xc8\x18" |
| 18149 | "\x69\xe3\x34\x30\xdf\x13\xa6\xe5" |
| 18150 | "\xe8\x0e\x67\x7f\x81\x11\xb4\x60" |
| 18151 | "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b" |
| 18152 | "\xde\x39\xa4\x01\x72\x63\xf3\xd1" |
| 18153 | "\x64\x4e\xdf\xfc\x27\x92\x37\x0d" |
| 18154 | "\x57\xcd\x11\x4f\x11\x04\x8e\x1d" |
| 18155 | "\x16\xf7\xcd\x92\x9a\x99\x30\x14" |
| 18156 | "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8" |
| 18157 | "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f" |
| 18158 | "\xe5\x79\x81\x73\xcd\x43\x59\x68" |
| 18159 | "\x73\x02\x3b\x78\x21\x72\x43\x00" |
| 18160 | "\x49\x17\xf7\x00\xaf\x68\x24\x53" |
| 18161 | "\x05\x0a\xc3\x33\xe0\x33\x3f\x69" |
| 18162 | "\xd2\x84\x2f\x0b\xed\xde\x04\xf4" |
| 18163 | "\x11\x94\x13\x69\x51\x09\x28\xde" |
| 18164 | "\x57\x5c\xef\xdc\x9a\x49\x1c\x17" |
| 18165 | "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d" |
| 18166 | "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7" |
| 18167 | "\xc9\x8d\xa3\x36\x34\x8a\x77\x13" |
| 18168 | "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e" |
| 18169 | "\x05\xa1\x7b\x0c\xcb\x74\x47\x31" |
| 18170 | "\x62\x03\x43\xf1\x87\xb4\xb0\x85" |
| 18171 | "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b" |
| 18172 | "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f" |
| 18173 | "\x73\xac\xe6\x07\xee\xc1\xa1\xd6" |
| 18174 | "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1" |
| 18175 | "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3" |
| 18176 | "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55" |
| 18177 | "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b" |
| 18178 | "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38" |
| 18179 | "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2" |
| 18180 | "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7" |
| 18181 | "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e" |
| 18182 | "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3" |
| 18183 | "\x69\xdc\xab\x24\x57\x60\x47\xc1" |
| 18184 | "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe" |
| 18185 | "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb" |
| 18186 | "\xd6\x9d\x99\x69\xab\x7a\x07\x0c" |
| 18187 | "\x65\xe7\xc4\x08\x96\xe2\xa5\x01" |
| 18188 | "\x3f\x46\x07\x05\x7e\xe8\x9a\x90" |
| 18189 | "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e" |
| 18190 | "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b" |
| 18191 | "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c" |
| 18192 | "\x26\x10\x8f\x3d\x80\xe9\x58\xf7" |
| 18193 | "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99" |
| 18194 | "\x63\x19\x3d\xd5\xec\x1b\x77\x69" |
| 18195 | "\x98\xf6\xe4\x5f\x67\x17\x4b\x09" |
| 18196 | "\x85\x62\x82\x70\x18\xe2\x9a\x78" |
| 18197 | "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb" |
| 18198 | "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8" |
| 18199 | "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f" |
| 18200 | "\x35\xf3\x61\x06\x72\x84\xc4\x32" |
| 18201 | "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02" |
| 18202 | "\x04\xc2\xde\x57\x64\x60\x8d\xcf" |
| 18203 | "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01" |
| 18204 | "\xd6\x28\x8f\x99\xbc\x46\xeb\x05" |
| 18205 | "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c" |
| 18206 | "\xb3\x71\xa0\xde\xca\x96\xf1\x78" |
| 18207 | "\x49\xa2\x99\x81\x80\x5c\x01\xf5" |
| 18208 | "\xa0\xa2\x56\x63\xe2\x70\x07\xa5" |
| 18209 | "\x95\xd6\x85\xeb\x36\x9e\xa9\x51" |
| 18210 | "\x66\x56\x5f\x1d\x02\x19\xe2\xf6" |
| 18211 | "\x4f\x73\x38\x09\x75\x64\x48\xe0" |
| 18212 | "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94" |
| 18213 | "\xfe\x16\x26\x62\x49\x74\xf4\xb0" |
| 18214 | "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81" |
| 18215 | "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81" |
| 18216 | "\x79\x99\x77\x01\x3b\xe9\xa2\xb6" |
| 18217 | "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e" |
| 18218 | "\x8f\x06\x55\x2c\x6c\xdc\x92\x87" |
| 18219 | "\x64\x3b\x4b\x19\xa1\x13\x64\x1d" |
| 18220 | "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b" |
| 18221 | "\x1a\x86\x6d\x37\x52\x02\xc2\xe0" |
| 18222 | "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9" |
| 18223 | "\xef\xa0\x54\xe4\x5e\x16\x53\x81" |
| 18224 | "\x70\x62\x10\xaf\xde\xb8\xb5\xd3" |
| 18225 | "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07" |
| 18226 | "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4" |
| 18227 | "\x26\xa7\xa3\x93\x86\xb2\x04\x1e" |
| 18228 | "\x53\x5d\x86\xd6\xde\x65\xca\xe3" |
| 18229 | "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83" |
| 18230 | "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6" |
| 18231 | "\x37\x7a\x93\x7a\x50\x11\x9f\x96" |
| 18232 | "\x86\x25\xfd\xac\xdc\xbe\x18\x93" |
| 18233 | "\x19\x6b\xec\x58\x4f\xb9\x75\xa7" |
| 18234 | "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab" |
| 18235 | "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6" |
| 18236 | "\x03\xfb\x03\x6a\xea\x66\xbf\xd4" |
| 18237 | "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c" |
| 18238 | "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80" |
| 18239 | "\x24\x6d\xa0\xef\x25\x7c\xb7\xea" |
| 18240 | "\xce\x4d\x5f\x18\x60\xce\x87\x22" |
| 18241 | "\x66\x2f\xd5\xdd\xdd\x02\x21\x75" |
| 18242 | "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7" |
| 18243 | "\x32\xd8\xaf\x1e\x07\x77\x51\x96" |
| 18244 | "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67" |
| 18245 | "\xea\x17\x0b\x10\xd2\x3f\x28\x25" |
| 18246 | "\x4f\x05\x77\x02\x14\x69\xf0\x2c" |
| 18247 | "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b" |
| 18248 | "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3" |
| 18249 | "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12" |
| 18250 | "\x4c\x21\x87\xcb\xc9\x1d\x16\x96" |
| 18251 | "\x07\x6f\x23\x54\xb9\x6f\x79\xe5" |
| 18252 | "\x64\xc0\x64\xda\xb1\xae\xdd\x60" |
| 18253 | "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0" |
| 18254 | "\x92\x61\xd0\x48\x81\xed\x5e\x1d" |
| 18255 | "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d" |
| 18256 | "\x7f\x83\x73\xb6\x70\x18\x65\x3e" |
| 18257 | "\x2f\x0e\x7a\x12\x39\x98\xab\xd8" |
| 18258 | "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd" |
| 18259 | "\xf0\x03\x01\x1c\x85\x35\x9f\xeb" |
| 18260 | "\x19\x63\xa1\xaf\xfe\x2d\x35\x50" |
| 18261 | "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe" |
| 18262 | "\xc1\xac\x07\x7c\x98\x4f\xbe\x57" |
| 18263 | "\xa7\x22\xec\xe2\x7e\x29\x09\x53" |
| 18264 | "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14" |
| 18265 | "\xce\x54\xf9\x18\x58\xb5\xff\x44" |
| 18266 | "\x05\x9d\xce\x1b\xb6\x82\x23\xc8" |
| 18267 | "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65" |
| 18268 | "\x94\xf0\x63\x06\x0e\xef\x8c\xbd" |
| 18269 | "\xff\xfd\xb0\x21\x6e\x57\x05\x75" |
| 18270 | "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50" |
| 18271 | "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b" |
| 18272 | "\x80\x8c\xc8\x78\x40\x24\x4b\x89" |
| 18273 | "\x30\xce\x7a\x97\x0e\xc4\xaf\xef" |
| 18274 | "\x9b\xb4\xcd\x66\x74\x14\x04\x2b" |
| 18275 | "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c" |
| 18276 | "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d" |
| 18277 | "\xa7\x20\xeb\x86\x52\xb7\x67\xd8" |
| 18278 | "\x0c\xd6\x04\x14\xde\x51\x74\x75" |
| 18279 | "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad" |
| 18280 | "\x4f\xef\xa0\x0f\x70\x00\x6d\x13" |
| 18281 | "\x19\x1d\x41\x50\xe9\xd8\xf0\x32" |
| 18282 | "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf" |
| 18283 | "\x75\x46\x65\x4e\x07\x34\x37\xa3" |
| 18284 | "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f" |
| 18285 | "\x69\x24\x0e\x38\x67\x43\x8c\xde" |
| 18286 | "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f" |
| 18287 | "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde" |
| 18288 | "\x64\xb1\xdb\xee\x00\x50\x77\xe1" |
| 18289 | "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3" |
| 18290 | "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b" |
| 18291 | "\x6d\x55\xf0\xfc\x88\x54\x4e\x89" |
| 18292 | "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8" |
| 18293 | "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05" |
| 18294 | "\x91\x7d\x62\x64\x96\x72\xde\xfc" |
| 18295 | "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b" |
| 18296 | "\x1d\x08\x57\xce\x09\xb8\xf6\xcd" |
| 18297 | "\x8d\x95\xf2\x20\xbf\x0f\x20\x57" |
| 18298 | "\x98\x81\x84\x4f\x15\x5c\x76\xe7" |
| 18299 | "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78" |
| 18300 | "\x74\x77\xc3\x09\x4b\x5d\x48\xe4" |
| 18301 | "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf" |
| 18302 | "\x31\x32\x44\xa4\xe5\x0e\x1a\x98" |
| 18303 | "\x94\xc4\xf0\xff\xae\x3e\x44\xe8" |
| 18304 | "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f" |
| 18305 | "\x28\xc1\x37\x5f\x31\xd2\xb9\x33" |
| 18306 | "\xb1\xb2\x52\x94\x75\x2c\x29\x59" |
| 18307 | "\x06\xc2\x25\xe8\x71\x65\x4e\xed" |
| 18308 | "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7" |
| 18309 | "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a" |
| 18310 | "\xe0\x50\x40\x96\x35\x63\xe4\x0b" |
| 18311 | "\x76\xbd\xa4\x65\x00\x1b\x57\x88" |
| 18312 | "\xae\xed\x39\x88\x42\x11\x3c\xed" |
| 18313 | "\x85\x67\x7d\xb9\x68\x82\xe9\x43" |
| 18314 | "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f" |
| 18315 | "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e" |
| 18316 | "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8" |
| 18317 | "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd" |
| 18318 | "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60" |
| 18319 | "\xce\x20\x56\x32\xc6\xc5\x99\x1f" |
| 18320 | "\x09\xe6\x4e\x18\x1a\x15\x13\xa8" |
| 18321 | "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26" |
| 18322 | "\x66\xf8\x3d\x18\x74\x70\x66\x7a" |
| 18323 | "\x34\x17\xde\xba\x47\xf1\x06\x18" |
| 18324 | "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77" |
| 18325 | "\xe0\x3b\x78\x62\x66\xc9\x10\xea" |
| 18326 | "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e" |
| 18327 | "\x1d\xe2\x65\x61\x50\x9c\xd7\x05" |
| 18328 | "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5" |
| 18329 | "\x63\x4f\x20\x0c\x07\x17\x33\x5e" |
| 18330 | "\x03\x9a\x53\x0f\x2e\x55\xfe\x50" |
| 18331 | "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae" |
| 18332 | "\x58\xef\x15\xa9\x83\xd9\x46\xb1" |
| 18333 | "\x42\xaa\xf5\x02\x6c\xce\x92\x06" |
| 18334 | "\x1b\xdb\x66\x45\x91\x79\xc2\x2d" |
| 18335 | "\xe6\x53\xd3\x14\xfd\xbb\x44\x63" |
| 18336 | "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d" |
| 18337 | "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b" |
| 18338 | "\xfe\xd3\xef\x60\x83\xf6\x8e\x70" |
| 18339 | "\xb6\x67\xc7\x77\xed\x23\xef\x4c" |
| 18340 | "\xf0\xed\x2d\x07\x59\x6f\xc1\x01" |
| 18341 | "\x34\x37\x08\xab\xd9\x1f\x09\xb1" |
| 18342 | "\xce\x5b\x17\xff\x74\xf8\x9c\xd5" |
| 18343 | "\x2c\x56\x39\x79\x0f\x69\x44\x75" |
| 18344 | "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d" |
| 18345 | "\x90\x17\x77\x86\x5a\x3f\xd9\xd1" |
| 18346 | "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f" |
| 18347 | "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7" |
| 18348 | "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41" |
| 18349 | "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d" |
| 18350 | "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90" |
| 18351 | "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06" |
| 18352 | "\x63\x9b\xce\x61\x24\x79\xc0\x70" |
| 18353 | "\x52\xd0\xb6\xd4\x28\x95\x24\x87" |
| 18354 | "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52" |
| 18355 | "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42" |
| 18356 | "\xf7\xd5\xfd\xad\x06\x32\x9f\xba" |
| 18357 | "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38" |
| 18358 | "\x74\x56\x58\x40\x02\x37\x52\x2c" |
| 18359 | "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38" |
| 18360 | "\x41\x5e\x0c\x35\xe2\x11\xd1\x13" |
| 18361 | "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0" |
| 18362 | "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3" |
| 18363 | "\x24\x90\xec\x58\xd2\x09\xc7\x2d" |
| 18364 | "\xed\x38\x80\x36\x72\x43\x27\x49" |
| 18365 | "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30" |
| 18366 | "\x7d\xb6\x82\x37\x86\x92\x86\x3e" |
| 18367 | "\x08\xb2\x28\x5a\x55\x44\x24\x7d" |
| 18368 | "\x40\x48\x8a\xb6\x89\x58\x08\xa0" |
| 18369 | "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2" |
| 18370 | "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b" |
| 18371 | "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3" |
| 18372 | "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81" |
| 18373 | "\x14\x32\x45\x05\xe0\xdb\x9f\x75" |
| 18374 | "\x85\xb4\x6a\xfc\x95\xe3\x54\x22" |
| 18375 | "\x12\xee\x30\xfe\xd8\x30\xef\x34" |
| 18376 | "\x50\xab\x46\x30\x98\x2f\xb7\xc0" |
| 18377 | "\x15\xa2\x83\xb6\xf2\x06\x21\xa2" |
| 18378 | "\xc3\x26\x37\x14\xd1\x4d\xb5\x10" |
| 18379 | "\x52\x76\x4d\x6a\xee\xb5\x2b\x15" |
| 18380 | "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa" |
| 18381 | "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e" |
| 18382 | "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f" |
| 18383 | "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3" |
| 18384 | "\x02\x9d\x27\x1f\xef\x85\x05\x8d" |
| 18385 | "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8" |
| 18386 | "\xa1\x75\xa0\xd8\x06\x47\x14\xef" |
| 18387 | "\xaa\x61\xcf\x26\x15\xad\xd8\xa3" |
| 18388 | "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf" |
| 18389 | "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e" |
| 18390 | "\x42\xee\xb4\x2f\x51\xff\x7b\x2e" |
| 18391 | "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc" |
| 18392 | "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16" |
| 18393 | "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0" |
| 18394 | "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02" |
| 18395 | "\xac\x82\x93\x6e\xb6\x1c\x28\xfc" |
| 18396 | "\x44\x12\xfb\x73\x77\xd4\x13\x39" |
| 18397 | "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0" |
| 18398 | "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b" |
| 18399 | "\x41\x01\x18\x5d\x5d\x07\x97\xa6" |
| 18400 | "\x4b\xef\x31\x18\xea\xac\xb1\x84" |
| 18401 | "\x21\xed\xda\x86", |
| 18402 | .rlen = 4100, |
| 18403 | .np = 2, |
| 18404 | .tap = { 4064, 36 }, |
| 18405 | }, |
| 18406 | }; |
| 18407 | |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 18408 | static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 18409 | { /* From RFC 3686 */ |
| 18410 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 18411 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 18412 | "\x00\x00\x00\x30", |
| 18413 | .klen = 20, |
| 18414 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 18415 | .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 18416 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 18417 | .ilen = 16, |
| 18418 | .result = "Single block msg", |
| 18419 | .rlen = 16, |
| 18420 | }, { |
| 18421 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 18422 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 18423 | "\x00\x6c\xb6\xdb", |
| 18424 | .klen = 20, |
| 18425 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 18426 | .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 18427 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 18428 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 18429 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 18430 | .ilen = 32, |
| 18431 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18432 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18433 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18434 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 18435 | .rlen = 32, |
| 18436 | }, { |
| 18437 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 18438 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 18439 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 18440 | "\x00\x00\x00\x48", |
| 18441 | .klen = 28, |
| 18442 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 18443 | .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 18444 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 18445 | .ilen = 16, |
| 18446 | .result = "Single block msg", |
| 18447 | .rlen = 16, |
| 18448 | }, { |
| 18449 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 18450 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 18451 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 18452 | "\x00\x96\xb0\x3b", |
| 18453 | .klen = 28, |
| 18454 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 18455 | .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 18456 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 18457 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 18458 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 18459 | .ilen = 32, |
| 18460 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18461 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18462 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18463 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 18464 | .rlen = 32, |
| 18465 | }, { |
| 18466 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 18467 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 18468 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 18469 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 18470 | "\x00\x00\x00\x60", |
| 18471 | .klen = 36, |
| 18472 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 18473 | .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 18474 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 18475 | .ilen = 16, |
| 18476 | .result = "Single block msg", |
| 18477 | .rlen = 16, |
| 18478 | }, { |
| 18479 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 18480 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 18481 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 18482 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 18483 | "\x00\xfa\xac\x24", |
| 18484 | .klen = 36, |
| 18485 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 18486 | .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 18487 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 18488 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 18489 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 18490 | .ilen = 32, |
| 18491 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18492 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18493 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18494 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 18495 | .rlen = 32, |
| 18496 | }, |
| 18497 | }; |
| 18498 | |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 18499 | static struct cipher_testvec aes_ofb_enc_tv_template[] = { |
| 18500 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 18501 | { |
| 18502 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 18503 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 18504 | .klen = 16, |
| 18505 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 18506 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 18507 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18508 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18509 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18510 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18511 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18512 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18513 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18514 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18515 | .ilen = 64, |
| 18516 | .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 18517 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 18518 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 18519 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 18520 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 18521 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 18522 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 18523 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 18524 | .rlen = 64, |
| 18525 | } |
| 18526 | }; |
| 18527 | |
| 18528 | static struct cipher_testvec aes_ofb_dec_tv_template[] = { |
| 18529 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 18530 | { |
| 18531 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 18532 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 18533 | .klen = 16, |
| 18534 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 18535 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 18536 | .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 18537 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 18538 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 18539 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 18540 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 18541 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 18542 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 18543 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 18544 | .ilen = 64, |
| 18545 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18546 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18547 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18548 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18549 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18550 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18551 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18552 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18553 | .rlen = 64, |
| 18554 | } |
| 18555 | }; |
| 18556 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 18557 | static struct aead_testvec aes_gcm_enc_tv_template[] = { |
| 18558 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 18559 | .key = zeroed_string, |
| 18560 | .klen = 16, |
| 18561 | .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61" |
| 18562 | "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a", |
| 18563 | .rlen = 16, |
| 18564 | }, { |
| 18565 | .key = zeroed_string, |
| 18566 | .klen = 16, |
| 18567 | .input = zeroed_string, |
| 18568 | .ilen = 16, |
| 18569 | .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92" |
| 18570 | "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78" |
| 18571 | "\xab\x6e\x47\xd4\x2c\xec\x13\xbd" |
| 18572 | "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf", |
| 18573 | .rlen = 32, |
| 18574 | }, { |
| 18575 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18576 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 18577 | .klen = 16, |
| 18578 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18579 | "\xde\xca\xf8\x88", |
| 18580 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18581 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18582 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18583 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18584 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18585 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18586 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18587 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 18588 | .ilen = 64, |
| 18589 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 18590 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 18591 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 18592 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 18593 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 18594 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 18595 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 18596 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 18597 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 18598 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 18599 | .rlen = 80, |
| 18600 | }, { |
| 18601 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18602 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 18603 | .klen = 16, |
| 18604 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18605 | "\xde\xca\xf8\x88", |
| 18606 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18607 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18608 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18609 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18610 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18611 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18612 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18613 | "\xba\x63\x7b\x39", |
| 18614 | .ilen = 60, |
| 18615 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18616 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18617 | "\xab\xad\xda\xd2", |
| 18618 | .alen = 20, |
| 18619 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 18620 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 18621 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 18622 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 18623 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 18624 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 18625 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 18626 | "\x3d\x58\xe0\x91" |
| 18627 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 18628 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 18629 | .rlen = 76, |
| 18630 | }, { |
| 18631 | .key = zeroed_string, |
| 18632 | .klen = 24, |
| 18633 | .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b" |
| 18634 | "\xa0\x0e\xd1\xf3\x12\x57\x24\x35", |
| 18635 | .rlen = 16, |
| 18636 | }, { |
| 18637 | .key = zeroed_string, |
| 18638 | .klen = 24, |
| 18639 | .input = zeroed_string, |
| 18640 | .ilen = 16, |
| 18641 | .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 18642 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 18643 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 18644 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 18645 | .rlen = 32, |
| 18646 | }, { |
| 18647 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18648 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18649 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 18650 | .klen = 24, |
| 18651 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18652 | "\xde\xca\xf8\x88", |
| 18653 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18654 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18655 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18656 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18657 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18658 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18659 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18660 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 18661 | .ilen = 64, |
| 18662 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 18663 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 18664 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 18665 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 18666 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 18667 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 18668 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 18669 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 18670 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 18671 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 18672 | .rlen = 80, |
| 18673 | }, { |
| 18674 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18675 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18676 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 18677 | .klen = 24, |
| 18678 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18679 | "\xde\xca\xf8\x88", |
| 18680 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18681 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18682 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18683 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18684 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18685 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18686 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18687 | "\xba\x63\x7b\x39", |
| 18688 | .ilen = 60, |
| 18689 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18690 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18691 | "\xab\xad\xda\xd2", |
| 18692 | .alen = 20, |
| 18693 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 18694 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 18695 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 18696 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 18697 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 18698 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 18699 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 18700 | "\xcc\xda\x27\x10" |
| 18701 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 18702 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 18703 | .rlen = 76, |
| 18704 | .np = 2, |
| 18705 | .tap = { 32, 28 }, |
| 18706 | .anp = 2, |
| 18707 | .atap = { 8, 12 } |
| 18708 | }, { |
| 18709 | .key = zeroed_string, |
| 18710 | .klen = 32, |
| 18711 | .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9" |
| 18712 | "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b", |
| 18713 | .rlen = 16, |
| 18714 | } |
| 18715 | }; |
| 18716 | |
| 18717 | static struct aead_testvec aes_gcm_dec_tv_template[] = { |
| 18718 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 18719 | .key = zeroed_string, |
| 18720 | .klen = 32, |
| 18721 | .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e" |
| 18722 | "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18" |
| 18723 | "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0" |
| 18724 | "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19", |
| 18725 | .ilen = 32, |
| 18726 | .result = zeroed_string, |
| 18727 | .rlen = 16, |
| 18728 | }, { |
| 18729 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18730 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18731 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18732 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 18733 | .klen = 32, |
| 18734 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18735 | "\xde\xca\xf8\x88", |
| 18736 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 18737 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 18738 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 18739 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 18740 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 18741 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 18742 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 18743 | "\xbc\xc9\xf6\x62\x89\x80\x15\xad" |
| 18744 | "\xb0\x94\xda\xc5\xd9\x34\x71\xbd" |
| 18745 | "\xec\x1a\x50\x22\x70\xe3\xcc\x6c", |
| 18746 | .ilen = 80, |
| 18747 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18748 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18749 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18750 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18751 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18752 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18753 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18754 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 18755 | .rlen = 64, |
| 18756 | }, { |
| 18757 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18758 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18759 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18760 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 18761 | .klen = 32, |
| 18762 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18763 | "\xde\xca\xf8\x88", |
| 18764 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 18765 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 18766 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 18767 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 18768 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 18769 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 18770 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 18771 | "\xbc\xc9\xf6\x62" |
| 18772 | "\x76\xfc\x6e\xce\x0f\x4e\x17\x68" |
| 18773 | "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b", |
| 18774 | .ilen = 76, |
| 18775 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18776 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18777 | "\xab\xad\xda\xd2", |
| 18778 | .alen = 20, |
| 18779 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18780 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18781 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18782 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18783 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18784 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18785 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18786 | "\xba\x63\x7b\x39", |
| 18787 | .rlen = 60, |
| 18788 | .np = 2, |
| 18789 | .tap = { 48, 28 }, |
| 18790 | .anp = 3, |
| 18791 | .atap = { 8, 8, 4 } |
| 18792 | }, { |
| 18793 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18794 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 18795 | .klen = 16, |
| 18796 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18797 | "\xde\xca\xf8\x88", |
| 18798 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 18799 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 18800 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 18801 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 18802 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 18803 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 18804 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 18805 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 18806 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 18807 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 18808 | .ilen = 80, |
| 18809 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18810 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18811 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18812 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18813 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18814 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18815 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18816 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 18817 | .rlen = 64, |
| 18818 | }, { |
| 18819 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18820 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 18821 | .klen = 16, |
| 18822 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18823 | "\xde\xca\xf8\x88", |
| 18824 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 18825 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 18826 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 18827 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 18828 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 18829 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 18830 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 18831 | "\x3d\x58\xe0\x91" |
| 18832 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 18833 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 18834 | .ilen = 76, |
| 18835 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18836 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18837 | "\xab\xad\xda\xd2", |
| 18838 | .alen = 20, |
| 18839 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18840 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18841 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18842 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18843 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18844 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18845 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18846 | "\xba\x63\x7b\x39", |
| 18847 | .rlen = 60, |
| 18848 | }, { |
| 18849 | .key = zeroed_string, |
| 18850 | .klen = 24, |
| 18851 | .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 18852 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 18853 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 18854 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 18855 | .ilen = 32, |
| 18856 | .result = zeroed_string, |
| 18857 | .rlen = 16, |
| 18858 | }, { |
| 18859 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18860 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18861 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 18862 | .klen = 24, |
| 18863 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18864 | "\xde\xca\xf8\x88", |
| 18865 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 18866 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 18867 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 18868 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 18869 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 18870 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 18871 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 18872 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 18873 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 18874 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 18875 | .ilen = 80, |
| 18876 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18877 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18878 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18879 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18880 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18881 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18882 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18883 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 18884 | .rlen = 64, |
| 18885 | }, { |
| 18886 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18887 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18888 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 18889 | .klen = 24, |
| 18890 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 18891 | "\xde\xca\xf8\x88", |
| 18892 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 18893 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 18894 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 18895 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 18896 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 18897 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 18898 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 18899 | "\xcc\xda\x27\x10" |
| 18900 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 18901 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 18902 | .ilen = 76, |
| 18903 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18904 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 18905 | "\xab\xad\xda\xd2", |
| 18906 | .alen = 20, |
| 18907 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 18908 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 18909 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 18910 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 18911 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 18912 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 18913 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 18914 | "\xba\x63\x7b\x39", |
| 18915 | .rlen = 60, |
| 18916 | } |
| 18917 | }; |
| 18918 | |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 18919 | static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = { |
| 18920 | { /* Generated using Crypto++ */ |
| 18921 | .key = zeroed_string, |
| 18922 | .klen = 20, |
| 18923 | .iv = zeroed_string, |
| 18924 | .input = zeroed_string, |
| 18925 | .ilen = 16, |
| 18926 | .assoc = zeroed_string, |
| 18927 | .alen = 8, |
| 18928 | .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
| 18929 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 18930 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 18931 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
| 18932 | .rlen = 32, |
| 18933 | },{ |
| 18934 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18935 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18936 | "\x00\x00\x00\x00", |
| 18937 | .klen = 20, |
| 18938 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 18939 | "\x00\x00\x00\x00", |
| 18940 | .input = zeroed_string, |
| 18941 | .ilen = 16, |
| 18942 | .assoc = zeroed_string, |
| 18943 | .alen = 8, |
| 18944 | .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
| 18945 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 18946 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 18947 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
| 18948 | .rlen = 32, |
| 18949 | |
| 18950 | }, { |
| 18951 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18952 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18953 | "\x00\x00\x00\x00", |
| 18954 | .klen = 20, |
| 18955 | .iv = zeroed_string, |
| 18956 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 18957 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 18958 | .ilen = 16, |
| 18959 | .assoc = zeroed_string, |
| 18960 | .alen = 8, |
| 18961 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 18962 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 18963 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 18964 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
| 18965 | .rlen = 32, |
| 18966 | }, { |
| 18967 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18968 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18969 | "\x00\x00\x00\x00", |
| 18970 | .klen = 20, |
| 18971 | .iv = zeroed_string, |
| 18972 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 18973 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 18974 | .ilen = 16, |
| 18975 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 18976 | .alen = 8, |
| 18977 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 18978 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 18979 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 18980 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
| 18981 | .rlen = 32, |
| 18982 | }, { |
| 18983 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 18984 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 18985 | "\x00\x00\x00\x00", |
| 18986 | .klen = 20, |
| 18987 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 18988 | "\x00\x00\x00\x00", |
| 18989 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 18990 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 18991 | .ilen = 16, |
| 18992 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 18993 | .alen = 8, |
| 18994 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 18995 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 18996 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 18997 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
| 18998 | .rlen = 32, |
| 18999 | }, { |
| 19000 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19001 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19002 | "\x00\x00\x00\x00", |
| 19003 | .klen = 20, |
| 19004 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 19005 | "\x00\x00\x00\x00", |
| 19006 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19007 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19008 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19009 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19010 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19011 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19012 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19013 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19014 | .ilen = 64, |
| 19015 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19016 | .alen = 8, |
| 19017 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 19018 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 19019 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 19020 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 19021 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 19022 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 19023 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 19024 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 19025 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 19026 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
| 19027 | .rlen = 80, |
| 19028 | }, { |
| 19029 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19030 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19031 | "\x00\x00\x00\x00", |
| 19032 | .klen = 20, |
| 19033 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef" |
| 19034 | "\x00\x00\x00\x00", |
| 19035 | .input = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19036 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19037 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19038 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19039 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19040 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19041 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19042 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19043 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19044 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19045 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19046 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19047 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19048 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19049 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19050 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19051 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19052 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19053 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19054 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19055 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19056 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19057 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19058 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 19059 | .ilen = 192, |
| 19060 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 19061 | "\xaa\xaa\xaa\xaa", |
| 19062 | .alen = 12, |
| 19063 | .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 19064 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 19065 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 19066 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 19067 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 19068 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 19069 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 19070 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 19071 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 19072 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 19073 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 19074 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 19075 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 19076 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 19077 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 19078 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 19079 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 19080 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 19081 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 19082 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 19083 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 19084 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 19085 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 19086 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 19087 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 19088 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 19089 | .rlen = 208, |
| 19090 | } |
| 19091 | }; |
| 19092 | |
| 19093 | static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = { |
| 19094 | { /* Generated using Crypto++ */ |
| 19095 | .key = zeroed_string, |
| 19096 | .klen = 20, |
| 19097 | .iv = zeroed_string, |
| 19098 | .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
| 19099 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 19100 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 19101 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
| 19102 | .ilen = 32, |
| 19103 | .assoc = zeroed_string, |
| 19104 | .alen = 8, |
| 19105 | .result = zeroed_string, |
| 19106 | .rlen = 16, |
| 19107 | |
| 19108 | },{ |
| 19109 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19110 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19111 | "\x00\x00\x00\x00", |
| 19112 | .klen = 20, |
| 19113 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 19114 | "\x00\x00\x00\x00", |
| 19115 | .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
| 19116 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 19117 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 19118 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
| 19119 | .ilen = 32, |
| 19120 | .assoc = zeroed_string, |
| 19121 | .alen = 8, |
| 19122 | .result = zeroed_string, |
| 19123 | .rlen = 16, |
| 19124 | }, { |
| 19125 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19126 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19127 | "\x00\x00\x00\x00", |
| 19128 | .klen = 20, |
| 19129 | .iv = zeroed_string, |
| 19130 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 19131 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 19132 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 19133 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
| 19134 | .ilen = 32, |
| 19135 | .assoc = zeroed_string, |
| 19136 | .alen = 8, |
| 19137 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19138 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19139 | .rlen = 16, |
| 19140 | }, { |
| 19141 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19142 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19143 | "\x00\x00\x00\x00", |
| 19144 | .klen = 20, |
| 19145 | .iv = zeroed_string, |
| 19146 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 19147 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 19148 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 19149 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
| 19150 | .ilen = 32, |
| 19151 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19152 | .alen = 8, |
| 19153 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19154 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19155 | .rlen = 16, |
| 19156 | |
| 19157 | }, { |
| 19158 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19159 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19160 | "\x00\x00\x00\x00", |
| 19161 | .klen = 20, |
| 19162 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 19163 | "\x00\x00\x00\x00", |
| 19164 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 19165 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 19166 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 19167 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
| 19168 | .ilen = 32, |
| 19169 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19170 | .alen = 8, |
| 19171 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19172 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19173 | .rlen = 16, |
| 19174 | }, { |
| 19175 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19176 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19177 | "\x00\x00\x00\x00", |
| 19178 | .klen = 20, |
| 19179 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 19180 | "\x00\x00\x00\x00", |
| 19181 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 19182 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 19183 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 19184 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 19185 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 19186 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 19187 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 19188 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 19189 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 19190 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
| 19191 | .ilen = 80, |
| 19192 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19193 | .alen = 8, |
| 19194 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19195 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19196 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19197 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19198 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19199 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19200 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 19201 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 19202 | .rlen = 64, |
| 19203 | }, { |
| 19204 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19205 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19206 | "\x00\x00\x00\x00", |
| 19207 | .klen = 20, |
| 19208 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef" |
| 19209 | "\x00\x00\x00\x00", |
| 19210 | .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 19211 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 19212 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 19213 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 19214 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 19215 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 19216 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 19217 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 19218 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 19219 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 19220 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 19221 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 19222 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 19223 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 19224 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 19225 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 19226 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 19227 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 19228 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 19229 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 19230 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 19231 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 19232 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 19233 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 19234 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 19235 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 19236 | .ilen = 208, |
| 19237 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 19238 | "\xaa\xaa\xaa\xaa", |
| 19239 | .alen = 12, |
| 19240 | .result = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19241 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19242 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19243 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19244 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19245 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19246 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19247 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19248 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19249 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19250 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19251 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19252 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19253 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19254 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19255 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19256 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19257 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19258 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19259 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19260 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19261 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19262 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 19263 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 19264 | .rlen = 192, |
| 19265 | |
| 19266 | } |
| 19267 | }; |
| 19268 | |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 19269 | static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = { |
| 19270 | { /* From draft-mcgrew-gcm-test-01 */ |
| 19271 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 19272 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 19273 | "\x22\x43\x3c\x64", |
| 19274 | .klen = 20, |
| 19275 | .iv = zeroed_string, |
| 19276 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07", |
| 19277 | .alen = 8, |
| 19278 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 19279 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 19280 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 19281 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 19282 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 19283 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 19284 | "\x01\x02\x02\x01", |
| 19285 | .ilen = 52, |
| 19286 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 19287 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 19288 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 19289 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 19290 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 19291 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 19292 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 19293 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 19294 | "\xe4\x09\x9a\xaa", |
| 19295 | .rlen = 68, |
| 19296 | } |
| 19297 | }; |
| 19298 | |
| 19299 | static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = { |
| 19300 | { /* From draft-mcgrew-gcm-test-01 */ |
| 19301 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 19302 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 19303 | "\x22\x43\x3c\x64", |
| 19304 | .klen = 20, |
| 19305 | .iv = zeroed_string, |
| 19306 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07", |
| 19307 | .alen = 8, |
| 19308 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 19309 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 19310 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 19311 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 19312 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 19313 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 19314 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 19315 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 19316 | "\xe4\x09\x9a\xaa", |
| 19317 | .ilen = 68, |
| 19318 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 19319 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 19320 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 19321 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 19322 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 19323 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 19324 | "\x01\x02\x02\x01", |
| 19325 | .rlen = 52, |
| 19326 | }, { /* nearly same as previous, but should fail */ |
| 19327 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 19328 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 19329 | "\x22\x43\x3c\x64", |
| 19330 | .klen = 20, |
| 19331 | .iv = zeroed_string, |
| 19332 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07", |
| 19333 | .alen = 8, |
| 19334 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 19335 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 19336 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 19337 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 19338 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 19339 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 19340 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 19341 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 19342 | "\x00\x00\x00\x00", |
| 19343 | .ilen = 68, |
| 19344 | .novrfy = 1, |
| 19345 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 19346 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 19347 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 19348 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 19349 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 19350 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 19351 | "\x01\x02\x02\x01", |
| 19352 | .rlen = 52, |
| 19353 | }, |
| 19354 | }; |
| 19355 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19356 | static struct aead_testvec aes_ccm_enc_tv_template[] = { |
| 19357 | { /* From RFC 3610 */ |
| 19358 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19359 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19360 | .klen = 16, |
| 19361 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 19362 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19363 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 19364 | .alen = 8, |
| 19365 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19366 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19367 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 19368 | .ilen = 23, |
| 19369 | .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 19370 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 19371 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 19372 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 19373 | .rlen = 31, |
| 19374 | }, { |
| 19375 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19376 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19377 | .klen = 16, |
| 19378 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 19379 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19380 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19381 | "\x08\x09\x0a\x0b", |
| 19382 | .alen = 12, |
| 19383 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 19384 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 19385 | "\x1c\x1d\x1e\x1f", |
| 19386 | .ilen = 20, |
| 19387 | .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 19388 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 19389 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 19390 | "\x7d\x9c\x2d\x93", |
| 19391 | .rlen = 28, |
| 19392 | }, { |
| 19393 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19394 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19395 | .klen = 16, |
| 19396 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 19397 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19398 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 19399 | .alen = 8, |
| 19400 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19401 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19402 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 19403 | "\x20", |
| 19404 | .ilen = 25, |
| 19405 | .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 19406 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 19407 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 19408 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 19409 | "\x7e\x5f\x4e", |
| 19410 | .rlen = 35, |
| 19411 | }, { |
| 19412 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19413 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19414 | .klen = 16, |
| 19415 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 19416 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19417 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19418 | "\x08\x09\x0a\x0b", |
| 19419 | .alen = 12, |
| 19420 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 19421 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 19422 | "\x1c\x1d\x1e", |
| 19423 | .ilen = 19, |
| 19424 | .result = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 19425 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 19426 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 19427 | "\x4d\x99\x99\x88\xdd", |
| 19428 | .rlen = 29, |
| 19429 | }, { |
| 19430 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 19431 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 19432 | .klen = 16, |
| 19433 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 19434 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 19435 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 19436 | .alen = 8, |
| 19437 | .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 19438 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 19439 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 19440 | .ilen = 24, |
| 19441 | .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 19442 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 19443 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 19444 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 19445 | .rlen = 32, |
| 19446 | }, { |
| 19447 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 19448 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 19449 | .klen = 16, |
| 19450 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 19451 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 19452 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 19453 | "\x20\xea\x60\xc0", |
| 19454 | .alen = 12, |
| 19455 | .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 19456 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 19457 | "\x3a\x80\x3b\xa8\x7f", |
| 19458 | .ilen = 21, |
| 19459 | .result = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 19460 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 19461 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 19462 | "\x5a\xe0\x70\x45\x51", |
| 19463 | .rlen = 29, |
| 19464 | }, { |
| 19465 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 19466 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 19467 | .klen = 16, |
| 19468 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 19469 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 19470 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 19471 | .alen = 8, |
| 19472 | .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 19473 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 19474 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 19475 | .ilen = 23, |
| 19476 | .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 19477 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 19478 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 19479 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 19480 | "\xba", |
| 19481 | .rlen = 33, |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 19482 | }, { |
| 19483 | /* |
| 19484 | * This is the same vector as aes_ccm_rfc4309_enc_tv_template[0] |
| 19485 | * below but rewritten to use the ccm algorithm directly. |
| 19486 | */ |
| 19487 | .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05" |
| 19488 | "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e", |
| 19489 | .klen = 16, |
| 19490 | .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0", |
| 19491 | .alen = 0, |
| 19492 | .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93" |
| 19493 | "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e" |
| 19494 | "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c" |
| 19495 | "\x35\x2e\xad\xe0\x62\xf9\x91\xa1", |
| 19496 | .ilen = 32, |
| 19497 | .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8" |
| 19498 | "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1" |
| 19499 | "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a" |
| 19500 | "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32" |
| 19501 | "\xda\x24\xea\xd9\xa1\x39\x98\xfd" |
| 19502 | "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8", |
| 19503 | .rlen = 48, |
| 19504 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19505 | }; |
| 19506 | |
| 19507 | static struct aead_testvec aes_ccm_dec_tv_template[] = { |
| 19508 | { /* From RFC 3610 */ |
| 19509 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19510 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19511 | .klen = 16, |
| 19512 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 19513 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19514 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 19515 | .alen = 8, |
| 19516 | .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 19517 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 19518 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 19519 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 19520 | .ilen = 31, |
| 19521 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19522 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19523 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 19524 | .rlen = 23, |
| 19525 | }, { |
| 19526 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19527 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19528 | .klen = 16, |
| 19529 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 19530 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19531 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19532 | "\x08\x09\x0a\x0b", |
| 19533 | .alen = 12, |
| 19534 | .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 19535 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 19536 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 19537 | "\x7d\x9c\x2d\x93", |
| 19538 | .ilen = 28, |
| 19539 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 19540 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 19541 | "\x1c\x1d\x1e\x1f", |
| 19542 | .rlen = 20, |
| 19543 | }, { |
| 19544 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19545 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19546 | .klen = 16, |
| 19547 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 19548 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19549 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 19550 | .alen = 8, |
| 19551 | .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 19552 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 19553 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 19554 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 19555 | "\x7e\x5f\x4e", |
| 19556 | .ilen = 35, |
| 19557 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19558 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19559 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 19560 | "\x20", |
| 19561 | .rlen = 25, |
| 19562 | }, { |
| 19563 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19564 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 19565 | .klen = 16, |
| 19566 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 19567 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 19568 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19569 | "\x08\x09\x0a\x0b", |
| 19570 | .alen = 12, |
| 19571 | .input = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 19572 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 19573 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 19574 | "\x4d\x99\x99\x88\xdd", |
| 19575 | .ilen = 29, |
| 19576 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 19577 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 19578 | "\x1c\x1d\x1e", |
| 19579 | .rlen = 19, |
| 19580 | }, { |
| 19581 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 19582 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 19583 | .klen = 16, |
| 19584 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 19585 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 19586 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 19587 | .alen = 8, |
| 19588 | .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 19589 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 19590 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 19591 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 19592 | .ilen = 32, |
| 19593 | .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 19594 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 19595 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 19596 | .rlen = 24, |
| 19597 | }, { |
| 19598 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 19599 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 19600 | .klen = 16, |
| 19601 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 19602 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 19603 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 19604 | "\x20\xea\x60\xc0", |
| 19605 | .alen = 12, |
| 19606 | .input = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 19607 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 19608 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 19609 | "\x5a\xe0\x70\x45\x51", |
| 19610 | .ilen = 29, |
| 19611 | .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 19612 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 19613 | "\x3a\x80\x3b\xa8\x7f", |
| 19614 | .rlen = 21, |
| 19615 | }, { |
| 19616 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 19617 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 19618 | .klen = 16, |
| 19619 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 19620 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 19621 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 19622 | .alen = 8, |
| 19623 | .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 19624 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 19625 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 19626 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 19627 | "\xba", |
| 19628 | .ilen = 33, |
| 19629 | .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 19630 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 19631 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 19632 | .rlen = 23, |
| 19633 | }, |
| 19634 | }; |
| 19635 | |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 19636 | /* |
| 19637 | * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all |
| 19638 | * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of |
| 19639 | * Special Publication 800-38C's test vectors also use nonce lengths our |
| 19640 | * implementation doesn't support. The following are taken from fips cavs |
| 19641 | * fax files on hand at Red Hat. |
| 19642 | * |
| 19643 | * nb: actual key lengths are (klen - 3), the last 3 bytes are actually |
| 19644 | * part of the nonce which combine w/the iv, but need to be input this way. |
| 19645 | */ |
| 19646 | static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = { |
| 19647 | { |
| 19648 | .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05" |
| 19649 | "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e" |
| 19650 | "\x96\xac\x59", |
| 19651 | .klen = 19, |
| 19652 | .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24", |
| 19653 | .alen = 0, |
| 19654 | .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93" |
| 19655 | "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e" |
| 19656 | "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c" |
| 19657 | "\x35\x2e\xad\xe0\x62\xf9\x91\xa1", |
| 19658 | .ilen = 32, |
| 19659 | .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8" |
| 19660 | "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1" |
| 19661 | "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a" |
| 19662 | "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32" |
| 19663 | "\xda\x24\xea\xd9\xa1\x39\x98\xfd" |
| 19664 | "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8", |
| 19665 | .rlen = 48, |
| 19666 | }, { |
| 19667 | .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0" |
| 19668 | "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3" |
| 19669 | "\x4f\xa3\x19", |
| 19670 | .klen = 19, |
| 19671 | .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56", |
| 19672 | .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63" |
| 19673 | "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7" |
| 19674 | "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1" |
| 19675 | "\x0a\x63\x09\x78\xbc\x2c\x55\xde", |
| 19676 | .alen = 32, |
| 19677 | .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78" |
| 19678 | "\xa9\x28\x63\xba\x12\xa3\x14\x85" |
| 19679 | "\x57\x1e\x06\xc9\x7b\x21\xef\x76" |
| 19680 | "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e", |
| 19681 | .ilen = 32, |
| 19682 | .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19" |
| 19683 | "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab" |
| 19684 | "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff" |
| 19685 | "\x3b\xb5\xce\x53\xef\xde\xbb\x02" |
| 19686 | "\xa9\x86\x15\x6c\x13\xfe\xda\x0a" |
| 19687 | "\x22\xb8\x29\x3d\xd8\x39\x9a\x23", |
| 19688 | .rlen = 48, |
| 19689 | }, { |
| 19690 | .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1" |
| 19691 | "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75" |
| 19692 | "\x53\x14\x73\x66\x8d\x88\xf6\x80" |
| 19693 | "\xa0\x20\x35", |
| 19694 | .klen = 27, |
| 19695 | .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2", |
| 19696 | .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1" |
| 19697 | "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47" |
| 19698 | "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d" |
| 19699 | "\xd8\x9e\x2b\x56\x10\x23\x56\xe7", |
| 19700 | .alen = 32, |
| 19701 | .ilen = 0, |
| 19702 | .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc" |
| 19703 | "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b", |
| 19704 | .rlen = 16, |
| 19705 | }, { |
| 19706 | .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42" |
| 19707 | "\xef\x7a\xd3\xce\xfc\x84\x60\x62" |
| 19708 | "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01" |
| 19709 | "\xd6\x3c\x8c", |
| 19710 | .klen = 27, |
| 19711 | .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94", |
| 19712 | .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91" |
| 19713 | "\xb1\xb9\xda\x76\x9a\x78\x6d\x95" |
| 19714 | "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c" |
| 19715 | "\xe3\x00\x73\x69\x84\x69\x87\x79", |
| 19716 | .alen = 32, |
| 19717 | .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c" |
| 19718 | "\x43\x69\x3a\x2d\x8e\x70\xad\x7e" |
| 19719 | "\xe0\xe5\x46\x09\x80\x89\x13\xb2" |
| 19720 | "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b", |
| 19721 | .ilen = 32, |
| 19722 | .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62" |
| 19723 | "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f" |
| 19724 | "\x9b\x6a\x09\x70\xc1\x51\x83\xc2" |
| 19725 | "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e" |
| 19726 | "\xc7\x79\x11\x58\xe5\x6b\x20\x40" |
| 19727 | "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1", |
| 19728 | .rlen = 48, |
| 19729 | }, { |
| 19730 | .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a" |
| 19731 | "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a" |
| 19732 | "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e" |
| 19733 | "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b" |
| 19734 | "\x1e\x29\x91", |
| 19735 | .klen = 35, |
| 19736 | .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe", |
| 19737 | .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b" |
| 19738 | "\x78\x2b\x94\x02\x29\x0f\x42\x27" |
| 19739 | "\x6b\x75\xcb\x98\x34\x08\x7e\x79" |
| 19740 | "\xe4\x3e\x49\x0d\x84\x8b\x22\x87", |
| 19741 | .alen = 32, |
| 19742 | .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f" |
| 19743 | "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66" |
| 19744 | "\xbf\x17\x99\x62\x4a\x39\x27\x1f" |
| 19745 | "\x1d\xdc\x24\xae\x19\x2f\x98\x4c", |
| 19746 | .ilen = 32, |
| 19747 | .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96" |
| 19748 | "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6" |
| 19749 | "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f" |
| 19750 | "\xf0\x62\x17\x34\xf2\x1e\x8d\x75" |
| 19751 | "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d", |
| 19752 | .rlen = 40, |
| 19753 | }, { |
| 19754 | .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c" |
| 19755 | "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32" |
| 19756 | "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c" |
| 19757 | "\x09\x75\x9a\x9b\x3c\x9b\x27\x39" |
| 19758 | "\xf9\xd9\x4e", |
| 19759 | .klen = 35, |
| 19760 | .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50", |
| 19761 | .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b" |
| 19762 | "\x13\x02\x01\x0c\x83\x4c\x96\x35" |
| 19763 | "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94" |
| 19764 | "\xb0\x39\x36\xe6\x8f\x57\xe0\x13", |
| 19765 | .alen = 32, |
| 19766 | .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6" |
| 19767 | "\x83\x72\x07\x4f\xcf\xfa\x66\x89" |
| 19768 | "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27" |
| 19769 | "\x30\xdb\x75\x09\x93\xd4\x65\xe4", |
| 19770 | .ilen = 32, |
| 19771 | .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d" |
| 19772 | "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d" |
| 19773 | "\xcc\x63\x44\x25\x07\x78\x4f\x9e" |
| 19774 | "\x96\xb8\x88\xeb\xbc\x48\x1f\x06" |
| 19775 | "\x39\xaf\x39\xac\xd8\x4a\x80\x39" |
| 19776 | "\x7b\x72\x8a\xf7", |
| 19777 | .rlen = 44, |
| 19778 | }, { |
| 19779 | .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83" |
| 19780 | "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46" |
| 19781 | "\xf9\x8f\xad\xe3\x02\x13\x83\x77" |
| 19782 | "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b" |
| 19783 | "\x24\xa7\x8b", |
| 19784 | .klen = 35, |
| 19785 | .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5", |
| 19786 | .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f" |
| 19787 | "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d" |
| 19788 | "\xab\x90\x65\x8d\x8e\xca\x4d\x4f" |
| 19789 | "\x16\x0c\x40\x90\x4b\xc7\x36\x73", |
| 19790 | .alen = 32, |
| 19791 | .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92" |
| 19792 | "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d" |
| 19793 | "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2" |
| 19794 | "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a", |
| 19795 | .ilen = 32, |
| 19796 | .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13" |
| 19797 | "\xef\xbb\x80\x21\x04\x6c\x58\x09" |
| 19798 | "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7" |
| 19799 | "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf" |
| 19800 | "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d" |
| 19801 | "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8", |
| 19802 | .rlen = 48, |
| 19803 | }, |
| 19804 | }; |
| 19805 | |
| 19806 | static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = { |
| 19807 | { |
| 19808 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
| 19809 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9" |
| 19810 | "\xc6\xfb\x7d", |
| 19811 | .klen = 19, |
| 19812 | .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8", |
| 19813 | .alen = 0, |
| 19814 | .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b", |
| 19815 | .ilen = 8, |
| 19816 | .result = "\x00", |
| 19817 | .rlen = 0, |
| 19818 | .novrfy = 1, |
| 19819 | }, { |
| 19820 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
| 19821 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9" |
| 19822 | "\xaf\x94\x87", |
| 19823 | .klen = 19, |
| 19824 | .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68", |
| 19825 | .alen = 0, |
| 19826 | .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3", |
| 19827 | .ilen = 8, |
| 19828 | .result = "\x00", |
| 19829 | .rlen = 0, |
| 19830 | }, { |
| 19831 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
| 19832 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8" |
| 19833 | "\xc6\xfb\x7d", |
| 19834 | .klen = 19, |
| 19835 | .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8", |
| 19836 | .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f" |
| 19837 | "\x88\x94\x68\xb1\x78\x6b\x2b\xd6" |
| 19838 | "\x04\x1f\x4e\xed\x78\xd5\x33\x66" |
| 19839 | "\xd8\x94\x99\x91\x81\x54\x62\x57", |
| 19840 | .alen = 32, |
| 19841 | .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55" |
| 19842 | "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a" |
| 19843 | "\x86\xb0\x87\x6b\x62\x33\x8c\x34" |
| 19844 | "\xce\xab\x57\xcc\x79\x0b\xe0\x6f" |
| 19845 | "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51" |
| 19846 | "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5", |
| 19847 | .ilen = 48, |
| 19848 | .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb" |
| 19849 | "\x33\xe4\x73\xce\xd2\xfb\x95\x79" |
| 19850 | "\xe8\xb4\xb5\x77\x11\x10\x62\x6f" |
| 19851 | "\x6a\x82\xd1\x13\xec\xf5\xd0\x48", |
| 19852 | .rlen = 32, |
| 19853 | .novrfy = 1, |
| 19854 | }, { |
| 19855 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
| 19856 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8" |
| 19857 | "\x05\xe0\xc9", |
| 19858 | .klen = 19, |
| 19859 | .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf", |
| 19860 | .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81" |
| 19861 | "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1" |
| 19862 | "\xd8\x5c\x42\x68\xe0\x6c\xda\x89" |
| 19863 | "\x05\xac\x56\xac\x1b\x2a\xd3\x86", |
| 19864 | .alen = 32, |
| 19865 | .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c" |
| 19866 | "\xad\x83\x52\x6d\x71\x03\x25\x1c" |
| 19867 | "\xed\x81\x3a\x9a\x16\x7d\x19\x80" |
| 19868 | "\x72\x04\x72\xd0\xf6\xff\x05\x0f" |
| 19869 | "\xb7\x14\x30\x00\x32\x9e\xa0\xa6" |
| 19870 | "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3", |
| 19871 | .ilen = 48, |
| 19872 | .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60" |
| 19873 | "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7" |
| 19874 | "\xf2\xae\x61\x05\x8f\x82\x24\x3f" |
| 19875 | "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c", |
| 19876 | .rlen = 32, |
| 19877 | }, { |
| 19878 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 19879 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
| 19880 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6" |
| 19881 | "\xee\x49\x83", |
| 19882 | .klen = 27, |
| 19883 | .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", |
| 19884 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 19885 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 19886 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 19887 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 19888 | .alen = 32, |
| 19889 | .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b", |
| 19890 | .ilen = 8, |
| 19891 | .result = "\x00", |
| 19892 | .rlen = 0, |
| 19893 | }, { |
| 19894 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 19895 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 19896 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
| 19897 | "\xee\x49\x83", |
| 19898 | .klen = 27, |
| 19899 | .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", |
| 19900 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 19901 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 19902 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 19903 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 19904 | .alen = 32, |
| 19905 | .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7" |
| 19906 | "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2" |
| 19907 | "\x66\xca\x61\x1e\x96\x7a\x61\xb3" |
| 19908 | "\x1c\x16\x45\x52\xba\x04\x9c\x9f" |
| 19909 | "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1", |
| 19910 | .ilen = 40, |
| 19911 | .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36" |
| 19912 | "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb" |
| 19913 | "\x0a\x85\xcc\x02\xad\x7a\x96\xe9" |
| 19914 | "\x65\x43\xa4\xc3\x0f\xdc\x55\x81", |
| 19915 | .rlen = 32, |
| 19916 | }, { |
| 19917 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 19918 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 19919 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
| 19920 | "\xd1\xfc\x57", |
| 19921 | .klen = 27, |
| 19922 | .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f", |
| 19923 | .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6" |
| 19924 | "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3" |
| 19925 | "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7" |
| 19926 | "\x3c\xa1\x52\x13\x03\x8a\x23\x3a", |
| 19927 | .alen = 32, |
| 19928 | .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00" |
| 19929 | "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37" |
| 19930 | "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa" |
| 19931 | "\x64\x19\xc0\x30\xd7\xfc\x14\x6b" |
| 19932 | "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f" |
| 19933 | "\xa9\xb4\x2d\x68\x03\xa3\x44\xef", |
| 19934 | .ilen = 48, |
| 19935 | .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed" |
| 19936 | "\x99\x2a\xa8\xca\x04\x25\x45\x90" |
| 19937 | "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c" |
| 19938 | "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b", |
| 19939 | .rlen = 32, |
| 19940 | .novrfy = 1, |
| 19941 | }, { |
| 19942 | .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01" |
| 19943 | "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c" |
| 19944 | "\x20\x2c\xad\x30\xc2\x2b\x41\xfb" |
| 19945 | "\x0e\x85\xbc\x33\xad\x0f\x2b\xff" |
| 19946 | "\xee\x49\x83", |
| 19947 | .klen = 35, |
| 19948 | .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", |
| 19949 | .alen = 0, |
| 19950 | .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2", |
| 19951 | .ilen = 8, |
| 19952 | .result = "\x00", |
| 19953 | .rlen = 0, |
| 19954 | }, { |
| 19955 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 19956 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
| 19957 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6" |
| 19958 | "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb" |
| 19959 | "\x85\x34\x66", |
| 19960 | .klen = 35, |
| 19961 | .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b", |
| 19962 | .alen = 0, |
| 19963 | .input = "\x48\x01\x5e\x02\x24\x04\x66\x47" |
| 19964 | "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd" |
| 19965 | "\xa5\xa9\x87\x8d\x84\xee\x2e\x77" |
| 19966 | "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6" |
| 19967 | "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07" |
| 19968 | "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a", |
| 19969 | .ilen = 48, |
| 19970 | .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c" |
| 19971 | "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99" |
| 19972 | "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39" |
| 19973 | "\x89\xd4\x75\x7a\x63\xb1\xda\x93", |
| 19974 | .rlen = 32, |
| 19975 | .novrfy = 1, |
| 19976 | }, { |
| 19977 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 19978 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 19979 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
| 19980 | "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b" |
| 19981 | "\xcf\x76\x3f", |
| 19982 | .klen = 35, |
| 19983 | .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b", |
| 19984 | .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88" |
| 19985 | "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b" |
| 19986 | "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b" |
| 19987 | "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe", |
| 19988 | .alen = 32, |
| 19989 | .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf" |
| 19990 | "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4" |
| 19991 | "\x78\x5c\x4c\x67\x71\x89\x94\xbf" |
| 19992 | "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5" |
| 19993 | "\x7f\x44\x0a\x0c\x01\x18\x07\x92" |
| 19994 | "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b", |
| 19995 | .ilen = 48, |
| 19996 | .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40" |
| 19997 | "\x49\x71\xe4\xb7\xe7\xcb\x76\x61" |
| 19998 | "\x0a\x41\xb9\xe9\xc0\x76\x54\xab" |
| 19999 | "\x04\x49\x3b\x19\x93\x57\x25\x5d", |
| 20000 | .rlen = 32, |
| 20001 | }, |
| 20002 | }; |
| 20003 | |
Jarod Wilson | e08ca2d | 2009-05-04 19:46:29 +0800 | [diff] [blame] | 20004 | /* |
| 20005 | * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode) |
| 20006 | * test vectors, taken from Appendix B.2.9 and B.2.10: |
| 20007 | * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf |
| 20008 | * Only AES-128 is supported at this time. |
| 20009 | */ |
| 20010 | #define ANSI_CPRNG_AES_TEST_VECTORS 6 |
| 20011 | |
| 20012 | static struct cprng_testvec ansi_cprng_aes_tv_template[] = { |
| 20013 | { |
| 20014 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 20015 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 20016 | .klen = 16, |
| 20017 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 20018 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9", |
| 20019 | .dtlen = 16, |
| 20020 | .v = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 20021 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20022 | .vlen = 16, |
| 20023 | .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55" |
| 20024 | "\x84\x79\x66\x85\xc1\x2f\x76\x41", |
| 20025 | .rlen = 16, |
| 20026 | .loops = 1, |
| 20027 | }, { |
| 20028 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 20029 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 20030 | .klen = 16, |
| 20031 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 20032 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa", |
| 20033 | .dtlen = 16, |
| 20034 | .v = "\xc0\x00\x00\x00\x00\x00\x00\x00" |
| 20035 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20036 | .vlen = 16, |
| 20037 | .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c" |
| 20038 | "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d", |
| 20039 | .rlen = 16, |
| 20040 | .loops = 1, |
| 20041 | }, { |
| 20042 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 20043 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 20044 | .klen = 16, |
| 20045 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 20046 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb", |
| 20047 | .dtlen = 16, |
| 20048 | .v = "\xe0\x00\x00\x00\x00\x00\x00\x00" |
| 20049 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20050 | .vlen = 16, |
| 20051 | .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5" |
| 20052 | "\x29\x14\x28\x81\xa9\x4d\x4e\xc7", |
| 20053 | .rlen = 16, |
| 20054 | .loops = 1, |
| 20055 | }, { |
| 20056 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 20057 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 20058 | .klen = 16, |
| 20059 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 20060 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc", |
| 20061 | .dtlen = 16, |
| 20062 | .v = "\xf0\x00\x00\x00\x00\x00\x00\x00" |
| 20063 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20064 | .vlen = 16, |
| 20065 | .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5" |
| 20066 | "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a", |
| 20067 | .rlen = 16, |
| 20068 | .loops = 1, |
| 20069 | }, { |
| 20070 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 20071 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 20072 | .klen = 16, |
| 20073 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 20074 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd", |
| 20075 | .dtlen = 16, |
| 20076 | .v = "\xf8\x00\x00\x00\x00\x00\x00\x00" |
| 20077 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20078 | .vlen = 16, |
| 20079 | .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb" |
| 20080 | "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8", |
| 20081 | .rlen = 16, |
| 20082 | .loops = 1, |
| 20083 | }, { /* Monte Carlo Test */ |
| 20084 | .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5" |
| 20085 | "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48", |
| 20086 | .klen = 16, |
| 20087 | .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b" |
| 20088 | "\x67\xc9\x25\xfa\x70\x1f\x11\xac", |
| 20089 | .dtlen = 16, |
| 20090 | .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97" |
| 20091 | "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1", |
| 20092 | .vlen = 16, |
| 20093 | .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb" |
| 20094 | "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73", |
| 20095 | .rlen = 16, |
| 20096 | .loops = 10000, |
| 20097 | }, |
| 20098 | }; |
| 20099 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 20100 | /* Cast5 test vectors from RFC 2144 */ |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20101 | #define CAST5_ENC_TEST_VECTORS 4 |
| 20102 | #define CAST5_DEC_TEST_VECTORS 4 |
| 20103 | #define CAST5_CBC_ENC_TEST_VECTORS 1 |
| 20104 | #define CAST5_CBC_DEC_TEST_VECTORS 1 |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 20105 | #define CAST5_CTR_ENC_TEST_VECTORS 2 |
| 20106 | #define CAST5_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 20107 | |
| 20108 | static struct cipher_testvec cast5_enc_tv_template[] = { |
| 20109 | { |
| 20110 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 20111 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 20112 | .klen = 16, |
| 20113 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 20114 | .ilen = 8, |
| 20115 | .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 20116 | .rlen = 8, |
| 20117 | }, { |
| 20118 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 20119 | "\x23\x45", |
| 20120 | .klen = 10, |
| 20121 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 20122 | .ilen = 8, |
| 20123 | .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 20124 | .rlen = 8, |
| 20125 | }, { |
| 20126 | .key = "\x01\x23\x45\x67\x12", |
| 20127 | .klen = 5, |
| 20128 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 20129 | .ilen = 8, |
| 20130 | .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 20131 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20132 | }, { /* Generated from TF test vectors */ |
| 20133 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20134 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20135 | .klen = 16, |
| 20136 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20137 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20138 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 20139 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 20140 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 20141 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 20142 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 20143 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 20144 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 20145 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 20146 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 20147 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 20148 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 20149 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 20150 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 20151 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 20152 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 20153 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 20154 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 20155 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 20156 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 20157 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 20158 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 20159 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 20160 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 20161 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 20162 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 20163 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 20164 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 20165 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 20166 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 20167 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 20168 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 20169 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 20170 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 20171 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 20172 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 20173 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 20174 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 20175 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 20176 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 20177 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 20178 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 20179 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 20180 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 20181 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 20182 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 20183 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 20184 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 20185 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 20186 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 20187 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 20188 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 20189 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 20190 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 20191 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 20192 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 20193 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 20194 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 20195 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 20196 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 20197 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 20198 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 20199 | .ilen = 496, |
| 20200 | .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 20201 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 20202 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 20203 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 20204 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 20205 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 20206 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 20207 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 20208 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 20209 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 20210 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 20211 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 20212 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 20213 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 20214 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 20215 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 20216 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 20217 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 20218 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 20219 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 20220 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 20221 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 20222 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 20223 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 20224 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 20225 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 20226 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 20227 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 20228 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 20229 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 20230 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 20231 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 20232 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 20233 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 20234 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 20235 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 20236 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 20237 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 20238 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 20239 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 20240 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 20241 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 20242 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 20243 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 20244 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 20245 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 20246 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 20247 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 20248 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 20249 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 20250 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 20251 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 20252 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 20253 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 20254 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 20255 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 20256 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 20257 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 20258 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 20259 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 20260 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 20261 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 20262 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 20263 | .also_non_np = 1, |
| 20264 | .np = 2, |
| 20265 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 20266 | }, |
| 20267 | }; |
| 20268 | |
| 20269 | static struct cipher_testvec cast5_dec_tv_template[] = { |
| 20270 | { |
| 20271 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 20272 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 20273 | .klen = 16, |
| 20274 | .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 20275 | .ilen = 8, |
| 20276 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 20277 | .rlen = 8, |
| 20278 | }, { |
| 20279 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 20280 | "\x23\x45", |
| 20281 | .klen = 10, |
| 20282 | .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 20283 | .ilen = 8, |
| 20284 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 20285 | .rlen = 8, |
| 20286 | }, { |
| 20287 | .key = "\x01\x23\x45\x67\x12", |
| 20288 | .klen = 5, |
| 20289 | .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 20290 | .ilen = 8, |
| 20291 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 20292 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20293 | }, { /* Generated from TF test vectors */ |
| 20294 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20295 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20296 | .klen = 16, |
| 20297 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20298 | .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 20299 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 20300 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 20301 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 20302 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 20303 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 20304 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 20305 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 20306 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 20307 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 20308 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 20309 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 20310 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 20311 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 20312 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 20313 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 20314 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 20315 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 20316 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 20317 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 20318 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 20319 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 20320 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 20321 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 20322 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 20323 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 20324 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 20325 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 20326 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 20327 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 20328 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 20329 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 20330 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 20331 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 20332 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 20333 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 20334 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 20335 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 20336 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 20337 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 20338 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 20339 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 20340 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 20341 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 20342 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 20343 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 20344 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 20345 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 20346 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 20347 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 20348 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 20349 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 20350 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 20351 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 20352 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 20353 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 20354 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 20355 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 20356 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 20357 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 20358 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 20359 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 20360 | .ilen = 496, |
| 20361 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20362 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 20363 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 20364 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 20365 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 20366 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 20367 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 20368 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 20369 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 20370 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 20371 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 20372 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 20373 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 20374 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 20375 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 20376 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 20377 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 20378 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 20379 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 20380 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 20381 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 20382 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 20383 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 20384 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 20385 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 20386 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 20387 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 20388 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 20389 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 20390 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 20391 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 20392 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 20393 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 20394 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 20395 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 20396 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 20397 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 20398 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 20399 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 20400 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 20401 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 20402 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 20403 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 20404 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 20405 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 20406 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 20407 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 20408 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 20409 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 20410 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 20411 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 20412 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 20413 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 20414 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 20415 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 20416 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 20417 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 20418 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 20419 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 20420 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 20421 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 20422 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 20423 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 20424 | .also_non_np = 1, |
| 20425 | .np = 2, |
| 20426 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20427 | }, |
| 20428 | }; |
| 20429 | |
| 20430 | static struct cipher_testvec cast5_cbc_enc_tv_template[] = { |
| 20431 | { /* Generated from TF test vectors */ |
| 20432 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20433 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20434 | .klen = 16, |
| 20435 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20436 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20437 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 20438 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 20439 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 20440 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 20441 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 20442 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 20443 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 20444 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 20445 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 20446 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 20447 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 20448 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 20449 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 20450 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 20451 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 20452 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 20453 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 20454 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 20455 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 20456 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 20457 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 20458 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 20459 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 20460 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 20461 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 20462 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 20463 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 20464 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 20465 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 20466 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 20467 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 20468 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 20469 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 20470 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 20471 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 20472 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 20473 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 20474 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 20475 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 20476 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 20477 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 20478 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 20479 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 20480 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 20481 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 20482 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 20483 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 20484 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 20485 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 20486 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 20487 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 20488 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 20489 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 20490 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 20491 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 20492 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 20493 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 20494 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 20495 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 20496 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 20497 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 20498 | .ilen = 496, |
| 20499 | .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 20500 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 20501 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 20502 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 20503 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 20504 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 20505 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 20506 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 20507 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 20508 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 20509 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 20510 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 20511 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 20512 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 20513 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 20514 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 20515 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 20516 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 20517 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 20518 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 20519 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 20520 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 20521 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 20522 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 20523 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 20524 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 20525 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 20526 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 20527 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 20528 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 20529 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 20530 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 20531 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 20532 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 20533 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 20534 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 20535 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 20536 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 20537 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 20538 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 20539 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 20540 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 20541 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 20542 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 20543 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 20544 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 20545 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 20546 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 20547 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 20548 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 20549 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 20550 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 20551 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 20552 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 20553 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 20554 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 20555 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 20556 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 20557 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 20558 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 20559 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 20560 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 20561 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 20562 | .also_non_np = 1, |
| 20563 | .np = 2, |
| 20564 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20565 | }, |
| 20566 | }; |
| 20567 | |
| 20568 | static struct cipher_testvec cast5_cbc_dec_tv_template[] = { |
| 20569 | { /* Generated from TF test vectors */ |
| 20570 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20571 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20572 | .klen = 16, |
| 20573 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20574 | .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 20575 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 20576 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 20577 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 20578 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 20579 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 20580 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 20581 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 20582 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 20583 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 20584 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 20585 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 20586 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 20587 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 20588 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 20589 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 20590 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 20591 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 20592 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 20593 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 20594 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 20595 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 20596 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 20597 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 20598 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 20599 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 20600 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 20601 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 20602 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 20603 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 20604 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 20605 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 20606 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 20607 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 20608 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 20609 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 20610 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 20611 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 20612 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 20613 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 20614 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 20615 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 20616 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 20617 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 20618 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 20619 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 20620 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 20621 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 20622 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 20623 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 20624 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 20625 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 20626 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 20627 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 20628 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 20629 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 20630 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 20631 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 20632 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 20633 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 20634 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 20635 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 20636 | .ilen = 496, |
| 20637 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20638 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 20639 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 20640 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 20641 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 20642 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 20643 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 20644 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 20645 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 20646 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 20647 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 20648 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 20649 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 20650 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 20651 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 20652 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 20653 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 20654 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 20655 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 20656 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 20657 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 20658 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 20659 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 20660 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 20661 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 20662 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 20663 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 20664 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 20665 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 20666 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 20667 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 20668 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 20669 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 20670 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 20671 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 20672 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 20673 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 20674 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 20675 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 20676 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 20677 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 20678 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 20679 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 20680 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 20681 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 20682 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 20683 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 20684 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 20685 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 20686 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 20687 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 20688 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 20689 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 20690 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 20691 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 20692 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 20693 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 20694 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 20695 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 20696 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 20697 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 20698 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 20699 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 20700 | .also_non_np = 1, |
| 20701 | .np = 2, |
| 20702 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20703 | }, |
| 20704 | }; |
| 20705 | |
| 20706 | static struct cipher_testvec cast5_ctr_enc_tv_template[] = { |
| 20707 | { /* Generated from TF test vectors */ |
| 20708 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20709 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20710 | .klen = 16, |
| 20711 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20712 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20713 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 20714 | "\x3A", |
| 20715 | .ilen = 17, |
| 20716 | .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 20717 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 20718 | "\x0C", |
| 20719 | .rlen = 17, |
| 20720 | }, { /* Generated from TF test vectors */ |
| 20721 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20722 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20723 | .klen = 16, |
| 20724 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20725 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20726 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20727 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 20728 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 20729 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 20730 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 20731 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 20732 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 20733 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 20734 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 20735 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 20736 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 20737 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 20738 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 20739 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 20740 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 20741 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 20742 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 20743 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 20744 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 20745 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 20746 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 20747 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 20748 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 20749 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 20750 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 20751 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 20752 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 20753 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 20754 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 20755 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 20756 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 20757 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 20758 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 20759 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 20760 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 20761 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 20762 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 20763 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 20764 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 20765 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 20766 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 20767 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 20768 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 20769 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 20770 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 20771 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 20772 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 20773 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 20774 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 20775 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 20776 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 20777 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 20778 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 20779 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 20780 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 20781 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 20782 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 20783 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 20784 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 20785 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 20786 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 20787 | .ilen = 496, |
| 20788 | .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 20789 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 20790 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 20791 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 20792 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 20793 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 20794 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 20795 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 20796 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 20797 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 20798 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 20799 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 20800 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 20801 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 20802 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 20803 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 20804 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 20805 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 20806 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 20807 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 20808 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 20809 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 20810 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 20811 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 20812 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 20813 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 20814 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 20815 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 20816 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 20817 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 20818 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 20819 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 20820 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 20821 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 20822 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 20823 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 20824 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 20825 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 20826 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 20827 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 20828 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 20829 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 20830 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 20831 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 20832 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 20833 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 20834 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 20835 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 20836 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 20837 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 20838 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 20839 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 20840 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 20841 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 20842 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 20843 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 20844 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 20845 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 20846 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 20847 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 20848 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 20849 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 20850 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 20851 | .also_non_np = 1, |
| 20852 | .np = 2, |
| 20853 | .tap = { 496 - 16, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20854 | }, |
| 20855 | }; |
| 20856 | |
| 20857 | static struct cipher_testvec cast5_ctr_dec_tv_template[] = { |
| 20858 | { /* Generated from TF test vectors */ |
| 20859 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20860 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20861 | .klen = 16, |
| 20862 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20863 | .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 20864 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 20865 | "\x0C", |
| 20866 | .ilen = 17, |
| 20867 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20868 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 20869 | "\x3A", |
| 20870 | .rlen = 17, |
| 20871 | }, { /* Generated from TF test vectors */ |
| 20872 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 20873 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 20874 | .klen = 16, |
| 20875 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 20876 | .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 20877 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 20878 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 20879 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 20880 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 20881 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 20882 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 20883 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 20884 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 20885 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 20886 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 20887 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 20888 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 20889 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 20890 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 20891 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 20892 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 20893 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 20894 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 20895 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 20896 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 20897 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 20898 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 20899 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 20900 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 20901 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 20902 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 20903 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 20904 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 20905 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 20906 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 20907 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 20908 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 20909 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 20910 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 20911 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 20912 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 20913 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 20914 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 20915 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 20916 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 20917 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 20918 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 20919 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 20920 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 20921 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 20922 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 20923 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 20924 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 20925 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 20926 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 20927 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 20928 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 20929 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 20930 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 20931 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 20932 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 20933 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 20934 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 20935 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 20936 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 20937 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 20938 | .ilen = 496, |
| 20939 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 20940 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 20941 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 20942 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 20943 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 20944 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 20945 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 20946 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 20947 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 20948 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 20949 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 20950 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 20951 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 20952 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 20953 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 20954 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 20955 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 20956 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 20957 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 20958 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 20959 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 20960 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 20961 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 20962 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 20963 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 20964 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 20965 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 20966 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 20967 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 20968 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 20969 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 20970 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 20971 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 20972 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 20973 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 20974 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 20975 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 20976 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 20977 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 20978 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 20979 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 20980 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 20981 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 20982 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 20983 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 20984 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 20985 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 20986 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 20987 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 20988 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 20989 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 20990 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 20991 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 20992 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 20993 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 20994 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 20995 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 20996 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 20997 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 20998 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 20999 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 21000 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 21001 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 21002 | .also_non_np = 1, |
| 21003 | .np = 2, |
| 21004 | .tap = { 496 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 21005 | }, |
| 21006 | }; |
| 21007 | |
| 21008 | /* |
| 21009 | * ARC4 test vectors from OpenSSL |
| 21010 | */ |
| 21011 | #define ARC4_ENC_TEST_VECTORS 7 |
| 21012 | #define ARC4_DEC_TEST_VECTORS 7 |
| 21013 | |
| 21014 | static struct cipher_testvec arc4_enc_tv_template[] = { |
| 21015 | { |
| 21016 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21017 | .klen = 8, |
| 21018 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21019 | .ilen = 8, |
| 21020 | .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 21021 | .rlen = 8, |
| 21022 | }, { |
| 21023 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21024 | .klen = 8, |
| 21025 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21026 | .ilen = 8, |
| 21027 | .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 21028 | .rlen = 8, |
| 21029 | }, { |
| 21030 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21031 | .klen = 8, |
| 21032 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21033 | .ilen = 8, |
| 21034 | .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 21035 | .rlen = 8, |
| 21036 | }, { |
| 21037 | .key = "\xef\x01\x23\x45", |
| 21038 | .klen = 4, |
| 21039 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21040 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21041 | "\x00\x00\x00\x00", |
| 21042 | .ilen = 20, |
| 21043 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 21044 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 21045 | "\x36\xb6\x78\x58", |
| 21046 | .rlen = 20, |
| 21047 | }, { |
| 21048 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21049 | .klen = 8, |
| 21050 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 21051 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 21052 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 21053 | "\x12\x34\x56\x78", |
| 21054 | .ilen = 28, |
| 21055 | .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 21056 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 21057 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 21058 | "\x40\x01\x1e\xcf", |
| 21059 | .rlen = 28, |
| 21060 | }, { |
| 21061 | .key = "\xef\x01\x23\x45", |
| 21062 | .klen = 4, |
| 21063 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21064 | "\x00\x00", |
| 21065 | .ilen = 10, |
| 21066 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 21067 | "\xbd\x61", |
| 21068 | .rlen = 10, |
| 21069 | }, { |
| 21070 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 21071 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21072 | .klen = 16, |
| 21073 | .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 21074 | .ilen = 8, |
| 21075 | .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 21076 | .rlen = 8, |
| 21077 | }, |
| 21078 | }; |
| 21079 | |
| 21080 | static struct cipher_testvec arc4_dec_tv_template[] = { |
| 21081 | { |
| 21082 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21083 | .klen = 8, |
| 21084 | .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 21085 | .ilen = 8, |
| 21086 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21087 | .rlen = 8, |
| 21088 | }, { |
| 21089 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21090 | .klen = 8, |
| 21091 | .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 21092 | .ilen = 8, |
| 21093 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21094 | .rlen = 8, |
| 21095 | }, { |
| 21096 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21097 | .klen = 8, |
| 21098 | .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 21099 | .ilen = 8, |
| 21100 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21101 | .rlen = 8, |
| 21102 | }, { |
| 21103 | .key = "\xef\x01\x23\x45", |
| 21104 | .klen = 4, |
| 21105 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 21106 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 21107 | "\x36\xb6\x78\x58", |
| 21108 | .ilen = 20, |
| 21109 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21110 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21111 | "\x00\x00\x00\x00", |
| 21112 | .rlen = 20, |
| 21113 | }, { |
| 21114 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 21115 | .klen = 8, |
| 21116 | .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 21117 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 21118 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 21119 | "\x40\x01\x1e\xcf", |
| 21120 | .ilen = 28, |
| 21121 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 21122 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 21123 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 21124 | "\x12\x34\x56\x78", |
| 21125 | .rlen = 28, |
| 21126 | }, { |
| 21127 | .key = "\xef\x01\x23\x45", |
| 21128 | .klen = 4, |
| 21129 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 21130 | "\xbd\x61", |
| 21131 | .ilen = 10, |
| 21132 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21133 | "\x00\x00", |
| 21134 | .rlen = 10, |
| 21135 | }, { |
| 21136 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 21137 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21138 | .klen = 16, |
| 21139 | .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 21140 | .ilen = 8, |
| 21141 | .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 21142 | .rlen = 8, |
| 21143 | }, |
| 21144 | }; |
| 21145 | |
| 21146 | /* |
| 21147 | * TEA test vectors |
| 21148 | */ |
| 21149 | #define TEA_ENC_TEST_VECTORS 4 |
| 21150 | #define TEA_DEC_TEST_VECTORS 4 |
| 21151 | |
| 21152 | static struct cipher_testvec tea_enc_tv_template[] = { |
| 21153 | { |
| 21154 | .key = zeroed_string, |
| 21155 | .klen = 16, |
| 21156 | .input = zeroed_string, |
| 21157 | .ilen = 8, |
| 21158 | .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 21159 | .rlen = 8, |
| 21160 | }, { |
| 21161 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 21162 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 21163 | .klen = 16, |
| 21164 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 21165 | .ilen = 8, |
| 21166 | .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 21167 | .rlen = 8, |
| 21168 | }, { |
| 21169 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 21170 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 21171 | .klen = 16, |
| 21172 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 21173 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 21174 | .ilen = 16, |
| 21175 | .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 21176 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 21177 | .rlen = 16, |
| 21178 | }, { |
| 21179 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 21180 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 21181 | .klen = 16, |
| 21182 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 21183 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 21184 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 21185 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 21186 | .ilen = 32, |
| 21187 | .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 21188 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 21189 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 21190 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 21191 | .rlen = 32, |
| 21192 | } |
| 21193 | }; |
| 21194 | |
| 21195 | static struct cipher_testvec tea_dec_tv_template[] = { |
| 21196 | { |
| 21197 | .key = zeroed_string, |
| 21198 | .klen = 16, |
| 21199 | .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 21200 | .ilen = 8, |
| 21201 | .result = zeroed_string, |
| 21202 | .rlen = 8, |
| 21203 | }, { |
| 21204 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 21205 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 21206 | .klen = 16, |
| 21207 | .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 21208 | .ilen = 8, |
| 21209 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 21210 | .rlen = 8, |
| 21211 | }, { |
| 21212 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 21213 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 21214 | .klen = 16, |
| 21215 | .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 21216 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 21217 | .ilen = 16, |
| 21218 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 21219 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 21220 | .rlen = 16, |
| 21221 | }, { |
| 21222 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 21223 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 21224 | .klen = 16, |
| 21225 | .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 21226 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 21227 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 21228 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 21229 | .ilen = 32, |
| 21230 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 21231 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 21232 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 21233 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 21234 | .rlen = 32, |
| 21235 | } |
| 21236 | }; |
| 21237 | |
| 21238 | /* |
| 21239 | * XTEA test vectors |
| 21240 | */ |
| 21241 | #define XTEA_ENC_TEST_VECTORS 4 |
| 21242 | #define XTEA_DEC_TEST_VECTORS 4 |
| 21243 | |
| 21244 | static struct cipher_testvec xtea_enc_tv_template[] = { |
| 21245 | { |
| 21246 | .key = zeroed_string, |
| 21247 | .klen = 16, |
| 21248 | .input = zeroed_string, |
| 21249 | .ilen = 8, |
| 21250 | .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 21251 | .rlen = 8, |
| 21252 | }, { |
| 21253 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 21254 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 21255 | .klen = 16, |
| 21256 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 21257 | .ilen = 8, |
| 21258 | .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 21259 | .rlen = 8, |
| 21260 | }, { |
| 21261 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 21262 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 21263 | .klen = 16, |
| 21264 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 21265 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 21266 | .ilen = 16, |
| 21267 | .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 21268 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 21269 | .rlen = 16, |
| 21270 | }, { |
| 21271 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 21272 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 21273 | .klen = 16, |
| 21274 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 21275 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 21276 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 21277 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 21278 | .ilen = 32, |
| 21279 | .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 21280 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 21281 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 21282 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 21283 | .rlen = 32, |
| 21284 | } |
| 21285 | }; |
| 21286 | |
| 21287 | static struct cipher_testvec xtea_dec_tv_template[] = { |
| 21288 | { |
| 21289 | .key = zeroed_string, |
| 21290 | .klen = 16, |
| 21291 | .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 21292 | .ilen = 8, |
| 21293 | .result = zeroed_string, |
| 21294 | .rlen = 8, |
| 21295 | }, { |
| 21296 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 21297 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 21298 | .klen = 16, |
| 21299 | .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 21300 | .ilen = 8, |
| 21301 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 21302 | .rlen = 8, |
| 21303 | }, { |
| 21304 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 21305 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 21306 | .klen = 16, |
| 21307 | .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 21308 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 21309 | .ilen = 16, |
| 21310 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 21311 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 21312 | .rlen = 16, |
| 21313 | }, { |
| 21314 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 21315 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 21316 | .klen = 16, |
| 21317 | .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 21318 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 21319 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 21320 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 21321 | .ilen = 32, |
| 21322 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 21323 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 21324 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 21325 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 21326 | .rlen = 32, |
| 21327 | } |
| 21328 | }; |
| 21329 | |
| 21330 | /* |
| 21331 | * KHAZAD test vectors. |
| 21332 | */ |
| 21333 | #define KHAZAD_ENC_TEST_VECTORS 5 |
| 21334 | #define KHAZAD_DEC_TEST_VECTORS 5 |
| 21335 | |
| 21336 | static struct cipher_testvec khazad_enc_tv_template[] = { |
| 21337 | { |
| 21338 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 21339 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21340 | .klen = 16, |
| 21341 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21342 | .ilen = 8, |
| 21343 | .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 21344 | .rlen = 8, |
| 21345 | }, { |
| 21346 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 21347 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 21348 | .klen = 16, |
| 21349 | .input = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 21350 | .ilen = 8, |
| 21351 | .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 21352 | .rlen = 8, |
| 21353 | }, { |
| 21354 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 21355 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 21356 | .klen = 16, |
| 21357 | .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 21358 | .ilen = 8, |
| 21359 | .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 21360 | .rlen = 8, |
| 21361 | }, { |
| 21362 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 21363 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21364 | .klen = 16, |
| 21365 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21366 | .ilen = 8, |
| 21367 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 21368 | .rlen = 8, |
| 21369 | }, { |
| 21370 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 21371 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21372 | .klen = 16, |
| 21373 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 21374 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21375 | .ilen = 16, |
| 21376 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 21377 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 21378 | .rlen = 16, |
| 21379 | }, |
| 21380 | }; |
| 21381 | |
| 21382 | static struct cipher_testvec khazad_dec_tv_template[] = { |
| 21383 | { |
| 21384 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 21385 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21386 | .klen = 16, |
| 21387 | .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 21388 | .ilen = 8, |
| 21389 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21390 | .rlen = 8, |
| 21391 | }, { |
| 21392 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 21393 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 21394 | .klen = 16, |
| 21395 | .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 21396 | .ilen = 8, |
| 21397 | .result = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 21398 | .rlen = 8, |
| 21399 | }, { |
| 21400 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 21401 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 21402 | .klen = 16, |
| 21403 | .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 21404 | .ilen = 8, |
| 21405 | .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 21406 | .rlen = 8, |
| 21407 | }, { |
| 21408 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 21409 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21410 | .klen = 16, |
| 21411 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 21412 | .ilen = 8, |
| 21413 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21414 | .rlen = 8, |
| 21415 | }, { |
| 21416 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 21417 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21418 | .klen = 16, |
| 21419 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 21420 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 21421 | .ilen = 16, |
| 21422 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 21423 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 21424 | .rlen = 16, |
| 21425 | }, |
| 21426 | }; |
| 21427 | |
| 21428 | /* |
| 21429 | * Anubis test vectors. |
| 21430 | */ |
| 21431 | |
| 21432 | #define ANUBIS_ENC_TEST_VECTORS 5 |
| 21433 | #define ANUBIS_DEC_TEST_VECTORS 5 |
| 21434 | #define ANUBIS_CBC_ENC_TEST_VECTORS 2 |
| 21435 | #define ANUBIS_CBC_DEC_TEST_VECTORS 2 |
| 21436 | |
| 21437 | static struct cipher_testvec anubis_enc_tv_template[] = { |
| 21438 | { |
| 21439 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21440 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21441 | .klen = 16, |
| 21442 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21443 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21444 | .ilen = 16, |
| 21445 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 21446 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 21447 | .rlen = 16, |
| 21448 | }, { |
| 21449 | |
| 21450 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 21451 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 21452 | "\x03\x03\x03\x03", |
| 21453 | .klen = 20, |
| 21454 | .input = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 21455 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 21456 | .ilen = 16, |
| 21457 | .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 21458 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 21459 | .rlen = 16, |
| 21460 | }, { |
| 21461 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21462 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21463 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21464 | "\x24\x24\x24\x24", |
| 21465 | .klen = 28, |
| 21466 | .input = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21467 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 21468 | .ilen = 16, |
| 21469 | .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 21470 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 21471 | .rlen = 16, |
| 21472 | }, { |
| 21473 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21474 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21475 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21476 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 21477 | .klen = 32, |
| 21478 | .input = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21479 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 21480 | .ilen = 16, |
| 21481 | .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 21482 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 21483 | .rlen = 16, |
| 21484 | }, { |
| 21485 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21486 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21487 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21488 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21489 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21490 | .klen = 40, |
| 21491 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21492 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21493 | .ilen = 16, |
| 21494 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 21495 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 21496 | .rlen = 16, |
| 21497 | }, |
| 21498 | }; |
| 21499 | |
| 21500 | static struct cipher_testvec anubis_dec_tv_template[] = { |
| 21501 | { |
| 21502 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21503 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21504 | .klen = 16, |
| 21505 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 21506 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 21507 | .ilen = 16, |
| 21508 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21509 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21510 | .rlen = 16, |
| 21511 | }, { |
| 21512 | |
| 21513 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 21514 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 21515 | "\x03\x03\x03\x03", |
| 21516 | .klen = 20, |
| 21517 | .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 21518 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 21519 | .ilen = 16, |
| 21520 | .result = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 21521 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 21522 | .rlen = 16, |
| 21523 | }, { |
| 21524 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21525 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21526 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21527 | "\x24\x24\x24\x24", |
| 21528 | .klen = 28, |
| 21529 | .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 21530 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 21531 | .ilen = 16, |
| 21532 | .result = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 21533 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 21534 | .rlen = 16, |
| 21535 | }, { |
| 21536 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21537 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21538 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21539 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 21540 | .klen = 32, |
| 21541 | .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 21542 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 21543 | .ilen = 16, |
| 21544 | .result = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 21545 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 21546 | .rlen = 16, |
| 21547 | }, { |
| 21548 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21549 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21550 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21551 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21552 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21553 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 21554 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 21555 | .klen = 40, |
| 21556 | .ilen = 16, |
| 21557 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21558 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21559 | .rlen = 16, |
| 21560 | }, |
| 21561 | }; |
| 21562 | |
| 21563 | static struct cipher_testvec anubis_cbc_enc_tv_template[] = { |
| 21564 | { |
| 21565 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21566 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21567 | .klen = 16, |
| 21568 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21569 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21570 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21571 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21572 | .ilen = 32, |
| 21573 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 21574 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 21575 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 21576 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 21577 | .rlen = 32, |
| 21578 | }, { |
| 21579 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21580 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21581 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21582 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21583 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21584 | .klen = 40, |
| 21585 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21586 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21587 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21588 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21589 | .ilen = 32, |
| 21590 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 21591 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 21592 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 21593 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 21594 | .rlen = 32, |
| 21595 | }, |
| 21596 | }; |
| 21597 | |
| 21598 | static struct cipher_testvec anubis_cbc_dec_tv_template[] = { |
| 21599 | { |
| 21600 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21601 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21602 | .klen = 16, |
| 21603 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 21604 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 21605 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 21606 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 21607 | .ilen = 32, |
| 21608 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21609 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21610 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 21611 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 21612 | .rlen = 32, |
| 21613 | }, { |
| 21614 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21615 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21616 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21617 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21618 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21619 | .klen = 40, |
| 21620 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 21621 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 21622 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 21623 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 21624 | .ilen = 32, |
| 21625 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21626 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21627 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 21628 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 21629 | .rlen = 32, |
| 21630 | }, |
| 21631 | }; |
| 21632 | |
| 21633 | /* |
| 21634 | * XETA test vectors |
| 21635 | */ |
| 21636 | #define XETA_ENC_TEST_VECTORS 4 |
| 21637 | #define XETA_DEC_TEST_VECTORS 4 |
| 21638 | |
| 21639 | static struct cipher_testvec xeta_enc_tv_template[] = { |
| 21640 | { |
| 21641 | .key = zeroed_string, |
| 21642 | .klen = 16, |
| 21643 | .input = zeroed_string, |
| 21644 | .ilen = 8, |
| 21645 | .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 21646 | .rlen = 8, |
| 21647 | }, { |
| 21648 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 21649 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 21650 | .klen = 16, |
| 21651 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 21652 | .ilen = 8, |
| 21653 | .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 21654 | .rlen = 8, |
| 21655 | }, { |
| 21656 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 21657 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 21658 | .klen = 16, |
| 21659 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 21660 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 21661 | .ilen = 16, |
| 21662 | .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 21663 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 21664 | .rlen = 16, |
| 21665 | }, { |
| 21666 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 21667 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 21668 | .klen = 16, |
| 21669 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 21670 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 21671 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 21672 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 21673 | .ilen = 32, |
| 21674 | .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 21675 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 21676 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 21677 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 21678 | .rlen = 32, |
| 21679 | } |
| 21680 | }; |
| 21681 | |
| 21682 | static struct cipher_testvec xeta_dec_tv_template[] = { |
| 21683 | { |
| 21684 | .key = zeroed_string, |
| 21685 | .klen = 16, |
| 21686 | .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 21687 | .ilen = 8, |
| 21688 | .result = zeroed_string, |
| 21689 | .rlen = 8, |
| 21690 | }, { |
| 21691 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 21692 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 21693 | .klen = 16, |
| 21694 | .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 21695 | .ilen = 8, |
| 21696 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 21697 | .rlen = 8, |
| 21698 | }, { |
| 21699 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 21700 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 21701 | .klen = 16, |
| 21702 | .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 21703 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 21704 | .ilen = 16, |
| 21705 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 21706 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 21707 | .rlen = 16, |
| 21708 | }, { |
| 21709 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 21710 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 21711 | .klen = 16, |
| 21712 | .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 21713 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 21714 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 21715 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 21716 | .ilen = 32, |
| 21717 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 21718 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 21719 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 21720 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 21721 | .rlen = 32, |
| 21722 | } |
| 21723 | }; |
| 21724 | |
| 21725 | /* |
| 21726 | * FCrypt test vectors |
| 21727 | */ |
| 21728 | #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template) |
| 21729 | #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template) |
| 21730 | |
| 21731 | static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = { |
| 21732 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 21733 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21734 | .klen = 8, |
| 21735 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21736 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21737 | .ilen = 8, |
| 21738 | .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 21739 | .rlen = 8, |
| 21740 | }, { |
| 21741 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 21742 | .klen = 8, |
| 21743 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21744 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 21745 | .ilen = 8, |
| 21746 | .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 21747 | .rlen = 8, |
| 21748 | }, { /* From Arla */ |
| 21749 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 21750 | .klen = 8, |
| 21751 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21752 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 21753 | .ilen = 48, |
| 21754 | .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 21755 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 21756 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 21757 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 21758 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 21759 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 21760 | .rlen = 48, |
| 21761 | }, { |
| 21762 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21763 | .klen = 8, |
| 21764 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 21765 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 21766 | .ilen = 48, |
| 21767 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 21768 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 21769 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 21770 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 21771 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 21772 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 21773 | .rlen = 48, |
| 21774 | }, { /* split-page version */ |
| 21775 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21776 | .klen = 8, |
| 21777 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 21778 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 21779 | .ilen = 48, |
| 21780 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 21781 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 21782 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 21783 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 21784 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 21785 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 21786 | .rlen = 48, |
| 21787 | .np = 2, |
| 21788 | .tap = { 20, 28 }, |
| 21789 | } |
| 21790 | }; |
| 21791 | |
| 21792 | static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = { |
| 21793 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 21794 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21795 | .klen = 8, |
| 21796 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21797 | .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 21798 | .ilen = 8, |
| 21799 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21800 | .rlen = 8, |
| 21801 | }, { |
| 21802 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 21803 | .klen = 8, |
| 21804 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21805 | .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 21806 | .ilen = 8, |
| 21807 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 21808 | .rlen = 8, |
| 21809 | }, { /* From Arla */ |
| 21810 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 21811 | .klen = 8, |
| 21812 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21813 | .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 21814 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 21815 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 21816 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 21817 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 21818 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 21819 | .ilen = 48, |
| 21820 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 21821 | .rlen = 48, |
| 21822 | }, { |
| 21823 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21824 | .klen = 8, |
| 21825 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 21826 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 21827 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 21828 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 21829 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 21830 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 21831 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 21832 | .ilen = 48, |
| 21833 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 21834 | .rlen = 48, |
| 21835 | }, { /* split-page version */ |
| 21836 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21837 | .klen = 8, |
| 21838 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 21839 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 21840 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 21841 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 21842 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 21843 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 21844 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 21845 | .ilen = 48, |
| 21846 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 21847 | .rlen = 48, |
| 21848 | .np = 2, |
| 21849 | .tap = { 20, 28 }, |
| 21850 | } |
| 21851 | }; |
| 21852 | |
| 21853 | /* |
| 21854 | * CAMELLIA test vectors. |
| 21855 | */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 21856 | #define CAMELLIA_ENC_TEST_VECTORS 4 |
| 21857 | #define CAMELLIA_DEC_TEST_VECTORS 4 |
| 21858 | #define CAMELLIA_CBC_ENC_TEST_VECTORS 3 |
| 21859 | #define CAMELLIA_CBC_DEC_TEST_VECTORS 3 |
| 21860 | #define CAMELLIA_CTR_ENC_TEST_VECTORS 2 |
| 21861 | #define CAMELLIA_CTR_DEC_TEST_VECTORS 2 |
| 21862 | #define CAMELLIA_LRW_ENC_TEST_VECTORS 8 |
| 21863 | #define CAMELLIA_LRW_DEC_TEST_VECTORS 8 |
| 21864 | #define CAMELLIA_XTS_ENC_TEST_VECTORS 5 |
| 21865 | #define CAMELLIA_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 21866 | |
| 21867 | static struct cipher_testvec camellia_enc_tv_template[] = { |
| 21868 | { |
| 21869 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 21870 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21871 | .klen = 16, |
| 21872 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 21873 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21874 | .ilen = 16, |
| 21875 | .result = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 21876 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 21877 | .rlen = 16, |
| 21878 | }, { |
| 21879 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 21880 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 21881 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 21882 | .klen = 24, |
| 21883 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 21884 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21885 | .ilen = 16, |
| 21886 | .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 21887 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 21888 | .rlen = 16, |
| 21889 | }, { |
| 21890 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 21891 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 21892 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 21893 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 21894 | .klen = 32, |
| 21895 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 21896 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 21897 | .ilen = 16, |
| 21898 | .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 21899 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 21900 | .rlen = 16, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 21901 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 21902 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 21903 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 21904 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 21905 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 21906 | .klen = 32, |
| 21907 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 21908 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 21909 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 21910 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 21911 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 21912 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 21913 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 21914 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 21915 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 21916 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 21917 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 21918 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 21919 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 21920 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 21921 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 21922 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 21923 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 21924 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 21925 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 21926 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 21927 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 21928 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 21929 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 21930 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 21931 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 21932 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 21933 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 21934 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 21935 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 21936 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 21937 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 21938 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 21939 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 21940 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 21941 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 21942 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 21943 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 21944 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 21945 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 21946 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 21947 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 21948 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 21949 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 21950 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 21951 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 21952 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 21953 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 21954 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 21955 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 21956 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 21957 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 21958 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 21959 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 21960 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 21961 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 21962 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 21963 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 21964 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 21965 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 21966 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 21967 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 21968 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 21969 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 21970 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 21971 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 21972 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 21973 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 21974 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 21975 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 21976 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 21977 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 21978 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 21979 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 21980 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 21981 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 21982 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 21983 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 21984 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 21985 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 21986 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 21987 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 21988 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 21989 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 21990 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 21991 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 21992 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 21993 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 21994 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 21995 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 21996 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 21997 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 21998 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 21999 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 22000 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 22001 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 22002 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 22003 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 22004 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 22005 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 22006 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 22007 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 22008 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 22009 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 22010 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 22011 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 22012 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 22013 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 22014 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 22015 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 22016 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 22017 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 22018 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 22019 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 22020 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 22021 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 22022 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 22023 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 22024 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 22025 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 22026 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 22027 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 22028 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 22029 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 22030 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 22031 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 22032 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 22033 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22034 | .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 22035 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 22036 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 22037 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 22038 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22039 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A" |
| 22040 | "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8" |
| 22041 | "\x01\x9B\x17\x0A\x29\xE7\x61\x28" |
| 22042 | "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B" |
| 22043 | "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B" |
| 22044 | "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E" |
| 22045 | "\x83\x54\xAE\x7C\x82\x46\x10\xC9" |
| 22046 | "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC" |
| 22047 | "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4" |
| 22048 | "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C" |
| 22049 | "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB" |
| 22050 | "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98" |
| 22051 | "\x9F\x32\xBA\xA2\x18\xCF\x55\x43" |
| 22052 | "\xFE\x80\x8F\x60\xCF\x05\x30\x9B" |
| 22053 | "\x70\x50\x1E\x9C\x08\x87\xE6\x20" |
| 22054 | "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2" |
| 22055 | "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6" |
| 22056 | "\xB8\x30\x86\x3B\x0F\x94\x1E\x79" |
| 22057 | "\x13\x94\x35\xA2\xB1\x35\x5B\x05" |
| 22058 | "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE" |
| 22059 | "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A" |
| 22060 | "\xF5\x33\xC8\x19\x45\x14\x44\x5D" |
| 22061 | "\xFE\x94\x7B\xBB\x63\x13\x57\xC3" |
| 22062 | "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A" |
| 22063 | "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF" |
| 22064 | "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8" |
| 22065 | "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C" |
| 22066 | "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB" |
| 22067 | "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74" |
| 22068 | "\x60\x64\x0D\x1C\x80\xD1\x20\x9E" |
| 22069 | "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96" |
| 22070 | "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B" |
| 22071 | "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01" |
| 22072 | "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E" |
| 22073 | "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B" |
| 22074 | "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D" |
| 22075 | "\x5B\x55\x23\xB7\x40\x31\xDE\xEE" |
| 22076 | "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42" |
| 22077 | "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3" |
| 22078 | "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF" |
| 22079 | "\x63\xA9\xF0\x6A\x08\x46\xBD\x48" |
| 22080 | "\x83\x06\xAB\x82\x99\x01\x16\x1A" |
| 22081 | "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F" |
| 22082 | "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC" |
| 22083 | "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B" |
| 22084 | "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0" |
| 22085 | "\xCD\xB6\x45\xB2\x29\x2E\x34\x23" |
| 22086 | "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F" |
| 22087 | "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA" |
| 22088 | "\x74\x83\x29\x05\xE8\xC4\x4D\x01" |
| 22089 | "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99" |
| 22090 | "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30" |
| 22091 | "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C" |
| 22092 | "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3" |
| 22093 | "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44" |
| 22094 | "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22095 | "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB" |
| 22096 | "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD" |
| 22097 | "\xF7\x90\x68\xCF\xC9\x11\x52\x3E" |
| 22098 | "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A" |
| 22099 | "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E" |
| 22100 | "\xED\x28\x39\xE9\x63\xED\x41\x70" |
| 22101 | "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB" |
| 22102 | "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60" |
| 22103 | "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B" |
| 22104 | "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5" |
| 22105 | "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E" |
| 22106 | "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23" |
| 22107 | "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9" |
| 22108 | "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7" |
| 22109 | "\xCA\xA8\xA2\x9E\x13\x87\x57\x92" |
| 22110 | "\x64\x7C\x85\x0B\xB3\x29\x37\xD8" |
| 22111 | "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF" |
| 22112 | "\x2E\x45\x83\xB6\xD8\x54\x00\x89" |
| 22113 | "\xF6\xBC\x3A\x7A\x88\x58\x51\xED" |
| 22114 | "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42" |
| 22115 | "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC" |
| 22116 | "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1" |
| 22117 | "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91" |
| 22118 | "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E" |
| 22119 | "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15" |
| 22120 | "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86" |
| 22121 | "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4" |
| 22122 | "\x7F\x95\x10\xF7\xAB\x3F\x92\x23" |
| 22123 | "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43" |
| 22124 | "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2" |
| 22125 | "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56" |
| 22126 | "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4" |
| 22127 | "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F" |
| 22128 | "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4" |
| 22129 | "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2" |
| 22130 | "\x39\x25\x55\x20\x5A\xA6\x02\x9F" |
| 22131 | "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B" |
| 22132 | "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF" |
| 22133 | "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E" |
| 22134 | "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78" |
| 22135 | "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA" |
| 22136 | "\xED\x87\x98\xAC\xFE\x48\x97\x6D" |
| 22137 | "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14" |
| 22138 | "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C" |
| 22139 | "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55" |
| 22140 | "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55" |
| 22141 | "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C" |
| 22142 | "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC" |
| 22143 | "\xF0\x33\x52\x29\x70\xF9\x5C\xE9" |
| 22144 | "\xAC\x1F\xB5\x73\x56\x66\x54\xAF" |
| 22145 | "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3" |
| 22146 | "\xAE\x47\xB6\x69\x86\xE9\x01\x31" |
| 22147 | "\x83\x18\x3D\xF4\x74\x7B\xF9\x42" |
| 22148 | "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6" |
| 22149 | "\x2B\x20\x63\xDA\x49\x65\x5E\x8B" |
| 22150 | "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34" |
| 22151 | "\xD3\x52\xFC\x68\x00\x43\x1B\x37" |
| 22152 | "\x31\x93\x51\x1C\x63\x97\x70\xB0" |
| 22153 | "\x99\x78\x83\x13\xFD\xCF\x53\x81" |
| 22154 | "\x36\x46\xB5\x42\x52\x2F\x32\xEB" |
| 22155 | "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC" |
| 22156 | "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A" |
| 22157 | "\xAE\xEF\x3E\x82\x12\x0B\x74\x72" |
| 22158 | "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55" |
| 22159 | "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66", |
| 22160 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 22161 | .also_non_np = 1, |
| 22162 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22163 | .tap = { 1008 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22164 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 22165 | }; |
| 22166 | |
| 22167 | static struct cipher_testvec camellia_dec_tv_template[] = { |
| 22168 | { |
| 22169 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 22170 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 22171 | .klen = 16, |
| 22172 | .input = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 22173 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 22174 | .ilen = 16, |
| 22175 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 22176 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 22177 | .rlen = 16, |
| 22178 | }, { |
| 22179 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 22180 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 22181 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 22182 | .klen = 24, |
| 22183 | .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 22184 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 22185 | .ilen = 16, |
| 22186 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 22187 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 22188 | .rlen = 16, |
| 22189 | }, { |
| 22190 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 22191 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 22192 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 22193 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 22194 | .klen = 32, |
| 22195 | .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 22196 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 22197 | .ilen = 16, |
| 22198 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 22199 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 22200 | .rlen = 16, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22201 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22202 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 22203 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 22204 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 22205 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 22206 | .klen = 32, |
| 22207 | .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 22208 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 22209 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 22210 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 22211 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22212 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A" |
| 22213 | "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8" |
| 22214 | "\x01\x9B\x17\x0A\x29\xE7\x61\x28" |
| 22215 | "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B" |
| 22216 | "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B" |
| 22217 | "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E" |
| 22218 | "\x83\x54\xAE\x7C\x82\x46\x10\xC9" |
| 22219 | "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC" |
| 22220 | "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4" |
| 22221 | "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C" |
| 22222 | "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB" |
| 22223 | "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98" |
| 22224 | "\x9F\x32\xBA\xA2\x18\xCF\x55\x43" |
| 22225 | "\xFE\x80\x8F\x60\xCF\x05\x30\x9B" |
| 22226 | "\x70\x50\x1E\x9C\x08\x87\xE6\x20" |
| 22227 | "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2" |
| 22228 | "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6" |
| 22229 | "\xB8\x30\x86\x3B\x0F\x94\x1E\x79" |
| 22230 | "\x13\x94\x35\xA2\xB1\x35\x5B\x05" |
| 22231 | "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE" |
| 22232 | "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A" |
| 22233 | "\xF5\x33\xC8\x19\x45\x14\x44\x5D" |
| 22234 | "\xFE\x94\x7B\xBB\x63\x13\x57\xC3" |
| 22235 | "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A" |
| 22236 | "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF" |
| 22237 | "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8" |
| 22238 | "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C" |
| 22239 | "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB" |
| 22240 | "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74" |
| 22241 | "\x60\x64\x0D\x1C\x80\xD1\x20\x9E" |
| 22242 | "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96" |
| 22243 | "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B" |
| 22244 | "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01" |
| 22245 | "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E" |
| 22246 | "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B" |
| 22247 | "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D" |
| 22248 | "\x5B\x55\x23\xB7\x40\x31\xDE\xEE" |
| 22249 | "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42" |
| 22250 | "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3" |
| 22251 | "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF" |
| 22252 | "\x63\xA9\xF0\x6A\x08\x46\xBD\x48" |
| 22253 | "\x83\x06\xAB\x82\x99\x01\x16\x1A" |
| 22254 | "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F" |
| 22255 | "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC" |
| 22256 | "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B" |
| 22257 | "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0" |
| 22258 | "\xCD\xB6\x45\xB2\x29\x2E\x34\x23" |
| 22259 | "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F" |
| 22260 | "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA" |
| 22261 | "\x74\x83\x29\x05\xE8\xC4\x4D\x01" |
| 22262 | "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99" |
| 22263 | "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30" |
| 22264 | "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C" |
| 22265 | "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3" |
| 22266 | "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44" |
| 22267 | "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22268 | "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB" |
| 22269 | "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD" |
| 22270 | "\xF7\x90\x68\xCF\xC9\x11\x52\x3E" |
| 22271 | "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A" |
| 22272 | "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E" |
| 22273 | "\xED\x28\x39\xE9\x63\xED\x41\x70" |
| 22274 | "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB" |
| 22275 | "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60" |
| 22276 | "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B" |
| 22277 | "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5" |
| 22278 | "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E" |
| 22279 | "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23" |
| 22280 | "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9" |
| 22281 | "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7" |
| 22282 | "\xCA\xA8\xA2\x9E\x13\x87\x57\x92" |
| 22283 | "\x64\x7C\x85\x0B\xB3\x29\x37\xD8" |
| 22284 | "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF" |
| 22285 | "\x2E\x45\x83\xB6\xD8\x54\x00\x89" |
| 22286 | "\xF6\xBC\x3A\x7A\x88\x58\x51\xED" |
| 22287 | "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42" |
| 22288 | "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC" |
| 22289 | "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1" |
| 22290 | "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91" |
| 22291 | "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E" |
| 22292 | "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15" |
| 22293 | "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86" |
| 22294 | "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4" |
| 22295 | "\x7F\x95\x10\xF7\xAB\x3F\x92\x23" |
| 22296 | "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43" |
| 22297 | "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2" |
| 22298 | "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56" |
| 22299 | "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4" |
| 22300 | "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F" |
| 22301 | "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4" |
| 22302 | "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2" |
| 22303 | "\x39\x25\x55\x20\x5A\xA6\x02\x9F" |
| 22304 | "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B" |
| 22305 | "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF" |
| 22306 | "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E" |
| 22307 | "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78" |
| 22308 | "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA" |
| 22309 | "\xED\x87\x98\xAC\xFE\x48\x97\x6D" |
| 22310 | "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14" |
| 22311 | "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C" |
| 22312 | "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55" |
| 22313 | "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55" |
| 22314 | "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C" |
| 22315 | "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC" |
| 22316 | "\xF0\x33\x52\x29\x70\xF9\x5C\xE9" |
| 22317 | "\xAC\x1F\xB5\x73\x56\x66\x54\xAF" |
| 22318 | "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3" |
| 22319 | "\xAE\x47\xB6\x69\x86\xE9\x01\x31" |
| 22320 | "\x83\x18\x3D\xF4\x74\x7B\xF9\x42" |
| 22321 | "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6" |
| 22322 | "\x2B\x20\x63\xDA\x49\x65\x5E\x8B" |
| 22323 | "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34" |
| 22324 | "\xD3\x52\xFC\x68\x00\x43\x1B\x37" |
| 22325 | "\x31\x93\x51\x1C\x63\x97\x70\xB0" |
| 22326 | "\x99\x78\x83\x13\xFD\xCF\x53\x81" |
| 22327 | "\x36\x46\xB5\x42\x52\x2F\x32\xEB" |
| 22328 | "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC" |
| 22329 | "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A" |
| 22330 | "\xAE\xEF\x3E\x82\x12\x0B\x74\x72" |
| 22331 | "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55" |
| 22332 | "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66", |
| 22333 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22334 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 22335 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 22336 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 22337 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 22338 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22339 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 22340 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 22341 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 22342 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 22343 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 22344 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 22345 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 22346 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 22347 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 22348 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 22349 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 22350 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 22351 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 22352 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 22353 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 22354 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 22355 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 22356 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 22357 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 22358 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 22359 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 22360 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 22361 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 22362 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 22363 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 22364 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 22365 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 22366 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 22367 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 22368 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 22369 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 22370 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 22371 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 22372 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 22373 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 22374 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 22375 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 22376 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 22377 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 22378 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 22379 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 22380 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 22381 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 22382 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 22383 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 22384 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 22385 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 22386 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 22387 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 22388 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 22389 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 22390 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 22391 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 22392 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 22393 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 22394 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22395 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 22396 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 22397 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 22398 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 22399 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 22400 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 22401 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 22402 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 22403 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 22404 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 22405 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 22406 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 22407 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 22408 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 22409 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 22410 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 22411 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 22412 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 22413 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 22414 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 22415 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 22416 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 22417 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 22418 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 22419 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 22420 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 22421 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 22422 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 22423 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 22424 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 22425 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 22426 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 22427 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 22428 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 22429 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 22430 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 22431 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 22432 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 22433 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 22434 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 22435 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 22436 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 22437 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 22438 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 22439 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 22440 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 22441 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 22442 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 22443 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 22444 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 22445 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 22446 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 22447 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 22448 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 22449 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 22450 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 22451 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 22452 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 22453 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 22454 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 22455 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 22456 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 22457 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 22458 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 22459 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 22460 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 22461 | .also_non_np = 1, |
| 22462 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22463 | .tap = { 1008 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22464 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 22465 | }; |
| 22466 | |
| 22467 | static struct cipher_testvec camellia_cbc_enc_tv_template[] = { |
| 22468 | { |
| 22469 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 22470 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 22471 | .klen = 16, |
| 22472 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 22473 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 22474 | .input = "Single block msg", |
| 22475 | .ilen = 16, |
| 22476 | .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 22477 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 22478 | .rlen = 16, |
| 22479 | }, { |
| 22480 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 22481 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 22482 | .klen = 16, |
| 22483 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 22484 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 22485 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22486 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 22487 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 22488 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 22489 | .ilen = 32, |
| 22490 | .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 22491 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 22492 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 22493 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 22494 | .rlen = 32, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22495 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22496 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 22497 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 22498 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 22499 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 22500 | .klen = 32, |
| 22501 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 22502 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 22503 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 22504 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 22505 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 22506 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 22507 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22508 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 22509 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 22510 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 22511 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 22512 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 22513 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 22514 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 22515 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 22516 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 22517 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 22518 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 22519 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 22520 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 22521 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 22522 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 22523 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 22524 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 22525 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 22526 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 22527 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 22528 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 22529 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 22530 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 22531 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 22532 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 22533 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 22534 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 22535 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 22536 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 22537 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 22538 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 22539 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 22540 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 22541 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 22542 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 22543 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 22544 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 22545 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 22546 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 22547 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 22548 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 22549 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 22550 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 22551 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 22552 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 22553 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 22554 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 22555 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 22556 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 22557 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 22558 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 22559 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 22560 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 22561 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 22562 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 22563 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22564 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 22565 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 22566 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 22567 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 22568 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 22569 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 22570 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 22571 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 22572 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 22573 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 22574 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 22575 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 22576 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 22577 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 22578 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 22579 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 22580 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 22581 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 22582 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 22583 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 22584 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 22585 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 22586 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 22587 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 22588 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 22589 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 22590 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 22591 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 22592 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 22593 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 22594 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 22595 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 22596 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 22597 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 22598 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 22599 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 22600 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 22601 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 22602 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 22603 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 22604 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 22605 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 22606 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 22607 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 22608 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 22609 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 22610 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 22611 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 22612 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 22613 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 22614 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 22615 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 22616 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 22617 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 22618 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 22619 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 22620 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 22621 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 22622 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 22623 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 22624 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 22625 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 22626 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 22627 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 22628 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 22629 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22630 | .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 22631 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 22632 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 22633 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 22634 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22635 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01" |
| 22636 | "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83" |
| 22637 | "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E" |
| 22638 | "\x56\xC8\x18\x3D\x79\x86\x97\xEF" |
| 22639 | "\x57\x0E\x63\xA1\xC1\x41\x48\xB8" |
| 22640 | "\x98\xB7\x51\x6D\x18\xF6\x19\x82" |
| 22641 | "\x37\x49\x88\xA4\xEF\x91\x21\x47" |
| 22642 | "\x03\x28\xEA\x42\xF4\xFB\x7A\x58" |
| 22643 | "\x28\x90\x77\x46\xD8\xD2\x35\x16" |
| 22644 | "\x44\xA9\x9E\x49\x52\x2A\xE4\x16" |
| 22645 | "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6" |
| 22646 | "\xCF\x76\x91\x89\x8A\x94\x39\xFA" |
| 22647 | "\x6B\x5F\x63\x53\x74\x43\x91\xF5" |
| 22648 | "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F" |
| 22649 | "\x9D\x32\x84\xEB\x56\x28\xD6\x06" |
| 22650 | "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62" |
| 22651 | "\x32\xCC\x86\xC8\x36\x67\x5E\x7E" |
| 22652 | "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF" |
| 22653 | "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A" |
| 22654 | "\x9B\x78\x62\x3B\x02\x28\x60\xB3" |
| 22655 | "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47" |
| 22656 | "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28" |
| 22657 | "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70" |
| 22658 | "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94" |
| 22659 | "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C" |
| 22660 | "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0" |
| 22661 | "\x5D\x51\x54\x9A\x53\xA0\xF9\x32" |
| 22662 | "\xBD\x31\x54\x14\x7B\x33\xEE\x17" |
| 22663 | "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2" |
| 22664 | "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2" |
| 22665 | "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E" |
| 22666 | "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4" |
| 22667 | "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE" |
| 22668 | "\x40\x78\x91\x95\xC4\x2F\xA3\xE8" |
| 22669 | "\x18\xC7\x07\xA6\xC8\xC0\x66\x33" |
| 22670 | "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3" |
| 22671 | "\x40\xF5\x40\x54\xF1\x84\x8C\xEA" |
| 22672 | "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8" |
| 22673 | "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4" |
| 22674 | "\xF8\x17\x99\x8D\x58\x2D\x72\x44" |
| 22675 | "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82" |
| 22676 | "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7" |
| 22677 | "\x68\xA3\xB8\xA5\x93\x74\x2E\x85" |
| 22678 | "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF" |
| 22679 | "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B" |
| 22680 | "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18" |
| 22681 | "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B" |
| 22682 | "\x38\xB8\x48\x36\x66\x4E\x20\x43" |
| 22683 | "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52" |
| 22684 | "\xD7\xDC\xB2\x67\x63\x14\x25\xCD" |
| 22685 | "\xB1\x13\x4B\xDE\x8C\x59\x21\x84" |
| 22686 | "\x81\x8D\x97\x23\x45\x33\x7C\xF3" |
| 22687 | "\xC5\xBC\x79\x95\xAA\x84\x68\x31" |
| 22688 | "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA" |
| 22689 | "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97" |
| 22690 | "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22691 | "\x5F\x74\x8C\x86\x5B\x71\xD0\x20" |
| 22692 | "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5" |
| 22693 | "\x21\x41\x56\x72\x13\xE1\x86\x07" |
| 22694 | "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18" |
| 22695 | "\xFE\x94\x2D\x9F\xE0\x72\x18\x65" |
| 22696 | "\xB2\xA5\x63\x48\xB4\x13\x22\xF7" |
| 22697 | "\x25\xF1\x80\xA8\x7F\x54\x86\x7B" |
| 22698 | "\x39\xAE\x95\x0C\x09\x32\x22\x2D" |
| 22699 | "\x4D\x73\x39\x0C\x09\x2C\x7C\x10" |
| 22700 | "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F" |
| 22701 | "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14" |
| 22702 | "\x65\xEE\x93\x54\xD0\x66\x15\x3C" |
| 22703 | "\x4C\x68\xFD\x64\x0F\xF9\x10\x39" |
| 22704 | "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2" |
| 22705 | "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F" |
| 22706 | "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97" |
| 22707 | "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9" |
| 22708 | "\xBE\x31\x31\x96\x8B\x40\x18\x75" |
| 22709 | "\x11\x75\x14\x32\xA5\x2D\x1B\x6B" |
| 22710 | "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4" |
| 22711 | "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6" |
| 22712 | "\x71\xB0\x12\x57\x89\x0D\xC0\x2B" |
| 22713 | "\x9F\x12\x6A\x04\x67\xF1\x95\x31" |
| 22714 | "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC" |
| 22715 | "\x09\xB0\x43\x96\x4A\x64\x80\x40" |
| 22716 | "\xB9\x72\x19\xDD\x70\x42\xFA\xB1" |
| 22717 | "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C" |
| 22718 | "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB" |
| 22719 | "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6" |
| 22720 | "\x33\x0B\xF3\xD5\x01\x38\x74\xA4" |
| 22721 | "\x67\x1E\x75\x68\xC3\xAD\x76\xE9" |
| 22722 | "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A" |
| 22723 | "\x5F\xC9\x18\x94\x4B\x86\x66\xFC" |
| 22724 | "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9" |
| 22725 | "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8" |
| 22726 | "\x43\xBC\x76\x75\xBF\x6C\x05\xB3" |
| 22727 | "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61" |
| 22728 | "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0" |
| 22729 | "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12" |
| 22730 | "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E" |
| 22731 | "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3" |
| 22732 | "\x7B\xDC\xCE\x15\x97\x27\xB2\x65" |
| 22733 | "\xBC\x0E\x47\xAB\x55\x13\x53\xAB" |
| 22734 | "\x0E\x34\x55\x02\x5F\x27\xC5\x89" |
| 22735 | "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE" |
| 22736 | "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C" |
| 22737 | "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8" |
| 22738 | "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2" |
| 22739 | "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6" |
| 22740 | "\x8D\x4D\x83\x9A\xED\x29\x4E\x14" |
| 22741 | "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A" |
| 22742 | "\x72\x22\xD5\x92\x38\xF1\xA1\x86" |
| 22743 | "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3" |
| 22744 | "\x80\x56\xC3\xD7\x65\xE1\xB3\x86" |
| 22745 | "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06" |
| 22746 | "\x01\xED\xF8\x29\x91\x19\x5C\x9A" |
| 22747 | "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F" |
| 22748 | "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72" |
| 22749 | "\x80\xE7\x29\xDC\x23\x55\x98\x54" |
| 22750 | "\xB1\xFF\x3E\x95\x56\xA8\x78\x78" |
| 22751 | "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93" |
| 22752 | "\x30\x6E\x7E\x51\xBB\x42\x5F\x03" |
| 22753 | "\x43\x94\x23\x7E\xEE\xF0\xA5\x79" |
| 22754 | "\x55\x01\xD4\x58\xB2\xF2\x85\x49" |
| 22755 | "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C", |
| 22756 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 22757 | .also_non_np = 1, |
| 22758 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22759 | .tap = { 1008 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22760 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 22761 | }; |
| 22762 | |
| 22763 | static struct cipher_testvec camellia_cbc_dec_tv_template[] = { |
| 22764 | { |
| 22765 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 22766 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 22767 | .klen = 16, |
| 22768 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 22769 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 22770 | .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 22771 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 22772 | .ilen = 16, |
| 22773 | .result = "Single block msg", |
| 22774 | .rlen = 16, |
| 22775 | }, { |
| 22776 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 22777 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 22778 | .klen = 16, |
| 22779 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 22780 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 22781 | .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 22782 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 22783 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 22784 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 22785 | .ilen = 32, |
| 22786 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22787 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 22788 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 22789 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 22790 | .rlen = 32, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22791 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22792 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 22793 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 22794 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 22795 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 22796 | .klen = 32, |
| 22797 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 22798 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 22799 | .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 22800 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 22801 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 22802 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 22803 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22804 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01" |
| 22805 | "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83" |
| 22806 | "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E" |
| 22807 | "\x56\xC8\x18\x3D\x79\x86\x97\xEF" |
| 22808 | "\x57\x0E\x63\xA1\xC1\x41\x48\xB8" |
| 22809 | "\x98\xB7\x51\x6D\x18\xF6\x19\x82" |
| 22810 | "\x37\x49\x88\xA4\xEF\x91\x21\x47" |
| 22811 | "\x03\x28\xEA\x42\xF4\xFB\x7A\x58" |
| 22812 | "\x28\x90\x77\x46\xD8\xD2\x35\x16" |
| 22813 | "\x44\xA9\x9E\x49\x52\x2A\xE4\x16" |
| 22814 | "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6" |
| 22815 | "\xCF\x76\x91\x89\x8A\x94\x39\xFA" |
| 22816 | "\x6B\x5F\x63\x53\x74\x43\x91\xF5" |
| 22817 | "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F" |
| 22818 | "\x9D\x32\x84\xEB\x56\x28\xD6\x06" |
| 22819 | "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62" |
| 22820 | "\x32\xCC\x86\xC8\x36\x67\x5E\x7E" |
| 22821 | "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF" |
| 22822 | "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A" |
| 22823 | "\x9B\x78\x62\x3B\x02\x28\x60\xB3" |
| 22824 | "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47" |
| 22825 | "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28" |
| 22826 | "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70" |
| 22827 | "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94" |
| 22828 | "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C" |
| 22829 | "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0" |
| 22830 | "\x5D\x51\x54\x9A\x53\xA0\xF9\x32" |
| 22831 | "\xBD\x31\x54\x14\x7B\x33\xEE\x17" |
| 22832 | "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2" |
| 22833 | "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2" |
| 22834 | "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E" |
| 22835 | "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4" |
| 22836 | "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE" |
| 22837 | "\x40\x78\x91\x95\xC4\x2F\xA3\xE8" |
| 22838 | "\x18\xC7\x07\xA6\xC8\xC0\x66\x33" |
| 22839 | "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3" |
| 22840 | "\x40\xF5\x40\x54\xF1\x84\x8C\xEA" |
| 22841 | "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8" |
| 22842 | "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4" |
| 22843 | "\xF8\x17\x99\x8D\x58\x2D\x72\x44" |
| 22844 | "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82" |
| 22845 | "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7" |
| 22846 | "\x68\xA3\xB8\xA5\x93\x74\x2E\x85" |
| 22847 | "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF" |
| 22848 | "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B" |
| 22849 | "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18" |
| 22850 | "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B" |
| 22851 | "\x38\xB8\x48\x36\x66\x4E\x20\x43" |
| 22852 | "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52" |
| 22853 | "\xD7\xDC\xB2\x67\x63\x14\x25\xCD" |
| 22854 | "\xB1\x13\x4B\xDE\x8C\x59\x21\x84" |
| 22855 | "\x81\x8D\x97\x23\x45\x33\x7C\xF3" |
| 22856 | "\xC5\xBC\x79\x95\xAA\x84\x68\x31" |
| 22857 | "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA" |
| 22858 | "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97" |
| 22859 | "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22860 | "\x5F\x74\x8C\x86\x5B\x71\xD0\x20" |
| 22861 | "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5" |
| 22862 | "\x21\x41\x56\x72\x13\xE1\x86\x07" |
| 22863 | "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18" |
| 22864 | "\xFE\x94\x2D\x9F\xE0\x72\x18\x65" |
| 22865 | "\xB2\xA5\x63\x48\xB4\x13\x22\xF7" |
| 22866 | "\x25\xF1\x80\xA8\x7F\x54\x86\x7B" |
| 22867 | "\x39\xAE\x95\x0C\x09\x32\x22\x2D" |
| 22868 | "\x4D\x73\x39\x0C\x09\x2C\x7C\x10" |
| 22869 | "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F" |
| 22870 | "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14" |
| 22871 | "\x65\xEE\x93\x54\xD0\x66\x15\x3C" |
| 22872 | "\x4C\x68\xFD\x64\x0F\xF9\x10\x39" |
| 22873 | "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2" |
| 22874 | "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F" |
| 22875 | "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97" |
| 22876 | "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9" |
| 22877 | "\xBE\x31\x31\x96\x8B\x40\x18\x75" |
| 22878 | "\x11\x75\x14\x32\xA5\x2D\x1B\x6B" |
| 22879 | "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4" |
| 22880 | "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6" |
| 22881 | "\x71\xB0\x12\x57\x89\x0D\xC0\x2B" |
| 22882 | "\x9F\x12\x6A\x04\x67\xF1\x95\x31" |
| 22883 | "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC" |
| 22884 | "\x09\xB0\x43\x96\x4A\x64\x80\x40" |
| 22885 | "\xB9\x72\x19\xDD\x70\x42\xFA\xB1" |
| 22886 | "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C" |
| 22887 | "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB" |
| 22888 | "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6" |
| 22889 | "\x33\x0B\xF3\xD5\x01\x38\x74\xA4" |
| 22890 | "\x67\x1E\x75\x68\xC3\xAD\x76\xE9" |
| 22891 | "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A" |
| 22892 | "\x5F\xC9\x18\x94\x4B\x86\x66\xFC" |
| 22893 | "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9" |
| 22894 | "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8" |
| 22895 | "\x43\xBC\x76\x75\xBF\x6C\x05\xB3" |
| 22896 | "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61" |
| 22897 | "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0" |
| 22898 | "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12" |
| 22899 | "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E" |
| 22900 | "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3" |
| 22901 | "\x7B\xDC\xCE\x15\x97\x27\xB2\x65" |
| 22902 | "\xBC\x0E\x47\xAB\x55\x13\x53\xAB" |
| 22903 | "\x0E\x34\x55\x02\x5F\x27\xC5\x89" |
| 22904 | "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE" |
| 22905 | "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C" |
| 22906 | "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8" |
| 22907 | "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2" |
| 22908 | "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6" |
| 22909 | "\x8D\x4D\x83\x9A\xED\x29\x4E\x14" |
| 22910 | "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A" |
| 22911 | "\x72\x22\xD5\x92\x38\xF1\xA1\x86" |
| 22912 | "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3" |
| 22913 | "\x80\x56\xC3\xD7\x65\xE1\xB3\x86" |
| 22914 | "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06" |
| 22915 | "\x01\xED\xF8\x29\x91\x19\x5C\x9A" |
| 22916 | "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F" |
| 22917 | "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72" |
| 22918 | "\x80\xE7\x29\xDC\x23\x55\x98\x54" |
| 22919 | "\xB1\xFF\x3E\x95\x56\xA8\x78\x78" |
| 22920 | "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93" |
| 22921 | "\x30\x6E\x7E\x51\xBB\x42\x5F\x03" |
| 22922 | "\x43\x94\x23\x7E\xEE\xF0\xA5\x79" |
| 22923 | "\x55\x01\xD4\x58\xB2\xF2\x85\x49" |
| 22924 | "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C", |
| 22925 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 22926 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 22927 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 22928 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 22929 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 22930 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 22931 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 22932 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 22933 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 22934 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 22935 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 22936 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 22937 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 22938 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 22939 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 22940 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 22941 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 22942 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 22943 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 22944 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 22945 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 22946 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 22947 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 22948 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 22949 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 22950 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 22951 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 22952 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 22953 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 22954 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 22955 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 22956 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 22957 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 22958 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 22959 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 22960 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 22961 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 22962 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 22963 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 22964 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 22965 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 22966 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 22967 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 22968 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 22969 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 22970 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 22971 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 22972 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 22973 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 22974 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 22975 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 22976 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 22977 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 22978 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 22979 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 22980 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 22981 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 22982 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 22983 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 22984 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 22985 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 22986 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 22987 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 22988 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 22989 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 22990 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 22991 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 22992 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 22993 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 22994 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 22995 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 22996 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 22997 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 22998 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 22999 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 23000 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 23001 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 23002 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 23003 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 23004 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 23005 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 23006 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 23007 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 23008 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 23009 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 23010 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 23011 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 23012 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 23013 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 23014 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 23015 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 23016 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 23017 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 23018 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 23019 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 23020 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 23021 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 23022 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 23023 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 23024 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 23025 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 23026 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 23027 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 23028 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 23029 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 23030 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 23031 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 23032 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 23033 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 23034 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 23035 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 23036 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 23037 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 23038 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 23039 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 23040 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 23041 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 23042 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 23043 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 23044 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 23045 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 23046 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 23047 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 23048 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 23049 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 23050 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 23051 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 23052 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 23053 | .also_non_np = 1, |
| 23054 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 23055 | .tap = { 1008 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23056 | }, |
| 23057 | }; |
| 23058 | |
| 23059 | static struct cipher_testvec camellia_ctr_enc_tv_template[] = { |
| 23060 | { /* Generated with Crypto++ */ |
| 23061 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 23062 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 23063 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 23064 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 23065 | .klen = 32, |
| 23066 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 23067 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 23068 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 23069 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 23070 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 23071 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 23072 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 23073 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 23074 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 23075 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 23076 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 23077 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 23078 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 23079 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 23080 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 23081 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 23082 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 23083 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 23084 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 23085 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 23086 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 23087 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 23088 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 23089 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 23090 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 23091 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 23092 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 23093 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 23094 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 23095 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 23096 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 23097 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 23098 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 23099 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 23100 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 23101 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 23102 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 23103 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 23104 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 23105 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 23106 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 23107 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 23108 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 23109 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 23110 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 23111 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 23112 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 23113 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 23114 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 23115 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 23116 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 23117 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 23118 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 23119 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 23120 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 23121 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 23122 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 23123 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 23124 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 23125 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 23126 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 23127 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 23128 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 23129 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 23130 | .ilen = 496, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23131 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 23132 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 23133 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 23134 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 23135 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 23136 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 23137 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 23138 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 23139 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 23140 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 23141 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 23142 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 23143 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 23144 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 23145 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 23146 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 23147 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 23148 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 23149 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 23150 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 23151 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 23152 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 23153 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 23154 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 23155 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 23156 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 23157 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 23158 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 23159 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 23160 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 23161 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 23162 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 23163 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 23164 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 23165 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 23166 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 23167 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 23168 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 23169 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 23170 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 23171 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 23172 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 23173 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 23174 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 23175 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 23176 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 23177 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 23178 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 23179 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 23180 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 23181 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 23182 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 23183 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 23184 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 23185 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 23186 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 23187 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 23188 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 23189 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 23190 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 23191 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 23192 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D", |
| 23193 | .rlen = 496, |
| 23194 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23195 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 23196 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 23197 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 23198 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 23199 | .klen = 32, |
| 23200 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 23201 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 23202 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 23203 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 23204 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 23205 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 23206 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 23207 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 23208 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 23209 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 23210 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 23211 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 23212 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 23213 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 23214 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 23215 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 23216 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 23217 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 23218 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 23219 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 23220 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 23221 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 23222 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 23223 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 23224 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 23225 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 23226 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 23227 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 23228 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 23229 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 23230 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 23231 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 23232 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 23233 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 23234 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 23235 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 23236 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 23237 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 23238 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 23239 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 23240 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 23241 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 23242 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 23243 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 23244 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 23245 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 23246 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 23247 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 23248 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 23249 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 23250 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 23251 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 23252 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 23253 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 23254 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 23255 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 23256 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 23257 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 23258 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 23259 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 23260 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 23261 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 23262 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 23263 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 23264 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 23265 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 23266 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 23267 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 23268 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 23269 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 23270 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 23271 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 23272 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 23273 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 23274 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 23275 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 23276 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 23277 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 23278 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 23279 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 23280 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 23281 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 23282 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 23283 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 23284 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 23285 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 23286 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 23287 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 23288 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 23289 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 23290 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 23291 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 23292 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 23293 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 23294 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 23295 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 23296 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 23297 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 23298 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 23299 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 23300 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 23301 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 23302 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 23303 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 23304 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 23305 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 23306 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 23307 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 23308 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 23309 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 23310 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 23311 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 23312 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 23313 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 23314 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 23315 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 23316 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 23317 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 23318 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 23319 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 23320 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 23321 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 23322 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 23323 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 23324 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 23325 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 23326 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 23327 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D" |
| 23328 | "\xE4\x7B\x12", |
| 23329 | .ilen = 1011, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23330 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 23331 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 23332 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 23333 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 23334 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 23335 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 23336 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 23337 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 23338 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 23339 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 23340 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 23341 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 23342 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 23343 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 23344 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 23345 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 23346 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 23347 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 23348 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 23349 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 23350 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 23351 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 23352 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 23353 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 23354 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 23355 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 23356 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 23357 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 23358 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 23359 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 23360 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 23361 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 23362 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 23363 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 23364 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 23365 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 23366 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 23367 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 23368 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 23369 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 23370 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 23371 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 23372 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 23373 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 23374 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 23375 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 23376 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 23377 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 23378 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 23379 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 23380 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 23381 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 23382 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 23383 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 23384 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 23385 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 23386 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 23387 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 23388 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 23389 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 23390 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 23391 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 23392 | "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90" |
| 23393 | "\xE5\x41\x4A\xE2\x3C\x45\x29\x35" |
| 23394 | "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32" |
| 23395 | "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7" |
| 23396 | "\x1D\x8C\x02\x72\x68\x09\xE9\xB6" |
| 23397 | "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4" |
| 23398 | "\x93\x74\xA4\xCE\x20\x23\xBF\x48" |
| 23399 | "\xA5\xDE\x1B\xFA\x40\x69\x31\x98" |
| 23400 | "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5" |
| 23401 | "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA" |
| 23402 | "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4" |
| 23403 | "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F" |
| 23404 | "\xBA\x83\x34\x3C\x42\xCC\x7D\x28" |
| 23405 | "\x29\x63\x4F\xD8\x02\x17\xC5\x07" |
| 23406 | "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09" |
| 23407 | "\x81\x45\x18\xED\xE4\xCB\x42\x3B" |
| 23408 | "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD" |
| 23409 | "\x92\xE5\x02\x97\x96\xCE\xAD\xEC" |
| 23410 | "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC" |
| 23411 | "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E" |
| 23412 | "\xCC\xF8\x5F\xDD\x65\x50\x99\x69" |
| 23413 | "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F" |
| 23414 | "\x05\x93\xB2\xE6\x59\xC8\x28\xFE" |
| 23415 | "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F" |
| 23416 | "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09" |
| 23417 | "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C" |
| 23418 | "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74" |
| 23419 | "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8" |
| 23420 | "\x81\xF5\xD5\x8A\x04\x23\x51\xAC" |
| 23421 | "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B" |
| 23422 | "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA" |
| 23423 | "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB" |
| 23424 | "\x41\x1A\x67\xA6\x40\x82\x70\x8C" |
| 23425 | "\x19\x79\x08\xA4\x51\x20\x7D\xC9" |
| 23426 | "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D" |
| 23427 | "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08" |
| 23428 | "\x00\x70\x12\x56\x56\x50\xAD\x14" |
| 23429 | "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48" |
| 23430 | "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E" |
| 23431 | "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D" |
| 23432 | "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85" |
| 23433 | "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64" |
| 23434 | "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F" |
| 23435 | "\x91\x76\xE8\x15\x66\x34\x9F\xF6" |
| 23436 | "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1" |
| 23437 | "\x38\x46\x47\xC7\x9B\xCA\xE9\x42" |
| 23438 | "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3" |
| 23439 | "\x16\xA0\xED\x42\xBE\xB5\x06\x19" |
| 23440 | "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E" |
| 23441 | "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31" |
| 23442 | "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC" |
| 23443 | "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8" |
| 23444 | "\x94\x5C\x5E\x37\x18\xAD\xED\x8B" |
| 23445 | "\x44\x86\xCA\x5E\x07\xB7\x70\x8D" |
| 23446 | "\x40\x48\x19\x73\x7C\x78\x64\x0B" |
| 23447 | "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1" |
| 23448 | "\x6B\x2C\x84\x10\x45\x42\x2E\xC3" |
| 23449 | "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46" |
| 23450 | "\x74\x28\x9D\x05\x30\x20\x62\x41" |
| 23451 | "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26" |
| 23452 | "\xDF\x58\x51\xED\xFA\xDC\x87\x79" |
| 23453 | "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA" |
| 23454 | "\x45\xE3\x35\x0D\x69\x91\x54\x1C" |
| 23455 | "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C" |
| 23456 | "\xF1\x6B\xD9", |
| 23457 | .rlen = 1011, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 23458 | .also_non_np = 1, |
| 23459 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 23460 | .tap = { 1011 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 23461 | }, { /* Generated with Crypto++ */ |
| 23462 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 23463 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 23464 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 23465 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 23466 | .klen = 32, |
| 23467 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 23468 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 23469 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 23470 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 23471 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 23472 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 23473 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 23474 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 23475 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 23476 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 23477 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 23478 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 23479 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 23480 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 23481 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 23482 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 23483 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 23484 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 23485 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 23486 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 23487 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 23488 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 23489 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 23490 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 23491 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 23492 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 23493 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 23494 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 23495 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 23496 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 23497 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 23498 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 23499 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 23500 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 23501 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 23502 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 23503 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 23504 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 23505 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 23506 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 23507 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 23508 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 23509 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 23510 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 23511 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 23512 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 23513 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 23514 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 23515 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 23516 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 23517 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 23518 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 23519 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 23520 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 23521 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 23522 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 23523 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 23524 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 23525 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 23526 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 23527 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 23528 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 23529 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 23530 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 23531 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 23532 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 23533 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 23534 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 23535 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 23536 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 23537 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 23538 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 23539 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 23540 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 23541 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 23542 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 23543 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 23544 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 23545 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 23546 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 23547 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 23548 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 23549 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 23550 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 23551 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 23552 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 23553 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 23554 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 23555 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 23556 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 23557 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 23558 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 23559 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 23560 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 23561 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 23562 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 23563 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 23564 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 23565 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 23566 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 23567 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 23568 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 23569 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 23570 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 23571 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 23572 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 23573 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 23574 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 23575 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 23576 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 23577 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 23578 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 23579 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 23580 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 23581 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 23582 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 23583 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 23584 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 23585 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 23586 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 23587 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 23588 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 23589 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 23590 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 23591 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 23592 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 23593 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 23594 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 23595 | .ilen = 1008, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 23596 | .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9" |
| 23597 | "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E" |
| 23598 | "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB" |
| 23599 | "\xF7\xC4\x27\x04\x51\x87\xD7\x6F" |
| 23600 | "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4" |
| 23601 | "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48" |
| 23602 | "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A" |
| 23603 | "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B" |
| 23604 | "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07" |
| 23605 | "\x2C\x56\x07\x5E\x37\x30\x60\xA9" |
| 23606 | "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64" |
| 23607 | "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43" |
| 23608 | "\x23\x35\x95\x91\x80\x8A\xC7\xCF" |
| 23609 | "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B" |
| 23610 | "\x05\x19\x48\xE2\x62\xBA\x4F\xF2" |
| 23611 | "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10" |
| 23612 | "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD" |
| 23613 | "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96" |
| 23614 | "\xD9\x0F\x90\x5A\x78\x76\x4D\x77" |
| 23615 | "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD" |
| 23616 | "\xE4\xE8\x20\x2D\x15\x0A\x63\x49" |
| 23617 | "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78" |
| 23618 | "\x28\x07\x09\x1B\x03\x94\x1D\x4B" |
| 23619 | "\x82\x28\x1E\x1D\x95\xBA\xAC\x85" |
| 23620 | "\x71\x6E\x3C\x18\x4B\x77\x74\x79" |
| 23621 | "\xBF\x67\x0A\x53\x3C\x94\xD9\x60" |
| 23622 | "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D" |
| 23623 | "\x27\xD5\x47\xF9\xC3\x4B\x27\x29" |
| 23624 | "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC" |
| 23625 | "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B" |
| 23626 | "\x70\x1C\x84\x81\x72\x4D\xB4\x98" |
| 23627 | "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2" |
| 23628 | "\xFF\xF5\x71\x07\xCD\x90\x23\x13" |
| 23629 | "\x19\xD7\x79\x36\x6C\x9D\x55\x8B" |
| 23630 | "\x93\x78\x86\x05\x69\x46\xD0\xC5" |
| 23631 | "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE" |
| 23632 | "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C" |
| 23633 | "\x83\x4B\xD8\x75\x9C\x18\x04\x7B" |
| 23634 | "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B" |
| 23635 | "\xCC\x01\x45\x90\xA6\x43\x05\x0C" |
| 23636 | "\x6C\x4F\x62\x77\x57\x97\x9F\xEE" |
| 23637 | "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E" |
| 23638 | "\x2C\x43\x98\xFB\x13\x65\x73\xE4" |
| 23639 | "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99" |
| 23640 | "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32" |
| 23641 | "\x17\xC2\xCC\x20\xA1\x19\x26\xAA" |
| 23642 | "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF" |
| 23643 | "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56" |
| 23644 | "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24" |
| 23645 | "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54" |
| 23646 | "\x10\x7F\x50\xDE\x69\x77\xD5\x37" |
| 23647 | "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53" |
| 23648 | "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57" |
| 23649 | "\x3A\xE6\x75\xFE\x89\x00\x6E\x48" |
| 23650 | "\xFB\x99\x17\x2C\xF6\x64\x40\x95" |
| 23651 | "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD" |
| 23652 | "\x52\x05\x24\x34\xF9\x0E\xC8\x64" |
| 23653 | "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE" |
| 23654 | "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22" |
| 23655 | "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E" |
| 23656 | "\x12\xA8\x01\x64\x16\x0B\x26\x5A" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 23657 | "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C" |
| 23658 | "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6" |
| 23659 | "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3" |
| 23660 | "\x3F\x23\x69\x63\x56\x96\x45\xD6" |
| 23661 | "\x74\x23\x1D\x5C\x63\xCC\xD8\x78" |
| 23662 | "\x16\xE2\x9C\xD2\x80\x02\xF2\x28" |
| 23663 | "\x69\x2F\xC4\xA8\x15\x15\x24\x3B" |
| 23664 | "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1" |
| 23665 | "\x03\x58\x1B\x33\x77\x74\x1F\xB4" |
| 23666 | "\x07\x86\xF2\x21\xB7\x41\xAE\xBF" |
| 23667 | "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4" |
| 23668 | "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D" |
| 23669 | "\xF8\x04\xBB\x6D\x62\x33\x87\x26" |
| 23670 | "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09" |
| 23671 | "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E" |
| 23672 | "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A" |
| 23673 | "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF" |
| 23674 | "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C" |
| 23675 | "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11" |
| 23676 | "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD" |
| 23677 | "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB" |
| 23678 | "\xC3\x14\x84\x72\xFD\x41\xDC\xBD" |
| 23679 | "\x75\xBE\xA8\xE5\x16\x48\x64\x39" |
| 23680 | "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D" |
| 23681 | "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D" |
| 23682 | "\x0B\x29\x10\x15\x0E\x13\x3B\xAC" |
| 23683 | "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02" |
| 23684 | "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21" |
| 23685 | "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0" |
| 23686 | "\xF8\x09\xAF\xE4\x31\x26\x92\x2F" |
| 23687 | "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34" |
| 23688 | "\xBE\x50\xB1\x02\x22\x96\xE3\x40" |
| 23689 | "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0" |
| 23690 | "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B" |
| 23691 | "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36" |
| 23692 | "\xD2\x0A\x32\x06\x97\x34\xB9\xF4" |
| 23693 | "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A" |
| 23694 | "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D" |
| 23695 | "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E" |
| 23696 | "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7" |
| 23697 | "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E" |
| 23698 | "\x2C\x07\xD2\x43\x5F\x57\x93\xCA" |
| 23699 | "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1" |
| 23700 | "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E" |
| 23701 | "\x68\xC6\x47\xB9\x76\xCC\x65\x5F" |
| 23702 | "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37" |
| 23703 | "\x5F\x41\xED\x64\x6C\xAD\x5F\xED" |
| 23704 | "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F" |
| 23705 | "\xC2\xC7\xED\x18\x43\xE1\x20\x86" |
| 23706 | "\x5D\xBC\x30\x70\x22\xA1\xDC\x53" |
| 23707 | "\x10\x3A\x8D\x47\x82\xCD\x7F\x59" |
| 23708 | "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07" |
| 23709 | "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5" |
| 23710 | "\xED\x47\x83\xBC\x5F\x62\x84\xDA" |
| 23711 | "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8" |
| 23712 | "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A" |
| 23713 | "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6" |
| 23714 | "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE" |
| 23715 | "\x37\x9E\x29\xF9\x2A\x18\x73\x0D" |
| 23716 | "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA" |
| 23717 | "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56" |
| 23718 | "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C" |
| 23719 | "\xC5\x9B\x03\x70\x29\x2A\x49\x09" |
| 23720 | "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71" |
| 23721 | "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36", |
| 23722 | .rlen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23723 | }, |
| 23724 | }; |
| 23725 | |
| 23726 | static struct cipher_testvec camellia_ctr_dec_tv_template[] = { |
| 23727 | { /* Generated with Crypto++ */ |
| 23728 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 23729 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 23730 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 23731 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 23732 | .klen = 32, |
| 23733 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 23734 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 23735 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 23736 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 23737 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 23738 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 23739 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 23740 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 23741 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 23742 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 23743 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 23744 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 23745 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 23746 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 23747 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 23748 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 23749 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 23750 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 23751 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 23752 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 23753 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 23754 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 23755 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 23756 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 23757 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 23758 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 23759 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 23760 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 23761 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 23762 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 23763 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 23764 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 23765 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 23766 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 23767 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 23768 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 23769 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 23770 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 23771 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 23772 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 23773 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 23774 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 23775 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 23776 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 23777 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 23778 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 23779 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 23780 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 23781 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 23782 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 23783 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 23784 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 23785 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 23786 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 23787 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 23788 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 23789 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 23790 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 23791 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 23792 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 23793 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 23794 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 23795 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 23796 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D", |
| 23797 | .ilen = 496, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23798 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 23799 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 23800 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 23801 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 23802 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 23803 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 23804 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 23805 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 23806 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 23807 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 23808 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 23809 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 23810 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 23811 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 23812 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 23813 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 23814 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 23815 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 23816 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 23817 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 23818 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 23819 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 23820 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 23821 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 23822 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 23823 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 23824 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 23825 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 23826 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 23827 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 23828 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 23829 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 23830 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 23831 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 23832 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 23833 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 23834 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 23835 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 23836 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 23837 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 23838 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 23839 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 23840 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 23841 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 23842 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 23843 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 23844 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 23845 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 23846 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 23847 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 23848 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 23849 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 23850 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 23851 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 23852 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 23853 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 23854 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 23855 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 23856 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 23857 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 23858 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 23859 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 23860 | .rlen = 496, |
| 23861 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23862 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 23863 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 23864 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 23865 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 23866 | .klen = 32, |
| 23867 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 23868 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 23869 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 23870 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 23871 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 23872 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 23873 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 23874 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 23875 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 23876 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 23877 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 23878 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 23879 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 23880 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 23881 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 23882 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 23883 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 23884 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 23885 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 23886 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 23887 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 23888 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 23889 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 23890 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 23891 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 23892 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 23893 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 23894 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 23895 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 23896 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 23897 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 23898 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 23899 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 23900 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 23901 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 23902 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 23903 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 23904 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 23905 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 23906 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 23907 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 23908 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 23909 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 23910 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 23911 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 23912 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 23913 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 23914 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 23915 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 23916 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 23917 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 23918 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 23919 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 23920 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 23921 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 23922 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 23923 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 23924 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 23925 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 23926 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 23927 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 23928 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 23929 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 23930 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 23931 | "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90" |
| 23932 | "\xE5\x41\x4A\xE2\x3C\x45\x29\x35" |
| 23933 | "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32" |
| 23934 | "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7" |
| 23935 | "\x1D\x8C\x02\x72\x68\x09\xE9\xB6" |
| 23936 | "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4" |
| 23937 | "\x93\x74\xA4\xCE\x20\x23\xBF\x48" |
| 23938 | "\xA5\xDE\x1B\xFA\x40\x69\x31\x98" |
| 23939 | "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5" |
| 23940 | "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA" |
| 23941 | "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4" |
| 23942 | "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F" |
| 23943 | "\xBA\x83\x34\x3C\x42\xCC\x7D\x28" |
| 23944 | "\x29\x63\x4F\xD8\x02\x17\xC5\x07" |
| 23945 | "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09" |
| 23946 | "\x81\x45\x18\xED\xE4\xCB\x42\x3B" |
| 23947 | "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD" |
| 23948 | "\x92\xE5\x02\x97\x96\xCE\xAD\xEC" |
| 23949 | "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC" |
| 23950 | "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E" |
| 23951 | "\xCC\xF8\x5F\xDD\x65\x50\x99\x69" |
| 23952 | "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F" |
| 23953 | "\x05\x93\xB2\xE6\x59\xC8\x28\xFE" |
| 23954 | "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F" |
| 23955 | "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09" |
| 23956 | "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C" |
| 23957 | "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74" |
| 23958 | "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8" |
| 23959 | "\x81\xF5\xD5\x8A\x04\x23\x51\xAC" |
| 23960 | "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B" |
| 23961 | "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA" |
| 23962 | "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB" |
| 23963 | "\x41\x1A\x67\xA6\x40\x82\x70\x8C" |
| 23964 | "\x19\x79\x08\xA4\x51\x20\x7D\xC9" |
| 23965 | "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D" |
| 23966 | "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08" |
| 23967 | "\x00\x70\x12\x56\x56\x50\xAD\x14" |
| 23968 | "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48" |
| 23969 | "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E" |
| 23970 | "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D" |
| 23971 | "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85" |
| 23972 | "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64" |
| 23973 | "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F" |
| 23974 | "\x91\x76\xE8\x15\x66\x34\x9F\xF6" |
| 23975 | "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1" |
| 23976 | "\x38\x46\x47\xC7\x9B\xCA\xE9\x42" |
| 23977 | "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3" |
| 23978 | "\x16\xA0\xED\x42\xBE\xB5\x06\x19" |
| 23979 | "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E" |
| 23980 | "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31" |
| 23981 | "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC" |
| 23982 | "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8" |
| 23983 | "\x94\x5C\x5E\x37\x18\xAD\xED\x8B" |
| 23984 | "\x44\x86\xCA\x5E\x07\xB7\x70\x8D" |
| 23985 | "\x40\x48\x19\x73\x7C\x78\x64\x0B" |
| 23986 | "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1" |
| 23987 | "\x6B\x2C\x84\x10\x45\x42\x2E\xC3" |
| 23988 | "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46" |
| 23989 | "\x74\x28\x9D\x05\x30\x20\x62\x41" |
| 23990 | "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26" |
| 23991 | "\xDF\x58\x51\xED\xFA\xDC\x87\x79" |
| 23992 | "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA" |
| 23993 | "\x45\xE3\x35\x0D\x69\x91\x54\x1C" |
| 23994 | "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C" |
| 23995 | "\xF1\x6B\xD9", |
| 23996 | .ilen = 1011, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 23997 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 23998 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 23999 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 24000 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 24001 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 24002 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 24003 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 24004 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 24005 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 24006 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 24007 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 24008 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 24009 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 24010 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 24011 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 24012 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 24013 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 24014 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 24015 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 24016 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 24017 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 24018 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 24019 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 24020 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 24021 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 24022 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 24023 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 24024 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 24025 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 24026 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 24027 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 24028 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 24029 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 24030 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 24031 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 24032 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 24033 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 24034 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 24035 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 24036 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 24037 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 24038 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 24039 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 24040 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 24041 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 24042 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 24043 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 24044 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 24045 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 24046 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 24047 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 24048 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 24049 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 24050 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 24051 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 24052 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 24053 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 24054 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 24055 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 24056 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 24057 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 24058 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 24059 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 24060 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 24061 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 24062 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 24063 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 24064 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 24065 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 24066 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 24067 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 24068 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 24069 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 24070 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 24071 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 24072 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 24073 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 24074 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 24075 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 24076 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 24077 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 24078 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 24079 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 24080 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 24081 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 24082 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 24083 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 24084 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 24085 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 24086 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 24087 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 24088 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 24089 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 24090 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 24091 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 24092 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 24093 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 24094 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 24095 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 24096 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 24097 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 24098 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 24099 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 24100 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 24101 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 24102 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 24103 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 24104 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 24105 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 24106 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 24107 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 24108 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 24109 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 24110 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 24111 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 24112 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 24113 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 24114 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 24115 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 24116 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 24117 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 24118 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 24119 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 24120 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 24121 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 24122 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D" |
| 24123 | "\xE4\x7B\x12", |
| 24124 | .rlen = 1011, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 24125 | .also_non_np = 1, |
| 24126 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 24127 | .tap = { 1011 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 24128 | }, { /* Generated with Crypto++ */ |
| 24129 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 24130 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 24131 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 24132 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 24133 | .klen = 32, |
| 24134 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 24135 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 24136 | .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9" |
| 24137 | "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E" |
| 24138 | "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB" |
| 24139 | "\xF7\xC4\x27\x04\x51\x87\xD7\x6F" |
| 24140 | "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4" |
| 24141 | "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48" |
| 24142 | "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A" |
| 24143 | "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B" |
| 24144 | "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07" |
| 24145 | "\x2C\x56\x07\x5E\x37\x30\x60\xA9" |
| 24146 | "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64" |
| 24147 | "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43" |
| 24148 | "\x23\x35\x95\x91\x80\x8A\xC7\xCF" |
| 24149 | "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B" |
| 24150 | "\x05\x19\x48\xE2\x62\xBA\x4F\xF2" |
| 24151 | "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10" |
| 24152 | "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD" |
| 24153 | "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96" |
| 24154 | "\xD9\x0F\x90\x5A\x78\x76\x4D\x77" |
| 24155 | "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD" |
| 24156 | "\xE4\xE8\x20\x2D\x15\x0A\x63\x49" |
| 24157 | "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78" |
| 24158 | "\x28\x07\x09\x1B\x03\x94\x1D\x4B" |
| 24159 | "\x82\x28\x1E\x1D\x95\xBA\xAC\x85" |
| 24160 | "\x71\x6E\x3C\x18\x4B\x77\x74\x79" |
| 24161 | "\xBF\x67\x0A\x53\x3C\x94\xD9\x60" |
| 24162 | "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D" |
| 24163 | "\x27\xD5\x47\xF9\xC3\x4B\x27\x29" |
| 24164 | "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC" |
| 24165 | "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B" |
| 24166 | "\x70\x1C\x84\x81\x72\x4D\xB4\x98" |
| 24167 | "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2" |
| 24168 | "\xFF\xF5\x71\x07\xCD\x90\x23\x13" |
| 24169 | "\x19\xD7\x79\x36\x6C\x9D\x55\x8B" |
| 24170 | "\x93\x78\x86\x05\x69\x46\xD0\xC5" |
| 24171 | "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE" |
| 24172 | "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C" |
| 24173 | "\x83\x4B\xD8\x75\x9C\x18\x04\x7B" |
| 24174 | "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B" |
| 24175 | "\xCC\x01\x45\x90\xA6\x43\x05\x0C" |
| 24176 | "\x6C\x4F\x62\x77\x57\x97\x9F\xEE" |
| 24177 | "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E" |
| 24178 | "\x2C\x43\x98\xFB\x13\x65\x73\xE4" |
| 24179 | "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99" |
| 24180 | "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32" |
| 24181 | "\x17\xC2\xCC\x20\xA1\x19\x26\xAA" |
| 24182 | "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF" |
| 24183 | "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56" |
| 24184 | "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24" |
| 24185 | "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54" |
| 24186 | "\x10\x7F\x50\xDE\x69\x77\xD5\x37" |
| 24187 | "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53" |
| 24188 | "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57" |
| 24189 | "\x3A\xE6\x75\xFE\x89\x00\x6E\x48" |
| 24190 | "\xFB\x99\x17\x2C\xF6\x64\x40\x95" |
| 24191 | "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD" |
| 24192 | "\x52\x05\x24\x34\xF9\x0E\xC8\x64" |
| 24193 | "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE" |
| 24194 | "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22" |
| 24195 | "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E" |
| 24196 | "\x12\xA8\x01\x64\x16\x0B\x26\x5A" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 24197 | "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C" |
| 24198 | "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6" |
| 24199 | "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3" |
| 24200 | "\x3F\x23\x69\x63\x56\x96\x45\xD6" |
| 24201 | "\x74\x23\x1D\x5C\x63\xCC\xD8\x78" |
| 24202 | "\x16\xE2\x9C\xD2\x80\x02\xF2\x28" |
| 24203 | "\x69\x2F\xC4\xA8\x15\x15\x24\x3B" |
| 24204 | "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1" |
| 24205 | "\x03\x58\x1B\x33\x77\x74\x1F\xB4" |
| 24206 | "\x07\x86\xF2\x21\xB7\x41\xAE\xBF" |
| 24207 | "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4" |
| 24208 | "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D" |
| 24209 | "\xF8\x04\xBB\x6D\x62\x33\x87\x26" |
| 24210 | "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09" |
| 24211 | "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E" |
| 24212 | "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A" |
| 24213 | "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF" |
| 24214 | "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C" |
| 24215 | "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11" |
| 24216 | "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD" |
| 24217 | "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB" |
| 24218 | "\xC3\x14\x84\x72\xFD\x41\xDC\xBD" |
| 24219 | "\x75\xBE\xA8\xE5\x16\x48\x64\x39" |
| 24220 | "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D" |
| 24221 | "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D" |
| 24222 | "\x0B\x29\x10\x15\x0E\x13\x3B\xAC" |
| 24223 | "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02" |
| 24224 | "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21" |
| 24225 | "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0" |
| 24226 | "\xF8\x09\xAF\xE4\x31\x26\x92\x2F" |
| 24227 | "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34" |
| 24228 | "\xBE\x50\xB1\x02\x22\x96\xE3\x40" |
| 24229 | "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0" |
| 24230 | "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B" |
| 24231 | "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36" |
| 24232 | "\xD2\x0A\x32\x06\x97\x34\xB9\xF4" |
| 24233 | "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A" |
| 24234 | "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D" |
| 24235 | "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E" |
| 24236 | "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7" |
| 24237 | "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E" |
| 24238 | "\x2C\x07\xD2\x43\x5F\x57\x93\xCA" |
| 24239 | "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1" |
| 24240 | "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E" |
| 24241 | "\x68\xC6\x47\xB9\x76\xCC\x65\x5F" |
| 24242 | "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37" |
| 24243 | "\x5F\x41\xED\x64\x6C\xAD\x5F\xED" |
| 24244 | "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F" |
| 24245 | "\xC2\xC7\xED\x18\x43\xE1\x20\x86" |
| 24246 | "\x5D\xBC\x30\x70\x22\xA1\xDC\x53" |
| 24247 | "\x10\x3A\x8D\x47\x82\xCD\x7F\x59" |
| 24248 | "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07" |
| 24249 | "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5" |
| 24250 | "\xED\x47\x83\xBC\x5F\x62\x84\xDA" |
| 24251 | "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8" |
| 24252 | "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A" |
| 24253 | "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6" |
| 24254 | "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE" |
| 24255 | "\x37\x9E\x29\xF9\x2A\x18\x73\x0D" |
| 24256 | "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA" |
| 24257 | "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56" |
| 24258 | "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C" |
| 24259 | "\xC5\x9B\x03\x70\x29\x2A\x49\x09" |
| 24260 | "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71" |
| 24261 | "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36", |
| 24262 | .ilen = 1008, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 24263 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 24264 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 24265 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 24266 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 24267 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 24268 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 24269 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 24270 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 24271 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 24272 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 24273 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 24274 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 24275 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 24276 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 24277 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 24278 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 24279 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 24280 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 24281 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 24282 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 24283 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 24284 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 24285 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 24286 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 24287 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 24288 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 24289 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 24290 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 24291 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 24292 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 24293 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 24294 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 24295 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 24296 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 24297 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 24298 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 24299 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 24300 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 24301 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 24302 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 24303 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 24304 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 24305 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 24306 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 24307 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 24308 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 24309 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 24310 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 24311 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 24312 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 24313 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 24314 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 24315 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 24316 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 24317 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 24318 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 24319 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 24320 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 24321 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 24322 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 24323 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 24324 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 24325 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 24326 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 24327 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 24328 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 24329 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 24330 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 24331 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 24332 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 24333 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 24334 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 24335 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 24336 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 24337 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 24338 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 24339 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 24340 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 24341 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 24342 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 24343 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 24344 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 24345 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 24346 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 24347 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 24348 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 24349 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 24350 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 24351 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 24352 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 24353 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 24354 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 24355 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 24356 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 24357 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 24358 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 24359 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 24360 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 24361 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 24362 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 24363 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 24364 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 24365 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 24366 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 24367 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 24368 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 24369 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 24370 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 24371 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 24372 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 24373 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 24374 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 24375 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 24376 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 24377 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 24378 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 24379 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 24380 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 24381 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 24382 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 24383 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 24384 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 24385 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 24386 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 24387 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 24388 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 24389 | .rlen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 24390 | }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 24391 | }; |
| 24392 | |
| 24393 | static struct cipher_testvec camellia_lrw_enc_tv_template[] = { |
| 24394 | /* Generated from AES-LRW test vectors */ |
| 24395 | { |
| 24396 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 24397 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 24398 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 24399 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 24400 | .klen = 32, |
| 24401 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24402 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24403 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24404 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24405 | .ilen = 16, |
| 24406 | .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 24407 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 24408 | .rlen = 16, |
| 24409 | }, { |
| 24410 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 24411 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 24412 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 24413 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 24414 | .klen = 32, |
| 24415 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24416 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 24417 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24418 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24419 | .ilen = 16, |
| 24420 | .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 24421 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 24422 | .rlen = 16, |
| 24423 | }, { |
| 24424 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 24425 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 24426 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 24427 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 24428 | .klen = 32, |
| 24429 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24430 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 24431 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24432 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24433 | .ilen = 16, |
| 24434 | .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 24435 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 24436 | .rlen = 16, |
| 24437 | }, { |
| 24438 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 24439 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 24440 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 24441 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 24442 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 24443 | .klen = 40, |
| 24444 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24445 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24446 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24447 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24448 | .ilen = 16, |
| 24449 | .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 24450 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 24451 | .rlen = 16, |
| 24452 | }, { |
| 24453 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 24454 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 24455 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 24456 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 24457 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 24458 | .klen = 40, |
| 24459 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24460 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 24461 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24462 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24463 | .ilen = 16, |
| 24464 | .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 24465 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 24466 | .rlen = 16, |
| 24467 | }, { |
| 24468 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 24469 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 24470 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 24471 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 24472 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 24473 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 24474 | .klen = 48, |
| 24475 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24476 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24477 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24478 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24479 | .ilen = 16, |
| 24480 | .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 24481 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 24482 | .rlen = 16, |
| 24483 | }, { |
| 24484 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 24485 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 24486 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 24487 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 24488 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 24489 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 24490 | .klen = 48, |
| 24491 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24492 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 24493 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24494 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24495 | .ilen = 16, |
| 24496 | .result = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 24497 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 24498 | .rlen = 16, |
| 24499 | }, { |
| 24500 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 24501 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 24502 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 24503 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 24504 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 24505 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 24506 | .klen = 48, |
| 24507 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24508 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24509 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 24510 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 24511 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 24512 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 24513 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 24514 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 24515 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 24516 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 24517 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 24518 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 24519 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 24520 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 24521 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 24522 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 24523 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 24524 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 24525 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 24526 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 24527 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 24528 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 24529 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 24530 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 24531 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 24532 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 24533 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 24534 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 24535 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 24536 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 24537 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 24538 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 24539 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 24540 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 24541 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 24542 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 24543 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 24544 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 24545 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 24546 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 24547 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 24548 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 24549 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 24550 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 24551 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 24552 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 24553 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 24554 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 24555 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 24556 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 24557 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 24558 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 24559 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 24560 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 24561 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 24562 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 24563 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 24564 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 24565 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 24566 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 24567 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 24568 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 24569 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 24570 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 24571 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 24572 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 24573 | .ilen = 512, |
| 24574 | .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 24575 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 24576 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 24577 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 24578 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 24579 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 24580 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 24581 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 24582 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 24583 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 24584 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 24585 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 24586 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 24587 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 24588 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 24589 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 24590 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 24591 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 24592 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 24593 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 24594 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 24595 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 24596 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 24597 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 24598 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 24599 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 24600 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 24601 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 24602 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 24603 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 24604 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 24605 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 24606 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 24607 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 24608 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 24609 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 24610 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 24611 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 24612 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 24613 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 24614 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 24615 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 24616 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 24617 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 24618 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 24619 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 24620 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 24621 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 24622 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 24623 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 24624 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 24625 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 24626 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 24627 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 24628 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 24629 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 24630 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 24631 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 24632 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 24633 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 24634 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 24635 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 24636 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 24637 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 24638 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 24639 | .also_non_np = 1, |
| 24640 | .np = 2, |
| 24641 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 24642 | }, |
| 24643 | }; |
| 24644 | |
| 24645 | static struct cipher_testvec camellia_lrw_dec_tv_template[] = { |
| 24646 | /* Generated from AES-LRW test vectors */ |
| 24647 | /* same as enc vectors with input and result reversed */ |
| 24648 | { |
| 24649 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 24650 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 24651 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 24652 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 24653 | .klen = 32, |
| 24654 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24655 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24656 | .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 24657 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 24658 | .ilen = 16, |
| 24659 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24660 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24661 | .rlen = 16, |
| 24662 | }, { |
| 24663 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 24664 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 24665 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 24666 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 24667 | .klen = 32, |
| 24668 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24669 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 24670 | .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 24671 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 24672 | .ilen = 16, |
| 24673 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24674 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24675 | .rlen = 16, |
| 24676 | }, { |
| 24677 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 24678 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 24679 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 24680 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 24681 | .klen = 32, |
| 24682 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24683 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 24684 | .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 24685 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 24686 | .ilen = 16, |
| 24687 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24688 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24689 | .rlen = 16, |
| 24690 | }, { |
| 24691 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 24692 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 24693 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 24694 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 24695 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 24696 | .klen = 40, |
| 24697 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24698 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24699 | .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 24700 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 24701 | .ilen = 16, |
| 24702 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24703 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24704 | .rlen = 16, |
| 24705 | }, { |
| 24706 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 24707 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 24708 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 24709 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 24710 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 24711 | .klen = 40, |
| 24712 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24713 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 24714 | .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 24715 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 24716 | .ilen = 16, |
| 24717 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24718 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24719 | .rlen = 16, |
| 24720 | }, { |
| 24721 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 24722 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 24723 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 24724 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 24725 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 24726 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 24727 | .klen = 48, |
| 24728 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24729 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24730 | .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 24731 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 24732 | .ilen = 16, |
| 24733 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24734 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24735 | .rlen = 16, |
| 24736 | }, { |
| 24737 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 24738 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 24739 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 24740 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 24741 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 24742 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 24743 | .klen = 48, |
| 24744 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24745 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 24746 | .input = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 24747 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 24748 | .ilen = 16, |
| 24749 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24750 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 24751 | .rlen = 16, |
| 24752 | }, { |
| 24753 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 24754 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 24755 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 24756 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 24757 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 24758 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 24759 | .klen = 48, |
| 24760 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24761 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24762 | .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 24763 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 24764 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 24765 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 24766 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 24767 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 24768 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 24769 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 24770 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 24771 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 24772 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 24773 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 24774 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 24775 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 24776 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 24777 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 24778 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 24779 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 24780 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 24781 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 24782 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 24783 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 24784 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 24785 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 24786 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 24787 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 24788 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 24789 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 24790 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 24791 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 24792 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 24793 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 24794 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 24795 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 24796 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 24797 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 24798 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 24799 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 24800 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 24801 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 24802 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 24803 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 24804 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 24805 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 24806 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 24807 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 24808 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 24809 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 24810 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 24811 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 24812 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 24813 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 24814 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 24815 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 24816 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 24817 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 24818 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 24819 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 24820 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 24821 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 24822 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 24823 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 24824 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 24825 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 24826 | .ilen = 512, |
| 24827 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 24828 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 24829 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 24830 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 24831 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 24832 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 24833 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 24834 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 24835 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 24836 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 24837 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 24838 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 24839 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 24840 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 24841 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 24842 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 24843 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 24844 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 24845 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 24846 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 24847 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 24848 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 24849 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 24850 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 24851 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 24852 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 24853 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 24854 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 24855 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 24856 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 24857 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 24858 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 24859 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 24860 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 24861 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 24862 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 24863 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 24864 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 24865 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 24866 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 24867 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 24868 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 24869 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 24870 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 24871 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 24872 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 24873 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 24874 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 24875 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 24876 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 24877 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 24878 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 24879 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 24880 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 24881 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 24882 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 24883 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 24884 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 24885 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 24886 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 24887 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 24888 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 24889 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 24890 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 24891 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 24892 | .also_non_np = 1, |
| 24893 | .np = 2, |
| 24894 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 24895 | }, |
| 24896 | }; |
| 24897 | |
| 24898 | static struct cipher_testvec camellia_xts_enc_tv_template[] = { |
| 24899 | /* Generated from AES-XTS test vectors */ |
| 24900 | { |
| 24901 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24902 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24903 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24904 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24905 | .klen = 32, |
| 24906 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24907 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24908 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24909 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24910 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24911 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24912 | .ilen = 32, |
| 24913 | .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 24914 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 24915 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 24916 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 24917 | .rlen = 32, |
| 24918 | }, { |
| 24919 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 24920 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 24921 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 24922 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 24923 | .klen = 32, |
| 24924 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 24925 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24926 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 24927 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 24928 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 24929 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 24930 | .ilen = 32, |
| 24931 | .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 24932 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 24933 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 24934 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 24935 | .rlen = 32, |
| 24936 | }, { |
| 24937 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 24938 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 24939 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 24940 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 24941 | .klen = 32, |
| 24942 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 24943 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24944 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 24945 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 24946 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 24947 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 24948 | .ilen = 32, |
| 24949 | .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 24950 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 24951 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 24952 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 24953 | .rlen = 32, |
| 24954 | }, { |
| 24955 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 24956 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 24957 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 24958 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 24959 | .klen = 32, |
| 24960 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24961 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24962 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 24963 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 24964 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 24965 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 24966 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 24967 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 24968 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 24969 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 24970 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 24971 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 24972 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 24973 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 24974 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 24975 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 24976 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 24977 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 24978 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 24979 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 24980 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 24981 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 24982 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 24983 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 24984 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 24985 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 24986 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24987 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 24988 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 24989 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 24990 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 24991 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 24992 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 24993 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 24994 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 24995 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 24996 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 24997 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 24998 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 24999 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25000 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25001 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25002 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25003 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25004 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25005 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25006 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25007 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25008 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25009 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25010 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25011 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25012 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25013 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25014 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25015 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25016 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25017 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25018 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25019 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25020 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25021 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25022 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25023 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25024 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25025 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 25026 | .ilen = 512, |
| 25027 | .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 25028 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 25029 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 25030 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 25031 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 25032 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 25033 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 25034 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 25035 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 25036 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 25037 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 25038 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 25039 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 25040 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 25041 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 25042 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 25043 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 25044 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 25045 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 25046 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 25047 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 25048 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 25049 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 25050 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 25051 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 25052 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 25053 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 25054 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 25055 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 25056 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 25057 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 25058 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 25059 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 25060 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 25061 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 25062 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 25063 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 25064 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 25065 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 25066 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 25067 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 25068 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 25069 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 25070 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 25071 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 25072 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 25073 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 25074 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 25075 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 25076 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 25077 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 25078 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 25079 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 25080 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 25081 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 25082 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 25083 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 25084 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 25085 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 25086 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 25087 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 25088 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 25089 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 25090 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 25091 | .rlen = 512, |
| 25092 | }, { |
| 25093 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 25094 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 25095 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 25096 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 25097 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 25098 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 25099 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 25100 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 25101 | .klen = 64, |
| 25102 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 25103 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25104 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25105 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25106 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25107 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 25108 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 25109 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25110 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25111 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25112 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25113 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25114 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25115 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25116 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25117 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25118 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25119 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25120 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25121 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25122 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25123 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25124 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25125 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25126 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25127 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25128 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25129 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25130 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25131 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25132 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25133 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25134 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25135 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 25136 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25137 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25138 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25139 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 25140 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 25141 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25142 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25143 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25144 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25145 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25146 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25147 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25148 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25149 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25150 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25151 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25152 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25153 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25154 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25155 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25156 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25157 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25158 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25159 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25160 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25161 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25162 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25163 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25164 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25165 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25166 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25167 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 25168 | .ilen = 512, |
| 25169 | .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 25170 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 25171 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 25172 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 25173 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 25174 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 25175 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 25176 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 25177 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 25178 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 25179 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 25180 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 25181 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 25182 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 25183 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 25184 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 25185 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 25186 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 25187 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 25188 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 25189 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 25190 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 25191 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 25192 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 25193 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 25194 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 25195 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 25196 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 25197 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 25198 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 25199 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 25200 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 25201 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 25202 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 25203 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 25204 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 25205 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 25206 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 25207 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 25208 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 25209 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 25210 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 25211 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 25212 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 25213 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 25214 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 25215 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 25216 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 25217 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 25218 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 25219 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 25220 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 25221 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 25222 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 25223 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 25224 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 25225 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 25226 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 25227 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 25228 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 25229 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 25230 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 25231 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 25232 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 25233 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 25234 | .also_non_np = 1, |
| 25235 | .np = 2, |
| 25236 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 25237 | }, |
| 25238 | }; |
| 25239 | |
| 25240 | static struct cipher_testvec camellia_xts_dec_tv_template[] = { |
| 25241 | /* Generated from AES-XTS test vectors */ |
| 25242 | /* same as enc vectors with input and result reversed */ |
| 25243 | { |
| 25244 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25245 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25246 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25247 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25248 | .klen = 32, |
| 25249 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25250 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25251 | .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 25252 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 25253 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 25254 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 25255 | .ilen = 32, |
| 25256 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25257 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25258 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25259 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25260 | .rlen = 32, |
| 25261 | }, { |
| 25262 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 25263 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 25264 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 25265 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 25266 | .klen = 32, |
| 25267 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 25268 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25269 | .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 25270 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 25271 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 25272 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 25273 | .ilen = 32, |
| 25274 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 25275 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 25276 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 25277 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 25278 | .rlen = 32, |
| 25279 | }, { |
| 25280 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 25281 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 25282 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 25283 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 25284 | .klen = 32, |
| 25285 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 25286 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25287 | .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 25288 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 25289 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 25290 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 25291 | .ilen = 32, |
| 25292 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 25293 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 25294 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 25295 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 25296 | .rlen = 32, |
| 25297 | }, { |
| 25298 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 25299 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 25300 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 25301 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 25302 | .klen = 32, |
| 25303 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25304 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25305 | .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 25306 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 25307 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 25308 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 25309 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 25310 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 25311 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 25312 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 25313 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 25314 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 25315 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 25316 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 25317 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 25318 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 25319 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 25320 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 25321 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 25322 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 25323 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 25324 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 25325 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 25326 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 25327 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 25328 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 25329 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 25330 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 25331 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 25332 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 25333 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 25334 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 25335 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 25336 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 25337 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 25338 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 25339 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 25340 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 25341 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 25342 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 25343 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 25344 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 25345 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 25346 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 25347 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 25348 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 25349 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 25350 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 25351 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 25352 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 25353 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 25354 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 25355 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 25356 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 25357 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 25358 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 25359 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 25360 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 25361 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 25362 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 25363 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 25364 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 25365 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 25366 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 25367 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 25368 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 25369 | .ilen = 512, |
| 25370 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25371 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25372 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25373 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 25374 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 25375 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25376 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25377 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25378 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25379 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25380 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25381 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25382 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25383 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25384 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25385 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25386 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25387 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25388 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25389 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25390 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25391 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25392 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25393 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25394 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25395 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25396 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25397 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25398 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25399 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25400 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25401 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 25402 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25403 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25404 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25405 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 25406 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 25407 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25408 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25409 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25410 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25411 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25412 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25413 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25414 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25415 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25416 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25417 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25418 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25419 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25420 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25421 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25422 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25423 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25424 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25425 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25426 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25427 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25428 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25429 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25430 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25431 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25432 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25433 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 25434 | .rlen = 512, |
| 25435 | }, { |
| 25436 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 25437 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 25438 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 25439 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 25440 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 25441 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 25442 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 25443 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 25444 | .klen = 64, |
| 25445 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 25446 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25447 | .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 25448 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 25449 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 25450 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 25451 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 25452 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 25453 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 25454 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 25455 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 25456 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 25457 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 25458 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 25459 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 25460 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 25461 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 25462 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 25463 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 25464 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 25465 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 25466 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 25467 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 25468 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 25469 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 25470 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 25471 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 25472 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 25473 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 25474 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 25475 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 25476 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 25477 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 25478 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 25479 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 25480 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 25481 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 25482 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 25483 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 25484 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 25485 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 25486 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 25487 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 25488 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 25489 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 25490 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 25491 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 25492 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 25493 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 25494 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 25495 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 25496 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 25497 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 25498 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 25499 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 25500 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 25501 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 25502 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 25503 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 25504 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 25505 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 25506 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 25507 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 25508 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 25509 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 25510 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 25511 | .ilen = 512, |
| 25512 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25513 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25514 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25515 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 25516 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 25517 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25518 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25519 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25520 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25521 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25522 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25523 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25524 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25525 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25526 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25527 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25528 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25529 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25530 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25531 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25532 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25533 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25534 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25535 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25536 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25537 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25538 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25539 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25540 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25541 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25542 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25543 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 25544 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25545 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25546 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25547 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 25548 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 25549 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25550 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25551 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25552 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25553 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25554 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25555 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25556 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25557 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25558 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25559 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25560 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25561 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25562 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25563 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25564 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25565 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25566 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25567 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25568 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25569 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25570 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25571 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25572 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25573 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25574 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25575 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 25576 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 25577 | .also_non_np = 1, |
| 25578 | .np = 2, |
| 25579 | .tap = { 512 - 16, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 25580 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 25581 | }; |
| 25582 | |
| 25583 | /* |
| 25584 | * SEED test vectors |
| 25585 | */ |
| 25586 | #define SEED_ENC_TEST_VECTORS 4 |
| 25587 | #define SEED_DEC_TEST_VECTORS 4 |
| 25588 | |
| 25589 | static struct cipher_testvec seed_enc_tv_template[] = { |
| 25590 | { |
| 25591 | .key = zeroed_string, |
| 25592 | .klen = 16, |
| 25593 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25594 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 25595 | .ilen = 16, |
| 25596 | .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 25597 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 25598 | .rlen = 16, |
| 25599 | }, { |
| 25600 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25601 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 25602 | .klen = 16, |
| 25603 | .input = zeroed_string, |
| 25604 | .ilen = 16, |
| 25605 | .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 25606 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 25607 | .rlen = 16, |
| 25608 | }, { |
| 25609 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 25610 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 25611 | .klen = 16, |
| 25612 | .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 25613 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 25614 | .ilen = 16, |
| 25615 | .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 25616 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 25617 | .rlen = 16, |
| 25618 | }, { |
| 25619 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 25620 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 25621 | .klen = 16, |
| 25622 | .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 25623 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 25624 | .ilen = 16, |
| 25625 | .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 25626 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 25627 | .rlen = 16, |
| 25628 | } |
| 25629 | }; |
| 25630 | |
| 25631 | static struct cipher_testvec seed_dec_tv_template[] = { |
| 25632 | { |
| 25633 | .key = zeroed_string, |
| 25634 | .klen = 16, |
| 25635 | .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 25636 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 25637 | .ilen = 16, |
| 25638 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25639 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 25640 | .rlen = 16, |
| 25641 | }, { |
| 25642 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25643 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 25644 | .klen = 16, |
| 25645 | .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 25646 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 25647 | .ilen = 16, |
| 25648 | .result = zeroed_string, |
| 25649 | .rlen = 16, |
| 25650 | }, { |
| 25651 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 25652 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 25653 | .klen = 16, |
| 25654 | .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 25655 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 25656 | .ilen = 16, |
| 25657 | .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 25658 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 25659 | .rlen = 16, |
| 25660 | }, { |
| 25661 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 25662 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 25663 | .klen = 16, |
| 25664 | .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 25665 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 25666 | .ilen = 16, |
| 25667 | .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 25668 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 25669 | .rlen = 16, |
| 25670 | } |
| 25671 | }; |
| 25672 | |
| 25673 | #define SALSA20_STREAM_ENC_TEST_VECTORS 5 |
| 25674 | static struct cipher_testvec salsa20_stream_enc_tv_template[] = { |
| 25675 | /* |
| 25676 | * Testvectors from verified.test-vectors submitted to ECRYPT. |
| 25677 | * They are truncated to size 39, 64, 111, 129 to test a variety |
| 25678 | * of input length. |
| 25679 | */ |
| 25680 | { /* Set 3, vector 0 */ |
| 25681 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25682 | "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", |
| 25683 | .klen = 16, |
| 25684 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25685 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25686 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25687 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25688 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25689 | "\x00\x00\x00\x00\x00\x00\x00", |
| 25690 | .ilen = 39, |
| 25691 | .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7" |
| 25692 | "\x68\x02\x41\x0C\x68\x86\x88\x89" |
| 25693 | "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1" |
| 25694 | "\x40\xFB\x9B\x90\xE2\x10\x49\xBF" |
| 25695 | "\x58\x3F\x52\x79\x70\xEB\xC1", |
| 25696 | .rlen = 39, |
| 25697 | }, { /* Set 5, vector 0 */ |
| 25698 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25699 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25700 | .klen = 16, |
| 25701 | .iv = "\x80\x00\x00\x00\x00\x00\x00\x00", |
| 25702 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25703 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25704 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25705 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25706 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25707 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25708 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25709 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25710 | .ilen = 64, |
| 25711 | .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57" |
| 25712 | "\xE5\x78\xE2\x23\xB0\xB7\x68\x01" |
| 25713 | "\x7B\x23\xB2\x67\xBB\x02\x34\xAE" |
| 25714 | "\x46\x26\xBF\x44\x3F\x21\x97\x76" |
| 25715 | "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F" |
| 25716 | "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09" |
| 25717 | "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9" |
| 25718 | "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9", |
| 25719 | .rlen = 64, |
| 25720 | }, { /* Set 3, vector 27 */ |
| 25721 | .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22" |
| 25722 | "\x23\x24\x25\x26\x27\x28\x29\x2A" |
| 25723 | "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32" |
| 25724 | "\x33\x34\x35\x36\x37\x38\x39\x3A", |
| 25725 | .klen = 32, |
| 25726 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25727 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25728 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25729 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25730 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25731 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25732 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25733 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25734 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25735 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25736 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25737 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25738 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25739 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25740 | "\x00\x00\x00\x00\x00\x00\x00", |
| 25741 | .ilen = 111, |
| 25742 | .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7" |
| 25743 | "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F" |
| 25744 | "\x87\xD9\x47\xF8\x28\x91\x35\x98" |
| 25745 | "\xDB\x72\xCC\x23\x29\x48\x56\x5E" |
| 25746 | "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B" |
| 25747 | "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23" |
| 25748 | "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B" |
| 25749 | "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59" |
| 25750 | "\x15\x14\xB4\x0E\x40\xE6\x53\xD1" |
| 25751 | "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E" |
| 25752 | "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92" |
| 25753 | "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6" |
| 25754 | "\x95\x46\x45\x54\xE9\x75\x03\x08" |
| 25755 | "\x44\xAF\xE5\x8A\x81\x12\x09", |
| 25756 | .rlen = 111, |
| 25757 | }, { /* Set 5, vector 27 */ |
| 25758 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25759 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25760 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25761 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25762 | .klen = 32, |
| 25763 | .iv = "\x00\x00\x00\x10\x00\x00\x00\x00", |
| 25764 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25765 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25766 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25767 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25768 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25769 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25770 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25771 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25772 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25773 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25774 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25775 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25776 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25777 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25778 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25779 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25780 | "\x00", |
| 25781 | .ilen = 129, |
| 25782 | .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB" |
| 25783 | "\xE8\x1A\x7A\x43\x40\xEF\x53\x43" |
| 25784 | "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D" |
| 25785 | "\x28\x3D\xCF\x85\x1D\x69\x6E\x60" |
| 25786 | "\xF2\xDE\x74\x56\x18\x1B\x84\x10" |
| 25787 | "\xD4\x62\xBA\x60\x50\xF0\x61\xF2" |
| 25788 | "\x1C\x78\x7F\xC1\x24\x34\xAF\x58" |
| 25789 | "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0" |
| 25790 | "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC" |
| 25791 | "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75" |
| 25792 | "\xA0\x95\x71\xA1\x29\x39\x94\xCA" |
| 25793 | "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F" |
| 25794 | "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7" |
| 25795 | "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD" |
| 25796 | "\x2E\x40\x48\x75\xE9\xE2\x21\x45" |
| 25797 | "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59" |
| 25798 | "\x5A", |
| 25799 | .rlen = 129, |
| 25800 | }, { /* large test vector generated using Crypto++ */ |
| 25801 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25802 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25803 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25804 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 25805 | .klen = 32, |
| 25806 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25807 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25808 | .input = |
| 25809 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25810 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25811 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 25812 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 25813 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 25814 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 25815 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 25816 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 25817 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 25818 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 25819 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 25820 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 25821 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 25822 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 25823 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 25824 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 25825 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25826 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25827 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25828 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 25829 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 25830 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 25831 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 25832 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 25833 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 25834 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 25835 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 25836 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 25837 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 25838 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 25839 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 25840 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 25841 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 25842 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 25843 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 25844 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 25845 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 25846 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 25847 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 25848 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 25849 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 25850 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 25851 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 25852 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 25853 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 25854 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 25855 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 25856 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 25857 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 25858 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 25859 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 25860 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 25861 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 25862 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 25863 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 25864 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 25865 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 25866 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 25867 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 25868 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 25869 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 25870 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 25871 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 25872 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 25873 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 25874 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 25875 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 25876 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 25877 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 25878 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 25879 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 25880 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 25881 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 25882 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 25883 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 25884 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 25885 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 25886 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 25887 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 25888 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 25889 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 25890 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 25891 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 25892 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 25893 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 25894 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 25895 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 25896 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 25897 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 25898 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 25899 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 25900 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 25901 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 25902 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 25903 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 25904 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 25905 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 25906 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 25907 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 25908 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 25909 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 25910 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 25911 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 25912 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 25913 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 25914 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 25915 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 25916 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 25917 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 25918 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 25919 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 25920 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 25921 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 25922 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 25923 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 25924 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 25925 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 25926 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 25927 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 25928 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 25929 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 25930 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 25931 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 25932 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 25933 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 25934 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 25935 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 25936 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 25937 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 25938 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 25939 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 25940 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 25941 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 25942 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 25943 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 25944 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 25945 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 25946 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 25947 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 25948 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 25949 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 25950 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 25951 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 25952 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 25953 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 25954 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 25955 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 25956 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 25957 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 25958 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 25959 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 25960 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 25961 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 25962 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 25963 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 25964 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 25965 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 25966 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 25967 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 25968 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 25969 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 25970 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 25971 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 25972 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 25973 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 25974 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 25975 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 25976 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 25977 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 25978 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 25979 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 25980 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 25981 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 25982 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 25983 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 25984 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 25985 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 25986 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 25987 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 25988 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 25989 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 25990 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 25991 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 25992 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 25993 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 25994 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 25995 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 25996 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 25997 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 25998 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 25999 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 26000 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 26001 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 26002 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 26003 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 26004 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 26005 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 26006 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 26007 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 26008 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 26009 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 26010 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 26011 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 26012 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 26013 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 26014 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 26015 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 26016 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 26017 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 26018 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 26019 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 26020 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 26021 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 26022 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 26023 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 26024 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 26025 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 26026 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 26027 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 26028 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 26029 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 26030 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 26031 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 26032 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 26033 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 26034 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 26035 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 26036 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 26037 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 26038 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 26039 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 26040 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 26041 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 26042 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 26043 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 26044 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 26045 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 26046 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 26047 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 26048 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 26049 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 26050 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 26051 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 26052 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 26053 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 26054 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 26055 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 26056 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 26057 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 26058 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 26059 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 26060 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 26061 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 26062 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 26063 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 26064 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 26065 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 26066 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 26067 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 26068 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 26069 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 26070 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 26071 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 26072 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 26073 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 26074 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 26075 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 26076 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 26077 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 26078 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 26079 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 26080 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 26081 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 26082 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 26083 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 26084 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 26085 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 26086 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 26087 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 26088 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 26089 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 26090 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 26091 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 26092 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 26093 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 26094 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 26095 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 26096 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 26097 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 26098 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 26099 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 26100 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 26101 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 26102 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 26103 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 26104 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 26105 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 26106 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 26107 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 26108 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 26109 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 26110 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 26111 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 26112 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 26113 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 26114 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 26115 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 26116 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 26117 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 26118 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 26119 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 26120 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 26121 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 26122 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 26123 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 26124 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 26125 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 26126 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 26127 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 26128 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 26129 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 26130 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 26131 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 26132 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 26133 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 26134 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 26135 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 26136 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 26137 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 26138 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 26139 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 26140 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 26141 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 26142 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 26143 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 26144 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 26145 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 26146 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 26147 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 26148 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 26149 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 26150 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 26151 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 26152 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 26153 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 26154 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 26155 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 26156 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 26157 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 26158 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 26159 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 26160 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 26161 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 26162 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 26163 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 26164 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 26165 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 26166 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 26167 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 26168 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 26169 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 26170 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 26171 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 26172 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 26173 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 26174 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 26175 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 26176 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 26177 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 26178 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 26179 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 26180 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 26181 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 26182 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 26183 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 26184 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 26185 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 26186 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 26187 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 26188 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 26189 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 26190 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 26191 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 26192 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 26193 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 26194 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 26195 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 26196 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 26197 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 26198 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 26199 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 26200 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 26201 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 26202 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 26203 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 26204 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 26205 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 26206 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 26207 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 26208 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 26209 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 26210 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 26211 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 26212 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 26213 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 26214 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 26215 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 26216 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 26217 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 26218 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 26219 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 26220 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 26221 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 26222 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 26223 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 26224 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 26225 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 26226 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 26227 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 26228 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 26229 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 26230 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 26231 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 26232 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 26233 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 26234 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 26235 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 26236 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 26237 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 26238 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 26239 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 26240 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 26241 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 26242 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 26243 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 26244 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 26245 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 26246 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 26247 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 26248 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 26249 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 26250 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 26251 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 26252 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 26253 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 26254 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 26255 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 26256 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 26257 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 26258 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 26259 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 26260 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 26261 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 26262 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 26263 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 26264 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 26265 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 26266 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 26267 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 26268 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 26269 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 26270 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 26271 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 26272 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 26273 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 26274 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 26275 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 26276 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 26277 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 26278 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 26279 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 26280 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 26281 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 26282 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 26283 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 26284 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 26285 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 26286 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 26287 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 26288 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 26289 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 26290 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 26291 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 26292 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 26293 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 26294 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 26295 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 26296 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 26297 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 26298 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 26299 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 26300 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 26301 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 26302 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 26303 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 26304 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 26305 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 26306 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 26307 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 26308 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 26309 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 26310 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 26311 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 26312 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 26313 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 26314 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 26315 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 26316 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 26317 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 26318 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 26319 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 26320 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 26321 | "\x00\x21\x42\x63", |
| 26322 | .ilen = 4100, |
| 26323 | .result = |
| 26324 | "\xb5\x81\xf5\x64\x18\x73\xe3\xf0" |
| 26325 | "\x4c\x13\xf2\x77\x18\x60\x65\x5e" |
| 26326 | "\x29\x01\xce\x98\x55\x53\xf9\x0c" |
| 26327 | "\x2a\x08\xd5\x09\xb3\x57\x55\x56" |
| 26328 | "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0" |
| 26329 | "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4" |
| 26330 | "\x43\xd1\xfe\x94\x7b\x88\x06\x5a" |
| 26331 | "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90" |
| 26332 | "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2" |
| 26333 | "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01" |
| 26334 | "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91" |
| 26335 | "\xbb\xde\x56\x86\xab\x65\x21\x30" |
| 26336 | "\x00\x84\x65\x24\xa5\x7d\x85\xb4" |
| 26337 | "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b" |
| 26338 | "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c" |
| 26339 | "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7" |
| 26340 | "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75" |
| 26341 | "\x77\x89\x30\x8b\x59\xdb\xa2\xb2" |
| 26342 | "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f" |
| 26343 | "\x4f\xd9\xd3\x56\x28\x97\x44\xdc" |
| 26344 | "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5" |
| 26345 | "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d" |
| 26346 | "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1" |
| 26347 | "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4" |
| 26348 | "\x5b\x9a\x96\xc5\x53\xbc\xae\x20" |
| 26349 | "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1" |
| 26350 | "\x5e\x76\x9e\x46\x99\xf6\x2a\x15" |
| 26351 | "\xc6\x97\x02\xa0\x66\x43\xd1\xa6" |
| 26352 | "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5" |
| 26353 | "\xcd\x76\x95\xb8\x7a\x82\x7f\x21" |
| 26354 | "\x45\xff\x3f\xce\x55\xf6\x95\x10" |
| 26355 | "\x08\x77\x10\x43\xc6\xf3\x09\xe5" |
| 26356 | "\x68\xe7\x3c\xad\x00\x52\x45\x0d" |
| 26357 | "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d" |
| 26358 | "\xe6\x25\xae\x98\x12\x8e\x19\x9c" |
| 26359 | "\x81\x68\xb1\x11\xf6\x69\xda\xe3" |
| 26360 | "\x62\x08\x18\x7a\x25\x49\x28\xac" |
| 26361 | "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7" |
| 26362 | "\x5d\x8e\xec\x49\x40\x21\xbf\x5a" |
| 26363 | "\x98\xf3\x02\x68\x55\x03\x7f\x8a" |
| 26364 | "\xe5\x94\x0c\x32\x5c\x07\x82\x63" |
| 26365 | "\xaf\x6f\x91\x40\x84\x8e\x52\x25" |
| 26366 | "\xd0\xb0\x29\x53\x05\xe2\x50\x7a" |
| 26367 | "\x34\xeb\xc9\x46\x20\xa8\x3d\xde" |
| 26368 | "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1" |
| 26369 | "\x15\x47\xc7\x50\x40\x6d\x91\xc5" |
| 26370 | "\xe7\x93\x95\x1a\xd3\x57\xbc\x52" |
| 26371 | "\x33\xee\x14\x19\x22\x52\x89\xa7" |
| 26372 | "\x4a\x25\x56\x77\x4b\xca\xcf\x0a" |
| 26373 | "\xe1\xf5\x35\x85\x30\x7e\x59\x4a" |
| 26374 | "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac" |
| 26375 | "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99" |
| 26376 | "\xca\x88\x63\x3d\x02\x58\x6b\xa9" |
| 26377 | "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74" |
| 26378 | "\x1c\xbf\x46\xab\x97\xcc\xf8\x54" |
| 26379 | "\x04\x07\x08\x52\xe6\xc0\xda\x93" |
| 26380 | "\x74\x7d\x93\x99\x5d\x78\x68\xa6" |
| 26381 | "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b" |
| 26382 | "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04" |
| 26383 | "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1" |
| 26384 | "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4" |
| 26385 | "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4" |
| 26386 | "\x54\x26\x72\x9e\x61\xfa\x86\xcf" |
| 26387 | "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae" |
| 26388 | "\x5a\x90\xae\x75\x0a\x74\x18\x89" |
| 26389 | "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6" |
| 26390 | "\x62\x07\x25\x01\xc7\xc2\x4f\xf9" |
| 26391 | "\xe8\xfe\x63\x95\x80\x07\xb4\x26" |
| 26392 | "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb" |
| 26393 | "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a" |
| 26394 | "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f" |
| 26395 | "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec" |
| 26396 | "\x33\xe6\x69\xf4\x45\x25\x86\x3a" |
| 26397 | "\x22\x94\x4f\x00\x23\x6a\x44\xc2" |
| 26398 | "\x49\x97\x33\xab\x36\x14\x0a\x70" |
| 26399 | "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9" |
| 26400 | "\xb8\xe7\x76\x29\x22\x83\xd7\xf2" |
| 26401 | "\x94\xf4\x41\x49\xba\x5f\x7b\x07" |
| 26402 | "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c" |
| 26403 | "\xc2\x2e\x37\x40\x49\xc3\x38\x16" |
| 26404 | "\xe2\x4f\x77\x82\xb0\x68\x4c\x71" |
| 26405 | "\x1d\x57\x61\x9c\xd9\x4e\x54\x99" |
| 26406 | "\x47\x13\x28\x73\x3c\xbb\x00\x90" |
| 26407 | "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71" |
| 26408 | "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd" |
| 26409 | "\xad\x6c\x50\x69\x6c\x3e\x6d\x80" |
| 26410 | "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d" |
| 26411 | "\xad\x04\x07\xae\x22\x90\x4a\x93" |
| 26412 | "\x32\x0e\x36\x9b\x1b\x46\xba\x3b" |
| 26413 | "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b" |
| 26414 | "\x2a\x3d\x45\xfe\x03\x61\x10\x85" |
| 26415 | "\x17\x69\xa6\x78\xcc\x6c\x87\x49" |
| 26416 | "\x53\xf9\x80\x10\xde\x80\xa2\x41" |
| 26417 | "\x6a\xc3\x32\x02\xad\x6d\x3c\x56" |
| 26418 | "\x00\x71\x51\x06\xa7\xbd\xfb\xef" |
| 26419 | "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c" |
| 26420 | "\x66\xb0\x49\x23\xc4\x47\x10\x0e" |
| 26421 | "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa" |
| 26422 | "\xde\xff\x07\x44\xdd\x56\x1b\xad" |
| 26423 | "\x09\x77\xfb\x5b\x12\xb8\x0d\x38" |
| 26424 | "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4" |
| 26425 | "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22" |
| 26426 | "\xa7\x31\xa1\x20\x86\xc7\x1b\x99" |
| 26427 | "\xdb\xd1\x89\xf4\x94\xa3\x53\x69" |
| 26428 | "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6" |
| 26429 | "\x07\x37\x91\x9f\xfd\x67\x50\x3a" |
| 26430 | "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1" |
| 26431 | "\xf9\xe5\x39\xa3\x31\xac\x07\x36" |
| 26432 | "\x23\xf8\x66\x18\x14\x28\x34\x0f" |
| 26433 | "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55" |
| 26434 | "\x01\x41\xb2\x75\x8d\xcb\x96\x85" |
| 26435 | "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20" |
| 26436 | "\x44\x1f\xc0\x14\x22\x75\x61\xe8" |
| 26437 | "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7" |
| 26438 | "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a" |
| 26439 | "\x57\x50\xdb\x17\x41\x65\x4d\xa3" |
| 26440 | "\x02\xc9\x9c\x9c\x53\xfb\x39\x39" |
| 26441 | "\x9b\x1d\x72\x24\xda\xb7\x39\xbe" |
| 26442 | "\x13\x3b\xfa\x29\xda\x9e\x54\x64" |
| 26443 | "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa" |
| 26444 | "\xcb\x47\x85\xe9\x61\x38\xbc\xbe" |
| 26445 | "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9" |
| 26446 | "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f" |
| 26447 | "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d" |
| 26448 | "\xca\x8e\x61\x87\xde\xad\x80\xd2" |
| 26449 | "\xf5\xf9\x80\xef\x15\x75\xaf\xf5" |
| 26450 | "\x80\xfb\xff\x6d\x1e\x25\xb7\x40" |
| 26451 | "\x61\x6a\x39\x5a\x6a\xb5\x31\xab" |
| 26452 | "\x97\x8a\x19\x89\x44\x40\xc0\xa6" |
| 26453 | "\xb4\x4e\x30\x32\x7b\x13\xe7\x67" |
| 26454 | "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4" |
| 26455 | "\x28\x99\xad\x2c\x76\xa3\x78\xc2" |
| 26456 | "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0" |
| 26457 | "\x62\x4b\x10\x8e\x7c\x17\x43\xb3" |
| 26458 | "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a" |
| 26459 | "\x71\xf5\x97\xdc\xd1\x45\xdd\x28" |
| 26460 | "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc" |
| 26461 | "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d" |
| 26462 | "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2" |
| 26463 | "\x13\x36\x79\x80\x53\xe8\xd3\xa6" |
| 26464 | "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e" |
| 26465 | "\x45\xce\xf8\xb0\x9e\x5c\x33\x82" |
| 26466 | "\xb0\x44\x56\xfc\x05\x09\xe9\x2a" |
| 26467 | "\xac\x26\x80\x14\x1d\xc8\x3a\x35" |
| 26468 | "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a" |
| 26469 | "\x35\x58\x79\x8e\x0f\x66\xea\xaf" |
| 26470 | "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a" |
| 26471 | "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a" |
| 26472 | "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a" |
| 26473 | "\x54\xda\x24\x6a\xc4\x41\x65\x46" |
| 26474 | "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0" |
| 26475 | "\x2c\x91\xa7\xee\xc4\x81\x07\x86" |
| 26476 | "\x75\x5e\x33\x69\x97\xe4\x2c\xa8" |
| 26477 | "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda" |
| 26478 | "\x6d\x94\x41\xda\x2c\x1e\x89\xc4" |
| 26479 | "\xc2\xaf\x1e\x00\x05\x0b\x83\x60" |
| 26480 | "\xbd\x43\xea\x15\x23\x7f\xb9\xac" |
| 26481 | "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0" |
| 26482 | "\xf3\x19\x31\xbb\x4a\x74\x84\x17" |
| 26483 | "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb" |
| 26484 | "\x80\x38\x15\x52\xcb\x6f\xea\xe5" |
| 26485 | "\x73\x9c\xd9\x24\x69\xc6\x95\x32" |
| 26486 | "\x21\xc8\x11\xe4\xdc\x36\xd7\x93" |
| 26487 | "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf" |
| 26488 | "\x31\xdd\x93\x75\x78\x8a\x2c\x94" |
| 26489 | "\x87\x1a\x58\xec\x9e\x7d\x4d\xba" |
| 26490 | "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14" |
| 26491 | "\xef\xcc\xa7\xec\xab\x43\x09\x18" |
| 26492 | "\xd3\xab\x68\xd1\x07\x99\x44\x47" |
| 26493 | "\xd6\x83\x85\x3b\x30\xea\xa9\x6b" |
| 26494 | "\x63\xea\xc4\x07\xfb\x43\x2f\xa4" |
| 26495 | "\xaa\xb0\xab\x03\x89\xce\x3f\x8c" |
| 26496 | "\x02\x7c\x86\x54\xbc\x88\xaf\x75" |
| 26497 | "\xd2\xdc\x63\x17\xd3\x26\xf6\x96" |
| 26498 | "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc" |
| 26499 | "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2" |
| 26500 | "\xe5\x35\x90\x1f\x85\x4c\x76\x5b" |
| 26501 | "\x66\xce\x44\xa4\x32\x9f\xe6\x7b" |
| 26502 | "\x71\x6e\x9f\x58\x15\x67\x72\x87" |
| 26503 | "\x64\x8e\x3a\x44\x45\xd4\x76\xfa" |
| 26504 | "\xc2\xf6\xef\x85\x05\x18\x7a\x9b" |
| 26505 | "\xba\x41\x54\xac\xf0\xfc\x59\x12" |
| 26506 | "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a" |
| 26507 | "\x62\x8d\x83\x2c\x03\xbe\x05\x76" |
| 26508 | "\x2e\x53\x49\x97\x94\x33\xae\x40" |
| 26509 | "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b" |
| 26510 | "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb" |
| 26511 | "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3" |
| 26512 | "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d" |
| 26513 | "\xce\x87\xad\xcc\x72\x05\x00\x29" |
| 26514 | "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2" |
| 26515 | "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef" |
| 26516 | "\x5c\x50\x79\x2a\x56\x56\x71\x8c" |
| 26517 | "\xac\xc0\x79\x50\x69\xca\x59\x32" |
| 26518 | "\x65\xf2\x54\xe4\x52\x38\x76\xd1" |
| 26519 | "\x5e\xde\x26\x9e\xfb\x75\x2e\x11" |
| 26520 | "\xb5\x10\xf4\x17\x73\xf5\x89\xc7" |
| 26521 | "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52" |
| 26522 | "\x24\x40\x99\xfe\x9b\x85\x0b\x6c" |
| 26523 | "\x22\x3e\x8b\xae\x86\xa1\xd2\x79" |
| 26524 | "\x05\x68\x6b\xab\xe3\x41\x49\xed" |
| 26525 | "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a" |
| 26526 | "\x59\xc9\x26\x8b\xef\x30\x4c\x88" |
| 26527 | "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b" |
| 26528 | "\xf3\xc4\x53\x0b\x89\x5d\x28\x92" |
| 26529 | "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc" |
| 26530 | "\xc0\x12\x23\x5f\x5a\x78\x86\x43" |
| 26531 | "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19" |
| 26532 | "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89" |
| 26533 | "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f" |
| 26534 | "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba" |
| 26535 | "\xec\x8b\x62\x8e\xcb\x4a\x70\x43" |
| 26536 | "\xc7\xc2\xc4\xca\x82\x03\x73\xe9" |
| 26537 | "\x11\xdf\xcf\x54\xea\xc9\xb0\x95" |
| 26538 | "\x51\xc0\x13\x3d\x92\x05\xfa\xf4" |
| 26539 | "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc" |
| 26540 | "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2" |
| 26541 | "\xaf\xf1\x85\x75\x7d\x03\x61\x68" |
| 26542 | "\x4e\x78\xc6\x92\x7d\x86\x7d\x77" |
| 26543 | "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb" |
| 26544 | "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a" |
| 26545 | "\xe2\xba\x6c\x64\x9a\x13\x28\xdf" |
| 26546 | "\x85\x75\xe6\x43\xf6\x87\x08\x68" |
| 26547 | "\x6e\xba\x6e\x79\x9f\x04\xbc\x23" |
| 26548 | "\x50\xf6\x33\x5c\x1f\x24\x25\xbe" |
| 26549 | "\x33\x47\x80\x45\x56\xa3\xa7\xd7" |
| 26550 | "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad" |
| 26551 | "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93" |
| 26552 | "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3" |
| 26553 | "\xd6\x2e\xff\x24\xd8\x71\x6c\xed" |
| 26554 | "\xaf\x55\xeb\x22\xac\x93\x68\x32" |
| 26555 | "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7" |
| 26556 | "\x10\xe1\x3c\x92\x1a\xf3\x23\x78" |
| 26557 | "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20" |
| 26558 | "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e" |
| 26559 | "\x78\xf1\x2d\x50\x12\x77\xa8\x60" |
| 26560 | "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a" |
| 26561 | "\xc0\x96\x80\x4e\x0a\xb4\x93\x35" |
| 26562 | "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90" |
| 26563 | "\x11\x16\x8f\xa2\xec\x47\xbe\xac" |
| 26564 | "\x56\x01\x26\x56\xb1\x8c\xb2\x10" |
| 26565 | "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20" |
| 26566 | "\x63\xf1\x69\x20\x4f\x13\x12\x1f" |
| 26567 | "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe" |
| 26568 | "\xf7\x26\x4d\x2b\x84\x7b\x42\xad" |
| 26569 | "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1" |
| 26570 | "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46" |
| 26571 | "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a" |
| 26572 | "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3" |
| 26573 | "\xab\xd4\x45\x43\x8c\xb6\x02\xb0" |
| 26574 | "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e" |
| 26575 | "\x44\x21\x2a\x8d\x88\x9d\x57\xf4" |
| 26576 | "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75" |
| 26577 | "\x5c\x82\x65\x3e\x03\x5c\x29\x8f" |
| 26578 | "\x38\x55\xab\x33\x26\xef\x9f\x43" |
| 26579 | "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a" |
| 26580 | "\x58\x09\x09\x1b\xc3\x65\x46\x46" |
| 26581 | "\x1d\xa7\x94\x18\x23\x50\x2c\xca" |
| 26582 | "\x2c\x55\x19\x97\x01\x9d\x93\x3b" |
| 26583 | "\x63\x86\xf2\x03\x67\x45\xd2\x72" |
| 26584 | "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11" |
| 26585 | "\x13\xf1\xeb\x21\xc7\xd9\x56\x82" |
| 26586 | "\x2b\x82\x39\xbd\x69\x54\xed\x62" |
| 26587 | "\xc3\xe2\xde\x73\xd4\x6a\x12\xae" |
| 26588 | "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8" |
| 26589 | "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1" |
| 26590 | "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac" |
| 26591 | "\x98\x65\x85\xd1\x93\x53\xd3\x7b" |
| 26592 | "\x09\xdd\x4b\x10\x6d\x84\xb0\x13" |
| 26593 | "\x65\xbd\xcf\x52\x09\xc4\x85\xe2" |
| 26594 | "\x84\x74\x15\x65\xb7\xf7\x51\xaf" |
| 26595 | "\x55\xad\xa4\xd1\x22\x54\x70\x94" |
| 26596 | "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a" |
| 26597 | "\x31\xef\xaa\x25\xd0\x7f\x4f\xea" |
| 26598 | "\x1d\x55\x42\xe5\x49\xb0\xd0\x46" |
| 26599 | "\x62\x36\x43\xb2\x82\x15\x75\x50" |
| 26600 | "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4" |
| 26601 | "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1" |
| 26602 | "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7" |
| 26603 | "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15" |
| 26604 | "\x83\xcb\x72\xd0\x33\x79\x00\x2d" |
| 26605 | "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45" |
| 26606 | "\xc0\x75\x3a\x39\xea\x68\xf7\x5d" |
| 26607 | "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47" |
| 26608 | "\xae\x35\x0a\x31\x7a\x14\x4d\x4a" |
| 26609 | "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b" |
| 26610 | "\x26\x47\xf9\xc3\xf9\xde\x70\xf5" |
| 26611 | "\x61\xab\xa9\x27\x9f\x82\xe4\x9c" |
| 26612 | "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49" |
| 26613 | "\xe9\xfd\x59\x14\x36\x49\x40\x6d" |
| 26614 | "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c" |
| 26615 | "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2" |
| 26616 | "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35" |
| 26617 | "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf" |
| 26618 | "\x9c\xcb\x94\xf3\x21\xa0\x77\x50" |
| 26619 | "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b" |
| 26620 | "\x92\x90\xd8\xe1\xd1\xed\x4b\x42" |
| 26621 | "\xd7\x37\xaf\x65\x3d\x11\x39\xb6" |
| 26622 | "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e" |
| 26623 | "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e" |
| 26624 | "\x29\x06\x9d\xa4\x51\x3a\x10\x63" |
| 26625 | "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28" |
| 26626 | "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c" |
| 26627 | "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e" |
| 26628 | "\x94\x29\x1a\xa7\x80\xfa\x0e\x33" |
| 26629 | "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18" |
| 26630 | "\x37\xa9\x64\x08\x4d\x94\x5a\x88" |
| 26631 | "\xca\x35\xce\x81\x02\xe3\x1f\x1b" |
| 26632 | "\x89\x1a\x77\x85\xe3\x41\x6d\x32" |
| 26633 | "\x42\x19\x23\x7d\xc8\x73\xee\x25" |
| 26634 | "\x85\x0d\xf8\x31\x25\x79\x1b\x6f" |
| 26635 | "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7" |
| 26636 | "\x82\x36\x6a\x0c\x46\x22\x15\xe9" |
| 26637 | "\xff\x72\x41\x91\x91\x7d\x3a\xb7" |
| 26638 | "\xdd\x65\x99\x70\xf6\x8d\x84\xf8" |
| 26639 | "\x67\x15\x20\x11\xd6\xb2\x55\x7b" |
| 26640 | "\xdb\x87\xee\xef\x55\x89\x2a\x59" |
| 26641 | "\x2b\x07\x8f\x43\x8a\x59\x3c\x01" |
| 26642 | "\x8b\x65\x54\xa1\x66\xd5\x38\xbd" |
| 26643 | "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b" |
| 26644 | "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff" |
| 26645 | "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25" |
| 26646 | "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d" |
| 26647 | "\x5c\xfd\x4b\x27\x18\xf9\x61\x76" |
| 26648 | "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5" |
| 26649 | "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a" |
| 26650 | "\xae\xab\x86\x09\x89\xc9\xc2\x40" |
| 26651 | "\x39\x2c\x81\xb3\xb8\x17\x67\xc2" |
| 26652 | "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a" |
| 26653 | "\x34\x52\xc5\xdb\x0a\xf5\x63\x39" |
| 26654 | "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35" |
| 26655 | "\xe3\xb1\x18\x45\x67\xf9\x22\x38" |
| 26656 | "\x95\xd9\x34\x34\x86\xc6\x41\x94" |
| 26657 | "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8" |
| 26658 | "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10" |
| 26659 | "\xff\xe6\xae\x69\x76\xbc\x0d\xb4" |
| 26660 | "\x09\x90\x0c\xa2\x65\x0c\xad\x74" |
| 26661 | "\xf5\xd7\xff\xda\xc1\xce\x85\xbe" |
| 26662 | "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c" |
| 26663 | "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b" |
| 26664 | "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96" |
| 26665 | "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9" |
| 26666 | "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d" |
| 26667 | "\xc9\x92\xae\xf2\xa5\x7b\x05\x49" |
| 26668 | "\xa7\x33\x34\x86\xca\xe4\x96\x23" |
| 26669 | "\x76\x5b\xf2\xc6\xf1\x51\x28\x42" |
| 26670 | "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31" |
| 26671 | "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4" |
| 26672 | "\x3f\x50\x59\xe1\x5c\x05\xb7\x27" |
| 26673 | "\x48\xbf\x07\xec\x1b\x13\xbe\x2b" |
| 26674 | "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c" |
| 26675 | "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3" |
| 26676 | "\xde\x59\xec\x71\xeb\x89\xbb\xd0" |
| 26677 | "\x09\x50\xe1\x16\x3f\xfd\x1c\x34" |
| 26678 | "\xc3\x1c\xa1\x10\x77\x53\x98\xef" |
| 26679 | "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26" |
| 26680 | "\xc7\x42\xd9\x49\xda\x58\x2b\x6e" |
| 26681 | "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e" |
| 26682 | "\x68\xc8\x7f\x51\x22\x42\xef\x49" |
| 26683 | "\xa4\x55\xb6\x36\xac\x09\xc7\x31" |
| 26684 | "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7" |
| 26685 | "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45" |
| 26686 | "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e" |
| 26687 | "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3" |
| 26688 | "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c" |
| 26689 | "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87" |
| 26690 | "\x73\x2e\x71\x79\x16\x06\x63\x28" |
| 26691 | "\x09\x15\xd8\x89\x38\x38\x3d\xb5" |
| 26692 | "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d" |
| 26693 | "\xc8\xca\xef\xf9\x27\xd8\x07\x86" |
| 26694 | "\xf7\x43\x0b\x55\x15\x3f\x9f\x83" |
| 26695 | "\xef\xdc\x49\x9d\x2a\xc1\x54\x62" |
| 26696 | "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3" |
| 26697 | "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75" |
| 26698 | "\x87\x26\xec\x61\x2c\xb4\x0f\x89" |
| 26699 | "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d" |
| 26700 | "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25" |
| 26701 | "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc" |
| 26702 | "\x2b\xa8\x67\x96\x12\x1f\x5b\x96" |
| 26703 | "\xc6\x14\x53\xaf\x44\xea\xd6\xe2" |
| 26704 | "\x94\x98\xe4\x12\x93\x4c\x92\xe0" |
| 26705 | "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47" |
| 26706 | "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf" |
| 26707 | "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03" |
| 26708 | "\x19\x07\xaf\x90\x62\x5c\x68\x98" |
| 26709 | "\x48\x16\x11\x02\x9d\xee\xb4\x9b" |
| 26710 | "\xe5\x42\x7f\x08\xfd\x16\x32\x0b" |
| 26711 | "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29" |
| 26712 | "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2" |
| 26713 | "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74" |
| 26714 | "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd" |
| 26715 | "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67" |
| 26716 | "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f" |
| 26717 | "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e" |
| 26718 | "\x14\x32\xbb\x1b\x38\x77\xd6\x7f" |
| 26719 | "\x54\x4c\xdf\x75\xf3\x07\x2d\x33" |
| 26720 | "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3" |
| 26721 | "\xef\x2f\xce\x72\xe5\x24\x60\xc1" |
| 26722 | "\x30\xe2\xab\xa1\x8e\x11\x09\xa8" |
| 26723 | "\x21\x33\x44\xfe\x7f\x35\x32\x93" |
| 26724 | "\x39\xa7\xad\x8b\x79\x06\xb2\xcb" |
| 26725 | "\x4e\xa9\x5f\xc7\xba\x74\x29\xec" |
| 26726 | "\x93\xa0\x4e\x54\x93\xc0\xbc\x55" |
| 26727 | "\x64\xf0\x48\xe5\x57\x99\xee\x75" |
| 26728 | "\xd6\x79\x0f\x66\xb7\xc6\x57\x76" |
| 26729 | "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f" |
| 26730 | "\x83\x76\xd6\x0e\xaa\xe6\x90\x39" |
| 26731 | "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8" |
| 26732 | "\x58\xa0\x58\x7d\x33\xe0\x22\x39" |
| 26733 | "\x44\x64\x87\x86\x5a\x2f\xa7\x7e" |
| 26734 | "\x0f\x38\xea\xb0\x30\xcc\x61\xa5" |
| 26735 | "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9" |
| 26736 | "\x0c\x32\x4b\xb5\x49\x28\xab\x85" |
| 26737 | "\x2f\x8e\x01\x36\x38\x52\xd0\xba" |
| 26738 | "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b" |
| 26739 | "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1" |
| 26740 | "\x5c\x94\x04\xe1\xf5\x18\x6d\x51" |
| 26741 | "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42" |
| 26742 | "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03" |
| 26743 | "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f" |
| 26744 | "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11" |
| 26745 | "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54" |
| 26746 | "\xea\xa4\x98\x66\xd4\x22\x3b\xd3" |
| 26747 | "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b" |
| 26748 | "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a" |
| 26749 | "\x81\xe1\x86\x89\x3e\x56\x10\x3c" |
| 26750 | "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2" |
| 26751 | "\x53\xec\xa7\x89\xee\xc8\x56\xb5" |
| 26752 | "\x36\x2c\xb2\x03\xba\x99\xdd\x7c" |
| 26753 | "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8" |
| 26754 | "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2" |
| 26755 | "\x56\xf5\x4e\x01\x35\x27\x45\x77" |
| 26756 | "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97" |
| 26757 | "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad" |
| 26758 | "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5" |
| 26759 | "\x99\x20\x43\x85\x9d\xa5\xe2\x8b" |
| 26760 | "\xb8\xae\xeb\xd0\x32\x0d\x52\x78" |
| 26761 | "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc" |
| 26762 | "\x37\xfb\x6f\x04\xfc\xfa\x92\x10" |
| 26763 | "\xac\xf8\x3e\x21\xdc\x8c\x21\x16" |
| 26764 | "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98" |
| 26765 | "\x23\xab\x23\x3c\xb2\x10\xa0\x53" |
| 26766 | "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4" |
| 26767 | "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e" |
| 26768 | "\x0f\xd2\x98\x88\x81\x8b\x45\x67" |
| 26769 | "\xea\x33\xf1\xeb\xe9\x97\x55\x2e" |
| 26770 | "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68" |
| 26771 | "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62" |
| 26772 | "\x87\x8f\x03\x21\x28\x95\x0c\x89" |
| 26773 | "\x25\x22\x4a\xb0\x93\xa9\x50\xa2" |
| 26774 | "\x2f\x57\x6e\x18\x42\x19\x54\x0c" |
| 26775 | "\x55\x67\xc6\x11\x49\xf4\x5c\xd2" |
| 26776 | "\xe9\x3d\xdd\x8b\x48\x71\x21\x00" |
| 26777 | "\xc3\x9a\x6c\x85\x74\x28\x83\x4a" |
| 26778 | "\x1b\x31\x05\xe1\x06\x92\xe7\xda" |
| 26779 | "\x85\x73\x78\x45\x20\x7f\xae\x13" |
| 26780 | "\x7c\x33\x06\x22\xf4\x83\xf9\x35" |
| 26781 | "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b" |
| 26782 | "\xce\x8a\xba\xda\xbe\x28\x08\xf7" |
| 26783 | "\xe2\x14\x8c\x71\xea\x72\xf9\x33" |
| 26784 | "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29" |
| 26785 | "\x19\xdc\x84\xce\x1f\x12\x4f\xc8" |
| 26786 | "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9" |
| 26787 | "\x14\x1f\x6c\x68\x98\x39\x89\x7a" |
| 26788 | "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25" |
| 26789 | "\xe2\xfb\x33\xf4\x59\x78\xe1\x68" |
| 26790 | "\x85\xcf\xfe\x59\x20\xd4\x05\x1d" |
| 26791 | "\x80\x99\xae\xbc\xca\xae\x0f\x2f" |
| 26792 | "\x65\x43\x34\x8e\x7e\xac\xd3\x93" |
| 26793 | "\x2f\xac\x6d\x14\x3d\x02\x07\x70" |
| 26794 | "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01" |
| 26795 | "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd" |
| 26796 | "\x3f\xdf\xee\xf5\xd9\xba\x56\xef" |
| 26797 | "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d" |
| 26798 | "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b" |
| 26799 | "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70" |
| 26800 | "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d" |
| 26801 | "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3" |
| 26802 | "\x14\x89\x5e\x70\x5a\x99\x92\xcd" |
| 26803 | "\x01\x84\xc8\xd2\xab\xe5\x4f\x58" |
| 26804 | "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd" |
| 26805 | "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8" |
| 26806 | "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f" |
| 26807 | "\xe1\x9e\x49\x20\x23\x24\x4d\x7e" |
| 26808 | "\x29\x65\xff\xf4\xb6\xfd\x1a\x85" |
| 26809 | "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c" |
| 26810 | "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd" |
| 26811 | "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c" |
| 26812 | "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30" |
| 26813 | "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff" |
| 26814 | "\x30\xbc\x22\x81\x7d\x93\x12\xe4" |
| 26815 | "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e" |
| 26816 | "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb" |
| 26817 | "\x37\x09\x4b\x91\x6f\x92\x4f\xaf" |
| 26818 | "\x52\xee\xdf\xef\x09\x6f\xf7\x5c" |
| 26819 | "\x6e\x12\x17\x72\x63\x57\xc7\xba" |
| 26820 | "\x3b\x6b\x38\x32\x73\x1b\x9c\x80" |
| 26821 | "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b" |
| 26822 | "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f" |
| 26823 | "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2" |
| 26824 | "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd" |
| 26825 | "\x13\x3d\x64\xfd\x06\xce\xe6\xdc" |
| 26826 | "\x0c\x24\x43\x31\x40\x57\xf1\x72" |
| 26827 | "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d" |
| 26828 | "\x97\x40\x59\xdd\xf7\x3c\x02\xf7" |
| 26829 | "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1" |
| 26830 | "\x8e\xc0\x30\xa9\x53\x24\xc9\x89" |
| 26831 | "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d" |
| 26832 | "\x91\xb0\x89\xe2\xbf\x83\x44\xaa" |
| 26833 | "\x28\x72\x23\xa0\xc2\xad\xad\x1c" |
| 26834 | "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b" |
| 26835 | "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8" |
| 26836 | "\xaf\xdf\x11\x95", |
| 26837 | .rlen = 4100, |
| 26838 | .np = 2, |
| 26839 | .tap = { 4064, 36 }, |
| 26840 | }, |
| 26841 | }; |
| 26842 | |
| 26843 | /* |
| 26844 | * CTS (Cipher Text Stealing) mode tests |
| 26845 | */ |
| 26846 | #define CTS_MODE_ENC_TEST_VECTORS 6 |
| 26847 | #define CTS_MODE_DEC_TEST_VECTORS 6 |
| 26848 | static struct cipher_testvec cts_mode_enc_tv_template[] = { |
| 26849 | { /* from rfc3962 */ |
| 26850 | .klen = 16, |
| 26851 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26852 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26853 | .ilen = 17, |
| 26854 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26855 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26856 | "\x20", |
| 26857 | .rlen = 17, |
| 26858 | .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 26859 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 26860 | "\x97", |
| 26861 | }, { |
| 26862 | .klen = 16, |
| 26863 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26864 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26865 | .ilen = 31, |
| 26866 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26867 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26868 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26869 | "\x20\x47\x61\x75\x27\x73\x20", |
| 26870 | .rlen = 31, |
| 26871 | .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 26872 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 26873 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 26874 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 26875 | }, { |
| 26876 | .klen = 16, |
| 26877 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26878 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26879 | .ilen = 32, |
| 26880 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26881 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26882 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26883 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 26884 | .rlen = 32, |
| 26885 | .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 26886 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 26887 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 26888 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 26889 | }, { |
| 26890 | .klen = 16, |
| 26891 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26892 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26893 | .ilen = 47, |
| 26894 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26895 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26896 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26897 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 26898 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 26899 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 26900 | .rlen = 47, |
| 26901 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 26902 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 26903 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 26904 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 26905 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 26906 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 26907 | }, { |
| 26908 | .klen = 16, |
| 26909 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26910 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26911 | .ilen = 48, |
| 26912 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26913 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26914 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26915 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 26916 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 26917 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 26918 | .rlen = 48, |
| 26919 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 26920 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 26921 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 26922 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 26923 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 26924 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 26925 | }, { |
| 26926 | .klen = 16, |
| 26927 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26928 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26929 | .ilen = 64, |
| 26930 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26931 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26932 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26933 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 26934 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 26935 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 26936 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 26937 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 26938 | .rlen = 64, |
| 26939 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 26940 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 26941 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 26942 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 26943 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 26944 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 26945 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 26946 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 26947 | } |
| 26948 | }; |
| 26949 | |
| 26950 | static struct cipher_testvec cts_mode_dec_tv_template[] = { |
| 26951 | { /* from rfc3962 */ |
| 26952 | .klen = 16, |
| 26953 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26954 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26955 | .rlen = 17, |
| 26956 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26957 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26958 | "\x20", |
| 26959 | .ilen = 17, |
| 26960 | .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 26961 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 26962 | "\x97", |
| 26963 | }, { |
| 26964 | .klen = 16, |
| 26965 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26966 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26967 | .rlen = 31, |
| 26968 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26969 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26970 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26971 | "\x20\x47\x61\x75\x27\x73\x20", |
| 26972 | .ilen = 31, |
| 26973 | .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 26974 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 26975 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 26976 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 26977 | }, { |
| 26978 | .klen = 16, |
| 26979 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26980 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26981 | .rlen = 32, |
| 26982 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26983 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26984 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26985 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 26986 | .ilen = 32, |
| 26987 | .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 26988 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 26989 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 26990 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 26991 | }, { |
| 26992 | .klen = 16, |
| 26993 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 26994 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 26995 | .rlen = 47, |
| 26996 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 26997 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 26998 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 26999 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 27000 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 27001 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 27002 | .ilen = 47, |
| 27003 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 27004 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 27005 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 27006 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 27007 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 27008 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 27009 | }, { |
| 27010 | .klen = 16, |
| 27011 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 27012 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 27013 | .rlen = 48, |
| 27014 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 27015 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 27016 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 27017 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 27018 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 27019 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 27020 | .ilen = 48, |
| 27021 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 27022 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 27023 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 27024 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 27025 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 27026 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 27027 | }, { |
| 27028 | .klen = 16, |
| 27029 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 27030 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 27031 | .rlen = 64, |
| 27032 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 27033 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 27034 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 27035 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 27036 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 27037 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 27038 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 27039 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 27040 | .ilen = 64, |
| 27041 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 27042 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 27043 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 27044 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 27045 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 27046 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 27047 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 27048 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 27049 | } |
| 27050 | }; |
| 27051 | |
| 27052 | /* |
| 27053 | * Compression stuff. |
| 27054 | */ |
| 27055 | #define COMP_BUF_SIZE 512 |
| 27056 | |
| 27057 | struct comp_testvec { |
| 27058 | int inlen, outlen; |
| 27059 | char input[COMP_BUF_SIZE]; |
| 27060 | char output[COMP_BUF_SIZE]; |
| 27061 | }; |
| 27062 | |
Geert Uytterhoeven | 8064efb | 2009-03-04 15:08:03 +0800 | [diff] [blame] | 27063 | struct pcomp_testvec { |
| 27064 | void *params; |
| 27065 | unsigned int paramsize; |
| 27066 | int inlen, outlen; |
| 27067 | char input[COMP_BUF_SIZE]; |
| 27068 | char output[COMP_BUF_SIZE]; |
| 27069 | }; |
| 27070 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27071 | /* |
| 27072 | * Deflate test vectors (null-terminated strings). |
Geert Uytterhoeven | bcf84a3 | 2008-12-18 17:17:46 +1100 | [diff] [blame] | 27073 | * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL. |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27074 | */ |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 27075 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27076 | #define DEFLATE_COMP_TEST_VECTORS 2 |
| 27077 | #define DEFLATE_DECOMP_TEST_VECTORS 2 |
| 27078 | |
| 27079 | static struct comp_testvec deflate_comp_tv_template[] = { |
| 27080 | { |
| 27081 | .inlen = 70, |
| 27082 | .outlen = 38, |
| 27083 | .input = "Join us now and share the software " |
| 27084 | "Join us now and share the software ", |
| 27085 | .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 27086 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 27087 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 27088 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 27089 | "\x71\xbc\x08\x2b\x01\x00", |
| 27090 | }, { |
| 27091 | .inlen = 191, |
| 27092 | .outlen = 122, |
| 27093 | .input = "This document describes a compression method based on the DEFLATE" |
| 27094 | "compression algorithm. This document defines the application of " |
| 27095 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 27096 | .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 27097 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 27098 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 27099 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 27100 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 27101 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 27102 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 27103 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 27104 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 27105 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 27106 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 27107 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 27108 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 27109 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 27110 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 27111 | "\xfa\x02", |
| 27112 | }, |
| 27113 | }; |
| 27114 | |
| 27115 | static struct comp_testvec deflate_decomp_tv_template[] = { |
| 27116 | { |
| 27117 | .inlen = 122, |
| 27118 | .outlen = 191, |
| 27119 | .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 27120 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 27121 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 27122 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 27123 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 27124 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 27125 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 27126 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 27127 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 27128 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 27129 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 27130 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 27131 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 27132 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 27133 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 27134 | "\xfa\x02", |
| 27135 | .output = "This document describes a compression method based on the DEFLATE" |
| 27136 | "compression algorithm. This document defines the application of " |
| 27137 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 27138 | }, { |
| 27139 | .inlen = 38, |
| 27140 | .outlen = 70, |
| 27141 | .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 27142 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 27143 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 27144 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 27145 | "\x71\xbc\x08\x2b\x01\x00", |
| 27146 | .output = "Join us now and share the software " |
| 27147 | "Join us now and share the software ", |
| 27148 | }, |
| 27149 | }; |
| 27150 | |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 27151 | #define ZLIB_COMP_TEST_VECTORS 2 |
| 27152 | #define ZLIB_DECOMP_TEST_VECTORS 2 |
| 27153 | |
| 27154 | static const struct { |
| 27155 | struct nlattr nla; |
| 27156 | int val; |
| 27157 | } deflate_comp_params[] = { |
| 27158 | { |
| 27159 | .nla = { |
| 27160 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 27161 | .nla_type = ZLIB_COMP_LEVEL, |
| 27162 | }, |
| 27163 | .val = Z_DEFAULT_COMPRESSION, |
| 27164 | }, { |
| 27165 | .nla = { |
| 27166 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 27167 | .nla_type = ZLIB_COMP_METHOD, |
| 27168 | }, |
| 27169 | .val = Z_DEFLATED, |
| 27170 | }, { |
| 27171 | .nla = { |
| 27172 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 27173 | .nla_type = ZLIB_COMP_WINDOWBITS, |
| 27174 | }, |
| 27175 | .val = -11, |
| 27176 | }, { |
| 27177 | .nla = { |
| 27178 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 27179 | .nla_type = ZLIB_COMP_MEMLEVEL, |
| 27180 | }, |
| 27181 | .val = MAX_MEM_LEVEL, |
| 27182 | }, { |
| 27183 | .nla = { |
| 27184 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 27185 | .nla_type = ZLIB_COMP_STRATEGY, |
| 27186 | }, |
| 27187 | .val = Z_DEFAULT_STRATEGY, |
| 27188 | } |
| 27189 | }; |
| 27190 | |
| 27191 | static const struct { |
| 27192 | struct nlattr nla; |
| 27193 | int val; |
| 27194 | } deflate_decomp_params[] = { |
| 27195 | { |
| 27196 | .nla = { |
| 27197 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 27198 | .nla_type = ZLIB_DECOMP_WINDOWBITS, |
| 27199 | }, |
| 27200 | .val = -11, |
| 27201 | } |
| 27202 | }; |
| 27203 | |
| 27204 | static struct pcomp_testvec zlib_comp_tv_template[] = { |
| 27205 | { |
| 27206 | .params = &deflate_comp_params, |
| 27207 | .paramsize = sizeof(deflate_comp_params), |
| 27208 | .inlen = 70, |
| 27209 | .outlen = 38, |
| 27210 | .input = "Join us now and share the software " |
| 27211 | "Join us now and share the software ", |
| 27212 | .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 27213 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 27214 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 27215 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 27216 | "\x71\xbc\x08\x2b\x01\x00", |
| 27217 | }, { |
| 27218 | .params = &deflate_comp_params, |
| 27219 | .paramsize = sizeof(deflate_comp_params), |
| 27220 | .inlen = 191, |
| 27221 | .outlen = 122, |
| 27222 | .input = "This document describes a compression method based on the DEFLATE" |
| 27223 | "compression algorithm. This document defines the application of " |
| 27224 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 27225 | .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 27226 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 27227 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 27228 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 27229 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 27230 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 27231 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 27232 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 27233 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 27234 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 27235 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 27236 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 27237 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 27238 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 27239 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 27240 | "\xfa\x02", |
| 27241 | }, |
| 27242 | }; |
| 27243 | |
| 27244 | static struct pcomp_testvec zlib_decomp_tv_template[] = { |
| 27245 | { |
| 27246 | .params = &deflate_decomp_params, |
| 27247 | .paramsize = sizeof(deflate_decomp_params), |
| 27248 | .inlen = 122, |
| 27249 | .outlen = 191, |
| 27250 | .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 27251 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 27252 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 27253 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 27254 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 27255 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 27256 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 27257 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 27258 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 27259 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 27260 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 27261 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 27262 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 27263 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 27264 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 27265 | "\xfa\x02", |
| 27266 | .output = "This document describes a compression method based on the DEFLATE" |
| 27267 | "compression algorithm. This document defines the application of " |
| 27268 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 27269 | }, { |
| 27270 | .params = &deflate_decomp_params, |
| 27271 | .paramsize = sizeof(deflate_decomp_params), |
| 27272 | .inlen = 38, |
| 27273 | .outlen = 70, |
| 27274 | .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 27275 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 27276 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 27277 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 27278 | "\x71\xbc\x08\x2b\x01\x00", |
| 27279 | .output = "Join us now and share the software " |
| 27280 | "Join us now and share the software ", |
| 27281 | }, |
| 27282 | }; |
| 27283 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27284 | /* |
| 27285 | * LZO test vectors (null-terminated strings). |
| 27286 | */ |
| 27287 | #define LZO_COMP_TEST_VECTORS 2 |
| 27288 | #define LZO_DECOMP_TEST_VECTORS 2 |
| 27289 | |
| 27290 | static struct comp_testvec lzo_comp_tv_template[] = { |
| 27291 | { |
| 27292 | .inlen = 70, |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 27293 | .outlen = 57, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27294 | .input = "Join us now and share the software " |
| 27295 | "Join us now and share the software ", |
| 27296 | .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 27297 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 27298 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 27299 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 27300 | "\x77\x70\x01\x32\x88\x00\x0c\x65" |
| 27301 | "\x20\x74\x68\x65\x20\x73\x6f\x66" |
| 27302 | "\x74\x77\x61\x72\x65\x20\x11\x00" |
| 27303 | "\x00", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27304 | }, { |
| 27305 | .inlen = 159, |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 27306 | .outlen = 131, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27307 | .input = "This document describes a compression method based on the LZO " |
| 27308 | "compression algorithm. This document defines the application of " |
| 27309 | "the LZO algorithm used in UBIFS.", |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 27310 | .output = "\x00\x2c\x54\x68\x69\x73\x20\x64" |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27311 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 27312 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 27313 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 27314 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 27315 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 27316 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 27317 | "\x74\x68\x65\x20\x4c\x5a\x4f\x20" |
| 27318 | "\x2a\x8c\x00\x09\x61\x6c\x67\x6f" |
| 27319 | "\x72\x69\x74\x68\x6d\x2e\x20\x20" |
| 27320 | "\x2e\x54\x01\x03\x66\x69\x6e\x65" |
| 27321 | "\x73\x20\x74\x06\x05\x61\x70\x70" |
| 27322 | "\x6c\x69\x63\x61\x74\x76\x0a\x6f" |
| 27323 | "\x66\x88\x02\x60\x09\x27\xf0\x00" |
| 27324 | "\x0c\x20\x75\x73\x65\x64\x20\x69" |
| 27325 | "\x6e\x20\x55\x42\x49\x46\x53\x2e" |
| 27326 | "\x11\x00\x00", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27327 | }, |
| 27328 | }; |
| 27329 | |
| 27330 | static struct comp_testvec lzo_decomp_tv_template[] = { |
| 27331 | { |
| 27332 | .inlen = 133, |
| 27333 | .outlen = 159, |
| 27334 | .input = "\x00\x2b\x54\x68\x69\x73\x20\x64" |
| 27335 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 27336 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 27337 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 27338 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 27339 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 27340 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
| 27341 | "\x74\x68\x65\x20\x4c\x5a\x4f\x2b" |
| 27342 | "\x8c\x00\x0d\x61\x6c\x67\x6f\x72" |
| 27343 | "\x69\x74\x68\x6d\x2e\x20\x20\x54" |
| 27344 | "\x68\x69\x73\x2a\x54\x01\x02\x66" |
| 27345 | "\x69\x6e\x65\x73\x94\x06\x05\x61" |
| 27346 | "\x70\x70\x6c\x69\x63\x61\x74\x76" |
| 27347 | "\x0a\x6f\x66\x88\x02\x60\x09\x27" |
| 27348 | "\xf0\x00\x0c\x20\x75\x73\x65\x64" |
| 27349 | "\x20\x69\x6e\x20\x55\x42\x49\x46" |
| 27350 | "\x53\x2e\x11\x00\x00", |
| 27351 | .output = "This document describes a compression method based on the LZO " |
| 27352 | "compression algorithm. This document defines the application of " |
| 27353 | "the LZO algorithm used in UBIFS.", |
| 27354 | }, { |
| 27355 | .inlen = 46, |
| 27356 | .outlen = 70, |
| 27357 | .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
| 27358 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 27359 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 27360 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 27361 | "\x77\x70\x01\x01\x4a\x6f\x69\x6e" |
| 27362 | "\x3d\x88\x00\x11\x00\x00", |
| 27363 | .output = "Join us now and share the software " |
| 27364 | "Join us now and share the software ", |
| 27365 | }, |
| 27366 | }; |
| 27367 | |
| 27368 | /* |
| 27369 | * Michael MIC test vectors from IEEE 802.11i |
| 27370 | */ |
| 27371 | #define MICHAEL_MIC_TEST_VECTORS 6 |
| 27372 | |
| 27373 | static struct hash_testvec michael_mic_tv_template[] = { |
| 27374 | { |
| 27375 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 27376 | .ksize = 8, |
| 27377 | .plaintext = zeroed_string, |
| 27378 | .psize = 0, |
| 27379 | .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 27380 | }, |
| 27381 | { |
| 27382 | .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 27383 | .ksize = 8, |
| 27384 | .plaintext = "M", |
| 27385 | .psize = 1, |
| 27386 | .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 27387 | }, |
| 27388 | { |
| 27389 | .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 27390 | .ksize = 8, |
| 27391 | .plaintext = "Mi", |
| 27392 | .psize = 2, |
| 27393 | .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 27394 | }, |
| 27395 | { |
| 27396 | .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 27397 | .ksize = 8, |
| 27398 | .plaintext = "Mic", |
| 27399 | .psize = 3, |
| 27400 | .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 27401 | }, |
| 27402 | { |
| 27403 | .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 27404 | .ksize = 8, |
| 27405 | .plaintext = "Mich", |
| 27406 | .psize = 4, |
| 27407 | .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 27408 | }, |
| 27409 | { |
| 27410 | .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 27411 | .ksize = 8, |
| 27412 | .plaintext = "Michael", |
| 27413 | .psize = 7, |
| 27414 | .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46", |
| 27415 | } |
| 27416 | }; |
| 27417 | |
| 27418 | /* |
| 27419 | * CRC32C test vectors |
| 27420 | */ |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 27421 | #define CRC32C_TEST_VECTORS 15 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27422 | |
| 27423 | static struct hash_testvec crc32c_tv_template[] = { |
| 27424 | { |
| 27425 | .psize = 0, |
| 27426 | .digest = "\x00\x00\x00\x00", |
| 27427 | }, |
| 27428 | { |
| 27429 | .key = "\x87\xa9\xcb\xed", |
| 27430 | .ksize = 4, |
| 27431 | .psize = 0, |
| 27432 | .digest = "\x78\x56\x34\x12", |
| 27433 | }, |
| 27434 | { |
| 27435 | .key = "\xff\xff\xff\xff", |
| 27436 | .ksize = 4, |
| 27437 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 27438 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 27439 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 27440 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 27441 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 27442 | .psize = 40, |
| 27443 | .digest = "\x7f\x15\x2c\x0e", |
| 27444 | }, |
| 27445 | { |
| 27446 | .key = "\xff\xff\xff\xff", |
| 27447 | .ksize = 4, |
| 27448 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 27449 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 27450 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 27451 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 27452 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 27453 | .psize = 40, |
| 27454 | .digest = "\xf6\xeb\x80\xe9", |
| 27455 | }, |
| 27456 | { |
| 27457 | .key = "\xff\xff\xff\xff", |
| 27458 | .ksize = 4, |
| 27459 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 27460 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 27461 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 27462 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 27463 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 27464 | .psize = 40, |
| 27465 | .digest = "\xed\xbd\x74\xde", |
| 27466 | }, |
| 27467 | { |
| 27468 | .key = "\xff\xff\xff\xff", |
| 27469 | .ksize = 4, |
| 27470 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 27471 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 27472 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 27473 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 27474 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 27475 | .psize = 40, |
| 27476 | .digest = "\x62\xc8\x79\xd5", |
| 27477 | }, |
| 27478 | { |
| 27479 | .key = "\xff\xff\xff\xff", |
| 27480 | .ksize = 4, |
| 27481 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 27482 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 27483 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 27484 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 27485 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 27486 | .psize = 40, |
| 27487 | .digest = "\xd0\x9a\x97\xba", |
| 27488 | }, |
| 27489 | { |
| 27490 | .key = "\xff\xff\xff\xff", |
| 27491 | .ksize = 4, |
| 27492 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 27493 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 27494 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 27495 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 27496 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 27497 | .psize = 40, |
| 27498 | .digest = "\x13\xd9\x29\x2b", |
| 27499 | }, |
| 27500 | { |
| 27501 | .key = "\x80\xea\xd3\xf1", |
| 27502 | .ksize = 4, |
| 27503 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 27504 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 27505 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 27506 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 27507 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 27508 | .psize = 40, |
| 27509 | .digest = "\x0c\xb5\xe2\xa2", |
| 27510 | }, |
| 27511 | { |
| 27512 | .key = "\xf3\x4a\x1d\x5d", |
| 27513 | .ksize = 4, |
| 27514 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 27515 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 27516 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 27517 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 27518 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 27519 | .psize = 40, |
| 27520 | .digest = "\xd1\x7f\xfb\xa6", |
| 27521 | }, |
| 27522 | { |
| 27523 | .key = "\x2e\x80\x04\x59", |
| 27524 | .ksize = 4, |
| 27525 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 27526 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 27527 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 27528 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 27529 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 27530 | .psize = 40, |
| 27531 | .digest = "\x59\x33\xe6\x7a", |
| 27532 | }, |
| 27533 | { |
| 27534 | .key = "\xa6\xcc\x19\x85", |
| 27535 | .ksize = 4, |
| 27536 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 27537 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 27538 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 27539 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 27540 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 27541 | .psize = 40, |
| 27542 | .digest = "\xbe\x03\x01\xd2", |
| 27543 | }, |
| 27544 | { |
| 27545 | .key = "\x41\xfc\xfe\x2d", |
| 27546 | .ksize = 4, |
| 27547 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 27548 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 27549 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 27550 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 27551 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 27552 | .psize = 40, |
| 27553 | .digest = "\x75\xd3\xc5\x24", |
| 27554 | }, |
| 27555 | { |
| 27556 | .key = "\xff\xff\xff\xff", |
| 27557 | .ksize = 4, |
| 27558 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 27559 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 27560 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 27561 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 27562 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 27563 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 27564 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 27565 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 27566 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 27567 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 27568 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 27569 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 27570 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 27571 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 27572 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 27573 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 27574 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 27575 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 27576 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 27577 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 27578 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 27579 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 27580 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 27581 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 27582 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 27583 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 27584 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 27585 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 27586 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 27587 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 27588 | .psize = 240, |
| 27589 | .digest = "\x75\xd3\xc5\x24", |
| 27590 | .np = 2, |
| 27591 | .tap = { 31, 209 } |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 27592 | }, { |
| 27593 | .key = "\xff\xff\xff\xff", |
| 27594 | .ksize = 4, |
| 27595 | .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49" |
| 27596 | "\xe0\x54\xeb\x82\x19\x8d\x24\xbb" |
| 27597 | "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a" |
| 27598 | "\xa1\x38\xcf\x43\xda\x71\x08\x7c" |
| 27599 | "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee" |
| 27600 | "\x85\x1c\x90\x27\xbe\x32\xc9\x60" |
| 27601 | "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2" |
| 27602 | "\x46\xdd\x74\x0b\x7f\x16\xad\x21" |
| 27603 | "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93" |
| 27604 | "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05" |
| 27605 | "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77" |
| 27606 | "\x0e\x82\x19\xb0\x24\xbb\x52\xe9" |
| 27607 | "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38" |
| 27608 | "\xcf\x66\xfd\x71\x08\x9f\x13\xaa" |
| 27609 | "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c" |
| 27610 | "\xb3\x27\xbe\x55\xec\x60\xf7\x8e" |
| 27611 | "\x02\x99\x30\xc7\x3b\xd2\x69\x00" |
| 27612 | "\x74\x0b\xa2\x16\xad\x44\xdb\x4f" |
| 27613 | "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1" |
| 27614 | "\x58\xef\x63\xfa\x91\x05\x9c\x33" |
| 27615 | "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5" |
| 27616 | "\x19\xb0\x47\xde\x52\xe9\x80\x17" |
| 27617 | "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66" |
| 27618 | "\xfd\x94\x08\x9f\x36\xcd\x41\xd8" |
| 27619 | "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a" |
| 27620 | "\xe1\x55\xec\x83\x1a\x8e\x25\xbc" |
| 27621 | "\x30\xc7\x5e\xf5\x69\x00\x97\x0b" |
| 27622 | "\xa2\x39\xd0\x44\xdb\x72\x09\x7d" |
| 27623 | "\x14\xab\x1f\xb6\x4d\xe4\x58\xef" |
| 27624 | "\x86\x1d\x91\x28\xbf\x33\xca\x61" |
| 27625 | "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3" |
| 27626 | "\x47\xde\x75\x0c\x80\x17\xae\x22" |
| 27627 | "\xb9\x50\xe7\x5b\xf2\x89\x20\x94" |
| 27628 | "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06" |
| 27629 | "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78" |
| 27630 | "\x0f\x83\x1a\xb1\x25\xbc\x53\xea" |
| 27631 | "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39" |
| 27632 | "\xd0\x67\xfe\x72\x09\xa0\x14\xab" |
| 27633 | "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d" |
| 27634 | "\xb4\x28\xbf\x56\xed\x61\xf8\x8f" |
| 27635 | "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01" |
| 27636 | "\x75\x0c\xa3\x17\xae\x45\xdc\x50" |
| 27637 | "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2" |
| 27638 | "\x59\xf0\x64\xfb\x92\x06\x9d\x34" |
| 27639 | "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6" |
| 27640 | "\x1a\xb1\x48\xdf\x53\xea\x81\x18" |
| 27641 | "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67" |
| 27642 | "\xfe\x95\x09\xa0\x37\xce\x42\xd9" |
| 27643 | "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b" |
| 27644 | "\xe2\x56\xed\x84\x1b\x8f\x26\xbd" |
| 27645 | "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c" |
| 27646 | "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e" |
| 27647 | "\x15\xac\x20\xb7\x4e\xe5\x59\xf0" |
| 27648 | "\x87\x1e\x92\x29\xc0\x34\xcb\x62" |
| 27649 | "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4" |
| 27650 | "\x48\xdf\x76\x0d\x81\x18\xaf\x23" |
| 27651 | "\xba\x51\xe8\x5c\xf3\x8a\x21\x95" |
| 27652 | "\x2c\xc3\x37\xce\x65\xfc\x70\x07" |
| 27653 | "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79" |
| 27654 | "\x10\x84\x1b\xb2\x26\xbd\x54\xeb" |
| 27655 | "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a" |
| 27656 | "\xd1\x68\xff\x73\x0a\xa1\x15\xac" |
| 27657 | "\x43\xda\x4e\xe5\x7c\x13\x87\x1e" |
| 27658 | "\xb5\x29\xc0\x57\xee\x62\xf9\x90" |
| 27659 | "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02" |
| 27660 | "\x76\x0d\xa4\x18\xaf\x46\xdd\x51" |
| 27661 | "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3" |
| 27662 | "\x5a\xf1\x65\xfc\x93\x07\x9e\x35" |
| 27663 | "\xcc\x40\xd7\x6e\x05\x79\x10\xa7" |
| 27664 | "\x1b\xb2\x49\xe0\x54\xeb\x82\x19" |
| 27665 | "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68" |
| 27666 | "\xff\x96\x0a\xa1\x38\xcf\x43\xda" |
| 27667 | "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c" |
| 27668 | "\xe3\x57\xee\x85\x1c\x90\x27\xbe" |
| 27669 | "\x32\xc9\x60\xf7\x6b\x02\x99\x0d" |
| 27670 | "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f" |
| 27671 | "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1" |
| 27672 | "\x88\x1f\x93\x2a\xc1\x35\xcc\x63" |
| 27673 | "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5" |
| 27674 | "\x49\xe0\x77\x0e\x82\x19\xb0\x24" |
| 27675 | "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96" |
| 27676 | "\x2d\xc4\x38\xcf\x66\xfd\x71\x08" |
| 27677 | "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a" |
| 27678 | "\x11\x85\x1c\xb3\x27\xbe\x55\xec" |
| 27679 | "\x60\xf7\x8e\x02\x99\x30\xc7\x3b" |
| 27680 | "\xd2\x69\x00\x74\x0b\xa2\x16\xad" |
| 27681 | "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f" |
| 27682 | "\xb6\x2a\xc1\x58\xef\x63\xfa\x91" |
| 27683 | "\x05\x9c\x33\xca\x3e\xd5\x6c\x03" |
| 27684 | "\x77\x0e\xa5\x19\xb0\x47\xde\x52" |
| 27685 | "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4" |
| 27686 | "\x5b\xf2\x66\xfd\x94\x08\x9f\x36" |
| 27687 | "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8" |
| 27688 | "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a" |
| 27689 | "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69" |
| 27690 | "\x00\x97\x0b\xa2\x39\xd0\x44\xdb" |
| 27691 | "\x72\x09\x7d\x14\xab\x1f\xb6\x4d" |
| 27692 | "\xe4\x58\xef\x86\x1d\x91\x28\xbf" |
| 27693 | "\x33\xca\x61\xf8\x6c\x03\x9a\x0e" |
| 27694 | "\xa5\x3c\xd3\x47\xde\x75\x0c\x80" |
| 27695 | "\x17\xae\x22\xb9\x50\xe7\x5b\xf2" |
| 27696 | "\x89\x20\x94\x2b\xc2\x36\xcd\x64" |
| 27697 | "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6" |
| 27698 | "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25" |
| 27699 | "\xbc\x53\xea\x5e\xf5\x8c\x00\x97" |
| 27700 | "\x2e\xc5\x39\xd0\x67\xfe\x72\x09" |
| 27701 | "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b" |
| 27702 | "\x12\x86\x1d\xb4\x28\xbf\x56\xed" |
| 27703 | "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c" |
| 27704 | "\xd3\x6a\x01\x75\x0c\xa3\x17\xae" |
| 27705 | "\x45\xdc\x50\xe7\x7e\x15\x89\x20" |
| 27706 | "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92" |
| 27707 | "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04" |
| 27708 | "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53" |
| 27709 | "\xea\x81\x18\x8c\x23\xba\x2e\xc5" |
| 27710 | "\x5c\xf3\x67\xfe\x95\x09\xa0\x37" |
| 27711 | "\xce\x42\xd9\x70\x07\x7b\x12\xa9" |
| 27712 | "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b" |
| 27713 | "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a" |
| 27714 | "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc" |
| 27715 | "\x73\x0a\x7e\x15\xac\x20\xb7\x4e" |
| 27716 | "\xe5\x59\xf0\x87\x1e\x92\x29\xc0" |
| 27717 | "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f" |
| 27718 | "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81" |
| 27719 | "\x18\xaf\x23\xba\x51\xe8\x5c\xf3" |
| 27720 | "\x8a\x21\x95\x2c\xc3\x37\xce\x65" |
| 27721 | "\xfc\x70\x07\x9e\x12\xa9\x40\xd7" |
| 27722 | "\x4b\xe2\x79\x10\x84\x1b\xb2\x26" |
| 27723 | "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98" |
| 27724 | "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a" |
| 27725 | "\xa1\x15\xac\x43\xda\x4e\xe5\x7c" |
| 27726 | "\x13\x87\x1e\xb5\x29\xc0\x57\xee" |
| 27727 | "\x62\xf9\x90\x04\x9b\x32\xc9\x3d" |
| 27728 | "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf" |
| 27729 | "\x46\xdd\x51\xe8\x7f\x16\x8a\x21" |
| 27730 | "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93" |
| 27731 | "\x07\x9e\x35\xcc\x40\xd7\x6e\x05" |
| 27732 | "\x79\x10\xa7\x1b\xb2\x49\xe0\x54" |
| 27733 | "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6" |
| 27734 | "\x5d\xf4\x68\xff\x96\x0a\xa1\x38" |
| 27735 | "\xcf\x43\xda\x71\x08\x7c\x13\xaa" |
| 27736 | "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c" |
| 27737 | "\x90\x27\xbe\x32\xc9\x60\xf7\x6b" |
| 27738 | "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd" |
| 27739 | "\x74\x0b\x7f\x16\xad\x21\xb8\x4f" |
| 27740 | "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1" |
| 27741 | "\x35\xcc\x63\xfa\x6e\x05\x9c\x10" |
| 27742 | "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82" |
| 27743 | "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4" |
| 27744 | "\x8b\x22\x96\x2d\xc4\x38\xcf\x66" |
| 27745 | "\xfd\x71\x08\x9f\x13\xaa\x41\xd8" |
| 27746 | "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27" |
| 27747 | "\xbe\x55\xec\x60\xf7\x8e\x02\x99" |
| 27748 | "\x30\xc7\x3b\xd2\x69\x00\x74\x0b" |
| 27749 | "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d" |
| 27750 | "\x14\x88\x1f\xb6\x2a\xc1\x58\xef" |
| 27751 | "\x63\xfa\x91\x05\x9c\x33\xca\x3e" |
| 27752 | "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0" |
| 27753 | "\x47\xde\x52\xe9\x80\x17\x8b\x22" |
| 27754 | "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94" |
| 27755 | "\x08\x9f\x36\xcd\x41\xd8\x6f\x06" |
| 27756 | "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55" |
| 27757 | "\xec\x83\x1a\x8e\x25\xbc\x30\xc7" |
| 27758 | "\x5e\xf5\x69\x00\x97\x0b\xa2\x39" |
| 27759 | "\xd0\x44\xdb\x72\x09\x7d\x14\xab" |
| 27760 | "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d" |
| 27761 | "\x91\x28\xbf\x33\xca\x61\xf8\x6c" |
| 27762 | "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde" |
| 27763 | "\x75\x0c\x80\x17\xae\x22\xb9\x50" |
| 27764 | "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2" |
| 27765 | "\x36\xcd\x64\xfb\x6f\x06\x9d\x11" |
| 27766 | "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83" |
| 27767 | "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5" |
| 27768 | "\x8c\x00\x97\x2e\xc5\x39\xd0\x67" |
| 27769 | "\xfe\x72\x09\xa0\x14\xab\x42\xd9" |
| 27770 | "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28" |
| 27771 | "\xbf\x56\xed\x61\xf8\x8f\x03\x9a" |
| 27772 | "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c" |
| 27773 | "\xa3\x17\xae\x45\xdc\x50\xe7\x7e" |
| 27774 | "\x15\x89\x20\xb7\x2b\xc2\x59\xf0" |
| 27775 | "\x64\xfb\x92\x06\x9d\x34\xcb\x3f" |
| 27776 | "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1" |
| 27777 | "\x48\xdf\x53\xea\x81\x18\x8c\x23" |
| 27778 | "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95" |
| 27779 | "\x09\xa0\x37\xce\x42\xd9\x70\x07" |
| 27780 | "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56" |
| 27781 | "\xed\x84\x1b\x8f\x26\xbd\x31\xc8" |
| 27782 | "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a" |
| 27783 | "\xd1\x45\xdc\x73\x0a\x7e\x15\xac" |
| 27784 | "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e" |
| 27785 | "\x92\x29\xc0\x34\xcb\x62\xf9\x6d" |
| 27786 | "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf" |
| 27787 | "\x76\x0d\x81\x18\xaf\x23\xba\x51" |
| 27788 | "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3" |
| 27789 | "\x37\xce\x65\xfc\x70\x07\x9e\x12" |
| 27790 | "\xa9\x40\xd7\x4b\xe2\x79\x10\x84" |
| 27791 | "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6" |
| 27792 | "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68" |
| 27793 | "\xff\x73\x0a\xa1\x15\xac\x43\xda" |
| 27794 | "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29" |
| 27795 | "\xc0\x57\xee\x62\xf9\x90\x04\x9b" |
| 27796 | "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d" |
| 27797 | "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f" |
| 27798 | "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1" |
| 27799 | "\x65\xfc\x93\x07\x9e\x35\xcc\x40" |
| 27800 | "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2" |
| 27801 | "\x49\xe0\x54\xeb\x82\x19\x8d\x24" |
| 27802 | "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96" |
| 27803 | "\x0a\xa1\x38\xcf\x43\xda\x71\x08" |
| 27804 | "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57" |
| 27805 | "\xee\x85\x1c\x90\x27\xbe\x32\xc9" |
| 27806 | "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b" |
| 27807 | "\xd2\x46\xdd\x74\x0b\x7f\x16\xad" |
| 27808 | "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f" |
| 27809 | "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e" |
| 27810 | "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0" |
| 27811 | "\x77\x0e\x82\x19\xb0\x24\xbb\x52" |
| 27812 | "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4" |
| 27813 | "\x38\xcf\x66\xfd\x71\x08\x9f\x13" |
| 27814 | "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85" |
| 27815 | "\x1c\xb3\x27\xbe\x55\xec\x60\xf7" |
| 27816 | "\x8e\x02\x99\x30\xc7\x3b\xd2\x69" |
| 27817 | "\x00\x74\x0b\xa2\x16\xad\x44\xdb" |
| 27818 | "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a" |
| 27819 | "\xc1\x58\xef\x63\xfa\x91\x05\x9c" |
| 27820 | "\x33\xca\x3e\xd5\x6c\x03\x77\x0e" |
| 27821 | "\xa5\x19\xb0\x47\xde\x52\xe9\x80" |
| 27822 | "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2" |
| 27823 | "\x66\xfd\x94\x08\x9f\x36\xcd\x41" |
| 27824 | "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3" |
| 27825 | "\x4a\xe1\x55\xec\x83\x1a\x8e\x25" |
| 27826 | "\xbc\x30\xc7\x5e\xf5\x69\x00\x97" |
| 27827 | "\x0b\xa2\x39\xd0\x44\xdb\x72\x09" |
| 27828 | "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58" |
| 27829 | "\xef\x86\x1d\x91\x28\xbf\x33\xca" |
| 27830 | "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c" |
| 27831 | "\xd3\x47\xde\x75\x0c\x80\x17\xae" |
| 27832 | "\x22\xb9\x50\xe7\x5b\xf2\x89\x20" |
| 27833 | "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f" |
| 27834 | "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1" |
| 27835 | "\x78\x0f\x83\x1a\xb1\x25\xbc\x53" |
| 27836 | "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5" |
| 27837 | "\x39\xd0\x67\xfe\x72\x09\xa0\x14" |
| 27838 | "\xab\x42\xd9\x4d\xe4\x7b\x12\x86" |
| 27839 | "\x1d\xb4\x28\xbf\x56\xed\x61\xf8" |
| 27840 | "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a" |
| 27841 | "\x01\x75\x0c\xa3\x17\xae\x45\xdc" |
| 27842 | "\x50\xe7\x7e\x15\x89\x20\xb7\x2b" |
| 27843 | "\xc2\x59\xf0\x64\xfb\x92\x06\x9d" |
| 27844 | "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f" |
| 27845 | "\xa6\x1a\xb1\x48\xdf\x53\xea\x81" |
| 27846 | "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3" |
| 27847 | "\x67\xfe\x95\x09\xa0\x37\xce\x42" |
| 27848 | "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4" |
| 27849 | "\x4b\xe2\x56\xed\x84\x1b\x8f\x26" |
| 27850 | "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98", |
| 27851 | .psize = 2048, |
| 27852 | .digest = "\xec\x26\x4d\x95", |
| 27853 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27854 | }; |
| 27855 | |
Sonic Zhang | a482b08 | 2012-05-25 17:54:13 +0800 | [diff] [blame] | 27856 | /* |
| 27857 | * Blakcifn CRC test vectors |
| 27858 | */ |
| 27859 | #define BFIN_CRC_TEST_VECTORS 6 |
| 27860 | |
| 27861 | static struct hash_testvec bfin_crc_tv_template[] = { |
| 27862 | { |
| 27863 | .psize = 0, |
| 27864 | .digest = "\x00\x00\x00\x00", |
| 27865 | }, |
| 27866 | { |
| 27867 | .key = "\x87\xa9\xcb\xed", |
| 27868 | .ksize = 4, |
| 27869 | .psize = 0, |
| 27870 | .digest = "\x87\xa9\xcb\xed", |
| 27871 | }, |
| 27872 | { |
| 27873 | .key = "\xff\xff\xff\xff", |
| 27874 | .ksize = 4, |
| 27875 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 27876 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 27877 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 27878 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 27879 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 27880 | .psize = 40, |
| 27881 | .digest = "\x84\x0c\x8d\xa2", |
| 27882 | }, |
| 27883 | { |
| 27884 | .key = "\xff\xff\xff\xff", |
| 27885 | .ksize = 4, |
| 27886 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 27887 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 27888 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 27889 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 27890 | "\x21\x22\x23\x24\x25\x26", |
| 27891 | .psize = 38, |
| 27892 | .digest = "\x8c\x58\xec\xb7", |
| 27893 | }, |
| 27894 | { |
| 27895 | .key = "\xff\xff\xff\xff", |
| 27896 | .ksize = 4, |
| 27897 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 27898 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 27899 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 27900 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 27901 | "\x21\x22\x23\x24\x25\x26\x27", |
| 27902 | .psize = 39, |
| 27903 | .digest = "\xdc\x50\x28\x7b", |
| 27904 | }, |
| 27905 | { |
| 27906 | .key = "\xff\xff\xff\xff", |
| 27907 | .ksize = 4, |
| 27908 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 27909 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 27910 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 27911 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 27912 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 27913 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 27914 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 27915 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 27916 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 27917 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 27918 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 27919 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 27920 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 27921 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 27922 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 27923 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 27924 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 27925 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 27926 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 27927 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 27928 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 27929 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 27930 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 27931 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 27932 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 27933 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 27934 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 27935 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 27936 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 27937 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 27938 | .psize = 240, |
| 27939 | .digest = "\x10\x19\x4a\x5c", |
| 27940 | .np = 2, |
| 27941 | .tap = { 31, 209 } |
| 27942 | }, |
| 27943 | |
| 27944 | }; |
| 27945 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27946 | #endif /* _CRYPTO_TESTMGR_H */ |