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]; |
| 44 | unsigned char psize; |
| 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; |
| 56 | unsigned char fail; |
| 57 | unsigned char wk; /* weak key flag */ |
| 58 | unsigned char klen; |
| 59 | unsigned short ilen; |
| 60 | unsigned short rlen; |
| 61 | }; |
| 62 | |
| 63 | struct aead_testvec { |
| 64 | char *key; |
| 65 | char *iv; |
| 66 | char *input; |
| 67 | char *assoc; |
| 68 | char *result; |
| 69 | unsigned char tap[MAX_TAP]; |
| 70 | unsigned char atap[MAX_TAP]; |
| 71 | int np; |
| 72 | int anp; |
| 73 | unsigned char fail; |
Jarod Wilson | e44a1b4 | 2009-05-04 19:22:11 +0800 | [diff] [blame] | 74 | unsigned char novrfy; /* ccm dec verification failure expected */ |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 75 | unsigned char wk; /* weak key flag */ |
| 76 | unsigned char klen; |
| 77 | unsigned short ilen; |
| 78 | unsigned short alen; |
| 79 | unsigned short rlen; |
| 80 | }; |
| 81 | |
Jarod Wilson | 7647d6c | 2009-05-04 19:44:50 +0800 | [diff] [blame] | 82 | struct cprng_testvec { |
| 83 | char *key; |
| 84 | char *dt; |
| 85 | char *v; |
| 86 | char *result; |
| 87 | unsigned char klen; |
| 88 | unsigned short dtlen; |
| 89 | unsigned short vlen; |
| 90 | unsigned short rlen; |
| 91 | unsigned short loops; |
| 92 | }; |
| 93 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 94 | static char zeroed_string[48]; |
| 95 | |
| 96 | /* |
| 97 | * MD4 test vectors from RFC1320 |
| 98 | */ |
| 99 | #define MD4_TEST_VECTORS 7 |
| 100 | |
| 101 | static struct hash_testvec md4_tv_template [] = { |
| 102 | { |
| 103 | .plaintext = "", |
| 104 | .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31" |
| 105 | "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0", |
| 106 | }, { |
| 107 | .plaintext = "a", |
| 108 | .psize = 1, |
| 109 | .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46" |
| 110 | "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24", |
| 111 | }, { |
| 112 | .plaintext = "abc", |
| 113 | .psize = 3, |
| 114 | .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52" |
| 115 | "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d", |
| 116 | }, { |
| 117 | .plaintext = "message digest", |
| 118 | .psize = 14, |
| 119 | .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8" |
| 120 | "\x18\x87\x48\x06\xe1\xc7\x01\x4b", |
| 121 | }, { |
| 122 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 123 | .psize = 26, |
| 124 | .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd" |
| 125 | "\xee\xa8\xed\x63\xdf\x41\x2d\xa9", |
| 126 | .np = 2, |
| 127 | .tap = { 13, 13 }, |
| 128 | }, { |
| 129 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 130 | .psize = 62, |
| 131 | .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35" |
| 132 | "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4", |
| 133 | }, { |
| 134 | .plaintext = "123456789012345678901234567890123456789012345678901234567890123" |
| 135 | "45678901234567890", |
| 136 | .psize = 80, |
| 137 | .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19" |
| 138 | "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36", |
| 139 | }, |
| 140 | }; |
| 141 | |
| 142 | /* |
| 143 | * MD5 test vectors from RFC1321 |
| 144 | */ |
| 145 | #define MD5_TEST_VECTORS 7 |
| 146 | |
| 147 | static struct hash_testvec md5_tv_template[] = { |
| 148 | { |
| 149 | .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04" |
| 150 | "\xe9\x80\x09\x98\xec\xf8\x42\x7e", |
| 151 | }, { |
| 152 | .plaintext = "a", |
| 153 | .psize = 1, |
| 154 | .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8" |
| 155 | "\x31\xc3\x99\xe2\x69\x77\x26\x61", |
| 156 | }, { |
| 157 | .plaintext = "abc", |
| 158 | .psize = 3, |
| 159 | .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0" |
| 160 | "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72", |
| 161 | }, { |
| 162 | .plaintext = "message digest", |
| 163 | .psize = 14, |
| 164 | .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d" |
| 165 | "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0", |
| 166 | }, { |
| 167 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 168 | .psize = 26, |
| 169 | .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00" |
| 170 | "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b", |
| 171 | .np = 2, |
| 172 | .tap = {13, 13} |
| 173 | }, { |
| 174 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 175 | .psize = 62, |
| 176 | .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5" |
| 177 | "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f", |
| 178 | }, { |
| 179 | .plaintext = "12345678901234567890123456789012345678901234567890123456789012" |
| 180 | "345678901234567890", |
| 181 | .psize = 80, |
| 182 | .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55" |
| 183 | "\xac\x49\xda\x2e\x21\x07\xb6\x7a", |
| 184 | } |
| 185 | |
| 186 | }; |
| 187 | |
| 188 | /* |
| 189 | * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E) |
| 190 | */ |
| 191 | #define RMD128_TEST_VECTORS 10 |
| 192 | |
| 193 | static struct hash_testvec rmd128_tv_template[] = { |
| 194 | { |
| 195 | .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e" |
| 196 | "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46", |
| 197 | }, { |
| 198 | .plaintext = "a", |
| 199 | .psize = 1, |
| 200 | .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7" |
| 201 | "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33", |
| 202 | }, { |
| 203 | .plaintext = "abc", |
| 204 | .psize = 3, |
| 205 | .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba" |
| 206 | "\x84\x63\x6b\x0f\x69\x14\x4c\x77", |
| 207 | }, { |
| 208 | .plaintext = "message digest", |
| 209 | .psize = 14, |
| 210 | .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62" |
| 211 | "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8", |
| 212 | }, { |
| 213 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 214 | .psize = 26, |
| 215 | .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5" |
| 216 | "\x10\x71\x49\x22\xb3\x71\x83\x4e", |
| 217 | }, { |
| 218 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 219 | "fghijklmnopqrstuvwxyz0123456789", |
| 220 | .psize = 62, |
| 221 | .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f" |
| 222 | "\xae\xa4\x62\x4c\x60\xc5\xc7\x02", |
| 223 | }, { |
| 224 | .plaintext = "1234567890123456789012345678901234567890" |
| 225 | "1234567890123456789012345678901234567890", |
| 226 | .psize = 80, |
| 227 | .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb" |
| 228 | "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3", |
| 229 | }, { |
| 230 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 231 | "hijkijkljklmklmnlmnomnopnopq", |
| 232 | .psize = 56, |
| 233 | .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d" |
| 234 | "\xdc\x22\xe8\x8b\x49\x13\x3a\x06", |
| 235 | .np = 2, |
| 236 | .tap = { 28, 28 }, |
| 237 | }, { |
| 238 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 239 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 240 | "lmnopqrsmnopqrstnopqrstu", |
| 241 | .psize = 112, |
| 242 | .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b" |
| 243 | "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46", |
| 244 | }, { |
| 245 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 246 | .psize = 32, |
| 247 | .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d" |
| 248 | "\xe1\x93\xff\x46\xdb\xac\xcf\xd4", |
| 249 | } |
| 250 | }; |
| 251 | |
| 252 | /* |
| 253 | * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E) |
| 254 | */ |
| 255 | #define RMD160_TEST_VECTORS 10 |
| 256 | |
| 257 | static struct hash_testvec rmd160_tv_template[] = { |
| 258 | { |
| 259 | .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28" |
| 260 | "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31", |
| 261 | }, { |
| 262 | .plaintext = "a", |
| 263 | .psize = 1, |
| 264 | .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae" |
| 265 | "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe", |
| 266 | }, { |
| 267 | .plaintext = "abc", |
| 268 | .psize = 3, |
| 269 | .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04" |
| 270 | "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc", |
| 271 | }, { |
| 272 | .plaintext = "message digest", |
| 273 | .psize = 14, |
| 274 | .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8" |
| 275 | "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36", |
| 276 | }, { |
| 277 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 278 | .psize = 26, |
| 279 | .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb" |
| 280 | "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc", |
| 281 | }, { |
| 282 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 283 | "fghijklmnopqrstuvwxyz0123456789", |
| 284 | .psize = 62, |
| 285 | .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed" |
| 286 | "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89", |
| 287 | }, { |
| 288 | .plaintext = "1234567890123456789012345678901234567890" |
| 289 | "1234567890123456789012345678901234567890", |
| 290 | .psize = 80, |
| 291 | .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb" |
| 292 | "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb", |
| 293 | }, { |
| 294 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 295 | "hijkijkljklmklmnlmnomnopnopq", |
| 296 | .psize = 56, |
| 297 | .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05" |
| 298 | "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b", |
| 299 | .np = 2, |
| 300 | .tap = { 28, 28 }, |
| 301 | }, { |
| 302 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 303 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 304 | "lmnopqrsmnopqrstnopqrstu", |
| 305 | .psize = 112, |
| 306 | .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91" |
| 307 | "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45", |
| 308 | }, { |
| 309 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 310 | .psize = 32, |
| 311 | .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d" |
| 312 | "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f", |
| 313 | } |
| 314 | }; |
| 315 | |
| 316 | /* |
| 317 | * RIPEMD-256 test vectors |
| 318 | */ |
| 319 | #define RMD256_TEST_VECTORS 8 |
| 320 | |
| 321 | static struct hash_testvec rmd256_tv_template[] = { |
| 322 | { |
| 323 | .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18" |
| 324 | "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a" |
| 325 | "\x2d\x97\x74\xfb\x1e\x5d\x02\x63" |
| 326 | "\x80\xae\x01\x68\xe3\xc5\x52\x2d", |
| 327 | }, { |
| 328 | .plaintext = "a", |
| 329 | .psize = 1, |
| 330 | .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9" |
| 331 | "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c" |
| 332 | "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf" |
| 333 | "\xcd\x88\x3a\x91\x34\x69\x29\x25", |
| 334 | }, { |
| 335 | .plaintext = "abc", |
| 336 | .psize = 3, |
| 337 | .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb" |
| 338 | "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1" |
| 339 | "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e" |
| 340 | "\x1e\x42\xd2\xe9\x75\x45\x9b\x65", |
| 341 | }, { |
| 342 | .plaintext = "message digest", |
| 343 | .psize = 14, |
| 344 | .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a" |
| 345 | "\x51\x4d\x5c\x91\x4c\x39\x2c\x90" |
| 346 | "\x18\xc7\xc4\x6b\xc1\x44\x65\x55" |
| 347 | "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e", |
| 348 | }, { |
| 349 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 350 | .psize = 26, |
| 351 | .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16" |
| 352 | "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc" |
| 353 | "\x78\x96\x11\x8a\x51\x97\x96\x87" |
| 354 | "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33", |
| 355 | }, { |
| 356 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 357 | "fghijklmnopqrstuvwxyz0123456789", |
| 358 | .psize = 62, |
| 359 | .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20" |
| 360 | "\xb8\x44\x24\xae\x93\x1c\xbb\x1f" |
| 361 | "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1" |
| 362 | "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8", |
| 363 | }, { |
| 364 | .plaintext = "1234567890123456789012345678901234567890" |
| 365 | "1234567890123456789012345678901234567890", |
| 366 | .psize = 80, |
| 367 | .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa" |
| 368 | "\xf9\x13\x68\xc0\x6a\x62\x75\xb5" |
| 369 | "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed" |
| 370 | "\xfd\x67\x78\xdf\x89\xa8\x90\xdd", |
| 371 | }, { |
| 372 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 373 | "hijkijkljklmklmnlmnomnopnopq", |
| 374 | .psize = 56, |
| 375 | .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8" |
| 376 | "\xc8\xd9\x12\x85\x73\xe7\xa9\x80" |
| 377 | "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e" |
| 378 | "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f", |
| 379 | .np = 2, |
| 380 | .tap = { 28, 28 }, |
| 381 | } |
| 382 | }; |
| 383 | |
| 384 | /* |
| 385 | * RIPEMD-320 test vectors |
| 386 | */ |
| 387 | #define RMD320_TEST_VECTORS 8 |
| 388 | |
| 389 | static struct hash_testvec rmd320_tv_template[] = { |
| 390 | { |
| 391 | .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1" |
| 392 | "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25" |
| 393 | "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e" |
| 394 | "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8", |
| 395 | }, { |
| 396 | .plaintext = "a", |
| 397 | .psize = 1, |
| 398 | .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5" |
| 399 | "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57" |
| 400 | "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54" |
| 401 | "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d", |
| 402 | }, { |
| 403 | .plaintext = "abc", |
| 404 | .psize = 3, |
| 405 | .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d" |
| 406 | "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08" |
| 407 | "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74" |
| 408 | "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d", |
| 409 | }, { |
| 410 | .plaintext = "message digest", |
| 411 | .psize = 14, |
| 412 | .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68" |
| 413 | "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa" |
| 414 | "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d" |
| 415 | "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97", |
| 416 | }, { |
| 417 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 418 | .psize = 26, |
| 419 | .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93" |
| 420 | "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4" |
| 421 | "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed" |
| 422 | "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09", |
| 423 | }, { |
| 424 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 425 | "fghijklmnopqrstuvwxyz0123456789", |
| 426 | .psize = 62, |
| 427 | .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2" |
| 428 | "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c" |
| 429 | "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9" |
| 430 | "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4", |
| 431 | }, { |
| 432 | .plaintext = "1234567890123456789012345678901234567890" |
| 433 | "1234567890123456789012345678901234567890", |
| 434 | .psize = 80, |
| 435 | .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6" |
| 436 | "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41" |
| 437 | "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f" |
| 438 | "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42", |
| 439 | }, { |
| 440 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 441 | "hijkijkljklmklmnlmnomnopnopq", |
| 442 | .psize = 56, |
| 443 | .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4" |
| 444 | "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59" |
| 445 | "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b" |
| 446 | "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac", |
| 447 | .np = 2, |
| 448 | .tap = { 28, 28 }, |
| 449 | } |
| 450 | }; |
| 451 | |
| 452 | /* |
| 453 | * SHA1 test vectors from from FIPS PUB 180-1 |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 454 | * Long vector from CAVS 5.0 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 455 | */ |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 456 | #define SHA1_TEST_VECTORS 3 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 457 | |
| 458 | static struct hash_testvec sha1_tv_template[] = { |
| 459 | { |
| 460 | .plaintext = "abc", |
| 461 | .psize = 3, |
| 462 | .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e" |
| 463 | "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d", |
| 464 | }, { |
| 465 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 466 | .psize = 56, |
| 467 | .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae" |
| 468 | "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1", |
| 469 | .np = 2, |
| 470 | .tap = { 28, 28 } |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 471 | }, { |
| 472 | .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06" |
| 473 | "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44" |
| 474 | "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f" |
| 475 | "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5" |
| 476 | "\x73\x6a\x10\x6e\x92\xe1\x71\x39" |
| 477 | "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3" |
| 478 | "\xfb\x95\x46\xab\x42\x96\xfa\x9f" |
| 479 | "\x72\x28\x26\xc0\x66\x86\x9e\xda" |
| 480 | "\xcd\x73\xb2\x54\x80\x35\x18\x58" |
| 481 | "\x13\xe2\x26\x34\xa9\xda\x44\x00" |
| 482 | "\x0d\x95\xa2\x81\xff\x9f\x26\x4e" |
| 483 | "\xcc\xe0\xa9\x31\x22\x21\x62\xd0" |
| 484 | "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa" |
| 485 | "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13" |
| 486 | "\xae\x29\x81\x0f\xd7\x94\xca\xd5" |
| 487 | "\xdf\xaf\x29\xec\x43\xcb\x38\xd1" |
| 488 | "\x98\xfe\x4a\xe1\xda\x23\x59\x78" |
| 489 | "\x02\x21\x40\x5b\xd6\x71\x2a\x53" |
| 490 | "\x05\xda\x4b\x1b\x73\x7f\xce\x7c" |
| 491 | "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23" |
| 492 | "\x5a\x90\x11", |
| 493 | .psize = 163, |
| 494 | .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20" |
| 495 | "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17", |
| 496 | .np = 4, |
| 497 | .tap = { 63, 64, 31, 5 } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 498 | } |
| 499 | }; |
| 500 | |
| 501 | |
| 502 | /* |
| 503 | * SHA224 test vectors from from FIPS PUB 180-2 |
| 504 | */ |
| 505 | #define SHA224_TEST_VECTORS 2 |
| 506 | |
| 507 | static struct hash_testvec sha224_tv_template[] = { |
| 508 | { |
| 509 | .plaintext = "abc", |
| 510 | .psize = 3, |
| 511 | .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22" |
| 512 | "\x86\x42\xA4\x77\xBD\xA2\x55\xB3" |
| 513 | "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7" |
| 514 | "\xE3\x6C\x9D\xA7", |
| 515 | }, { |
| 516 | .plaintext = |
| 517 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 518 | .psize = 56, |
| 519 | .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC" |
| 520 | "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50" |
| 521 | "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19" |
| 522 | "\x52\x52\x25\x25", |
| 523 | .np = 2, |
| 524 | .tap = { 28, 28 } |
| 525 | } |
| 526 | }; |
| 527 | |
| 528 | /* |
| 529 | * SHA256 test vectors from from NIST |
| 530 | */ |
| 531 | #define SHA256_TEST_VECTORS 2 |
| 532 | |
| 533 | static struct hash_testvec sha256_tv_template[] = { |
| 534 | { |
| 535 | .plaintext = "abc", |
| 536 | .psize = 3, |
| 537 | .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea" |
| 538 | "\x41\x41\x40\xde\x5d\xae\x22\x23" |
| 539 | "\xb0\x03\x61\xa3\x96\x17\x7a\x9c" |
| 540 | "\xb4\x10\xff\x61\xf2\x00\x15\xad", |
| 541 | }, { |
| 542 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 543 | .psize = 56, |
| 544 | .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8" |
| 545 | "\xe5\xc0\x26\x93\x0c\x3e\x60\x39" |
| 546 | "\xa3\x3c\xe4\x59\x64\xff\x21\x67" |
| 547 | "\xf6\xec\xed\xd4\x19\xdb\x06\xc1", |
| 548 | .np = 2, |
| 549 | .tap = { 28, 28 } |
| 550 | }, |
| 551 | }; |
| 552 | |
| 553 | /* |
| 554 | * SHA384 test vectors from from NIST and kerneli |
| 555 | */ |
| 556 | #define SHA384_TEST_VECTORS 4 |
| 557 | |
| 558 | static struct hash_testvec sha384_tv_template[] = { |
| 559 | { |
| 560 | .plaintext= "abc", |
| 561 | .psize = 3, |
| 562 | .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b" |
| 563 | "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07" |
| 564 | "\x27\x2c\x32\xab\x0e\xde\xd1\x63" |
| 565 | "\x1a\x8b\x60\x5a\x43\xff\x5b\xed" |
| 566 | "\x80\x86\x07\x2b\xa1\xe7\xcc\x23" |
| 567 | "\x58\xba\xec\xa1\x34\xc8\x25\xa7", |
| 568 | }, { |
| 569 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 570 | .psize = 56, |
| 571 | .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39" |
| 572 | "\x37\x07\xa6\x5b\x1b\x47\x09\x39" |
| 573 | "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab" |
| 574 | "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6" |
| 575 | "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f" |
| 576 | "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b", |
| 577 | }, { |
| 578 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 579 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 580 | .psize = 112, |
| 581 | .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8" |
| 582 | "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47" |
| 583 | "\x53\x11\x1b\x17\x3b\x3b\x05\xd2" |
| 584 | "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12" |
| 585 | "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9" |
| 586 | "\x66\xc3\xe9\xfa\x91\x74\x60\x39", |
| 587 | }, { |
| 588 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 589 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 590 | .psize = 104, |
| 591 | .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb" |
| 592 | "\xbd\x7e\x2c\x28\x62\xba\x29\x0a" |
| 593 | "\xd3\x01\x0e\x49\x78\xc1\x98\xdc" |
| 594 | "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a" |
| 595 | "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a" |
| 596 | "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4", |
| 597 | .np = 4, |
| 598 | .tap = { 26, 26, 26, 26 } |
| 599 | }, |
| 600 | }; |
| 601 | |
| 602 | /* |
| 603 | * SHA512 test vectors from from NIST and kerneli |
| 604 | */ |
| 605 | #define SHA512_TEST_VECTORS 4 |
| 606 | |
| 607 | static struct hash_testvec sha512_tv_template[] = { |
| 608 | { |
| 609 | .plaintext = "abc", |
| 610 | .psize = 3, |
| 611 | .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba" |
| 612 | "\xcc\x41\x73\x49\xae\x20\x41\x31" |
| 613 | "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2" |
| 614 | "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a" |
| 615 | "\x21\x92\x99\x2a\x27\x4f\xc1\xa8" |
| 616 | "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd" |
| 617 | "\x45\x4d\x44\x23\x64\x3c\xe8\x0e" |
| 618 | "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f", |
| 619 | }, { |
| 620 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 621 | .psize = 56, |
| 622 | .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a" |
| 623 | "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16" |
| 624 | "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8" |
| 625 | "\x27\x9b\xe3\x31\xa7\x03\xc3\x35" |
| 626 | "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9" |
| 627 | "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0" |
| 628 | "\x31\xad\x85\xc7\xa7\x1d\xd7\x03" |
| 629 | "\x54\xec\x63\x12\x38\xca\x34\x45", |
| 630 | }, { |
| 631 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 632 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 633 | .psize = 112, |
| 634 | .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda" |
| 635 | "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f" |
| 636 | "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1" |
| 637 | "\x72\x99\xae\xad\xb6\x88\x90\x18" |
| 638 | "\x50\x1d\x28\x9e\x49\x00\xf7\xe4" |
| 639 | "\x33\x1b\x99\xde\xc4\xb5\x43\x3a" |
| 640 | "\xc7\xd3\x29\xee\xb6\xdd\x26\x54" |
| 641 | "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09", |
| 642 | }, { |
| 643 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 644 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 645 | .psize = 104, |
| 646 | .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11" |
| 647 | "\x33\xb6\x89\x81\x21\xf1\xcf\x3d" |
| 648 | "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c" |
| 649 | "\x52\x57\xcf\x06\x99\x11\xf7\x5d" |
| 650 | "\x8f\x58\x31\xb5\x6e\xbf\xda\x67" |
| 651 | "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe" |
| 652 | "\x2b\x28\x70\xf7\x42\xa5\x80\xd8" |
| 653 | "\xed\xb4\x19\x87\x23\x28\x50\xc9", |
| 654 | .np = 4, |
| 655 | .tap = { 26, 26, 26, 26 } |
| 656 | }, |
| 657 | }; |
| 658 | |
| 659 | |
| 660 | /* |
| 661 | * WHIRLPOOL test vectors from Whirlpool package |
| 662 | * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE |
| 663 | * submission |
| 664 | */ |
| 665 | #define WP512_TEST_VECTORS 8 |
| 666 | |
| 667 | static struct hash_testvec wp512_tv_template[] = { |
| 668 | { |
| 669 | .plaintext = "", |
| 670 | .psize = 0, |
| 671 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 672 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 673 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 674 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 675 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 676 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57" |
| 677 | "\xEA\x89\x64\xE5\x9B\x63\xD9\x37" |
| 678 | "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3", |
| 679 | |
| 680 | |
| 681 | }, { |
| 682 | .plaintext = "a", |
| 683 | .psize = 1, |
| 684 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 685 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 686 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 687 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 688 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 689 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59" |
| 690 | "\x1A\x92\x20\x0D\x56\x01\x95\xE5" |
| 691 | "\x3B\x47\x85\x84\xFD\xAE\x23\x1A", |
| 692 | }, { |
| 693 | .plaintext = "abc", |
| 694 | .psize = 3, |
| 695 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 696 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 697 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 698 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 699 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 700 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6" |
| 701 | "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82" |
| 702 | "\xD2\x25\x29\x20\x76\xD4\xEE\xF5", |
| 703 | }, { |
| 704 | .plaintext = "message digest", |
| 705 | .psize = 14, |
| 706 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 707 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 708 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 709 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 710 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 711 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6" |
| 712 | "\x92\xED\x92\x00\x52\x83\x8F\x33" |
| 713 | "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E", |
| 714 | }, { |
| 715 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 716 | .psize = 26, |
| 717 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 718 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 719 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 720 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 721 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 722 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6" |
| 723 | "\xF6\x8F\x67\x3E\x72\x07\x86\x5D" |
| 724 | "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B", |
| 725 | }, { |
| 726 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 727 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 728 | .psize = 62, |
| 729 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 730 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 731 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 732 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 733 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 734 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6" |
| 735 | "\x55\x17\xCC\x87\x9D\x7B\x96\x21" |
| 736 | "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67", |
| 737 | }, { |
| 738 | .plaintext = "1234567890123456789012345678901234567890" |
| 739 | "1234567890123456789012345678901234567890", |
| 740 | .psize = 80, |
| 741 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 742 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 743 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 744 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 745 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 746 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A" |
| 747 | "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B" |
| 748 | "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B", |
| 749 | }, { |
| 750 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 751 | .psize = 32, |
| 752 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 753 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 754 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 755 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 756 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 757 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56" |
| 758 | "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6" |
| 759 | "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD", |
| 760 | }, |
| 761 | }; |
| 762 | |
| 763 | #define WP384_TEST_VECTORS 8 |
| 764 | |
| 765 | static struct hash_testvec wp384_tv_template[] = { |
| 766 | { |
| 767 | .plaintext = "", |
| 768 | .psize = 0, |
| 769 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 770 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 771 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 772 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 773 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 774 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57", |
| 775 | |
| 776 | |
| 777 | }, { |
| 778 | .plaintext = "a", |
| 779 | .psize = 1, |
| 780 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 781 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 782 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 783 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 784 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 785 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59", |
| 786 | }, { |
| 787 | .plaintext = "abc", |
| 788 | .psize = 3, |
| 789 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 790 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 791 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 792 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 793 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 794 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6", |
| 795 | }, { |
| 796 | .plaintext = "message digest", |
| 797 | .psize = 14, |
| 798 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 799 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 800 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 801 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 802 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 803 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6", |
| 804 | }, { |
| 805 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 806 | .psize = 26, |
| 807 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 808 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 809 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 810 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 811 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 812 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6", |
| 813 | }, { |
| 814 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 815 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 816 | .psize = 62, |
| 817 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 818 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 819 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 820 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 821 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 822 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6", |
| 823 | }, { |
| 824 | .plaintext = "1234567890123456789012345678901234567890" |
| 825 | "1234567890123456789012345678901234567890", |
| 826 | .psize = 80, |
| 827 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 828 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 829 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 830 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 831 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 832 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A", |
| 833 | }, { |
| 834 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 835 | .psize = 32, |
| 836 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 837 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 838 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 839 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 840 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 841 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56", |
| 842 | }, |
| 843 | }; |
| 844 | |
| 845 | #define WP256_TEST_VECTORS 8 |
| 846 | |
| 847 | static struct hash_testvec wp256_tv_template[] = { |
| 848 | { |
| 849 | .plaintext = "", |
| 850 | .psize = 0, |
| 851 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 852 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 853 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 854 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7", |
| 855 | |
| 856 | |
| 857 | }, { |
| 858 | .plaintext = "a", |
| 859 | .psize = 1, |
| 860 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 861 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 862 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 863 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42", |
| 864 | }, { |
| 865 | .plaintext = "abc", |
| 866 | .psize = 3, |
| 867 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 868 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 869 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 870 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C", |
| 871 | }, { |
| 872 | .plaintext = "message digest", |
| 873 | .psize = 14, |
| 874 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 875 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 876 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 877 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B", |
| 878 | }, { |
| 879 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 880 | .psize = 26, |
| 881 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 882 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 883 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 884 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B", |
| 885 | }, { |
| 886 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 887 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 888 | .psize = 62, |
| 889 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 890 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 891 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 892 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E", |
| 893 | }, { |
| 894 | .plaintext = "1234567890123456789012345678901234567890" |
| 895 | "1234567890123456789012345678901234567890", |
| 896 | .psize = 80, |
| 897 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 898 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 899 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 900 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29", |
| 901 | }, { |
| 902 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 903 | .psize = 32, |
| 904 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 905 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 906 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 907 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69", |
| 908 | }, |
| 909 | }; |
| 910 | |
| 911 | /* |
| 912 | * TIGER test vectors from Tiger website |
| 913 | */ |
| 914 | #define TGR192_TEST_VECTORS 6 |
| 915 | |
| 916 | static struct hash_testvec tgr192_tv_template[] = { |
| 917 | { |
| 918 | .plaintext = "", |
| 919 | .psize = 0, |
| 920 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 921 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 922 | "\xf3\x73\xde\x2d\x49\x58\x4e\x7a", |
| 923 | }, { |
| 924 | .plaintext = "abc", |
| 925 | .psize = 3, |
| 926 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 927 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 928 | "\x93\x5f\x7b\x95\x1c\x13\x29\x51", |
| 929 | }, { |
| 930 | .plaintext = "Tiger", |
| 931 | .psize = 5, |
| 932 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 933 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 934 | "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf", |
| 935 | }, { |
| 936 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 937 | .psize = 64, |
| 938 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 939 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 940 | "\xb5\x86\x44\x50\x34\xa5\xa3\x86", |
| 941 | }, { |
| 942 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 943 | .psize = 64, |
| 944 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 945 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 946 | "\x57\x89\x65\x65\x97\x5f\x91\x97", |
| 947 | }, { |
| 948 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 949 | "by Ross Anderson and Eli Biham, " |
| 950 | "proceedings of Fast Software Encryption 3, " |
| 951 | "Cambridge, 1996.", |
| 952 | .psize = 125, |
| 953 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 954 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 955 | "\xdd\x68\x15\x1d\x50\x39\x74\xfc", |
| 956 | }, |
| 957 | }; |
| 958 | |
| 959 | #define TGR160_TEST_VECTORS 6 |
| 960 | |
| 961 | static struct hash_testvec tgr160_tv_template[] = { |
| 962 | { |
| 963 | .plaintext = "", |
| 964 | .psize = 0, |
| 965 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 966 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 967 | "\xf3\x73\xde\x2d", |
| 968 | }, { |
| 969 | .plaintext = "abc", |
| 970 | .psize = 3, |
| 971 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 972 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 973 | "\x93\x5f\x7b\x95", |
| 974 | }, { |
| 975 | .plaintext = "Tiger", |
| 976 | .psize = 5, |
| 977 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 978 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 979 | "\x37\x79\x0c\x11", |
| 980 | }, { |
| 981 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 982 | .psize = 64, |
| 983 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 984 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 985 | "\xb5\x86\x44\x50", |
| 986 | }, { |
| 987 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 988 | .psize = 64, |
| 989 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 990 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 991 | "\x57\x89\x65\x65", |
| 992 | }, { |
| 993 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 994 | "by Ross Anderson and Eli Biham, " |
| 995 | "proceedings of Fast Software Encryption 3, " |
| 996 | "Cambridge, 1996.", |
| 997 | .psize = 125, |
| 998 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 999 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 1000 | "\xdd\x68\x15\x1d", |
| 1001 | }, |
| 1002 | }; |
| 1003 | |
| 1004 | #define TGR128_TEST_VECTORS 6 |
| 1005 | |
| 1006 | static struct hash_testvec tgr128_tv_template[] = { |
| 1007 | { |
| 1008 | .plaintext = "", |
| 1009 | .psize = 0, |
| 1010 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 1011 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f", |
| 1012 | }, { |
| 1013 | .plaintext = "abc", |
| 1014 | .psize = 3, |
| 1015 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 1016 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf", |
| 1017 | }, { |
| 1018 | .plaintext = "Tiger", |
| 1019 | .psize = 5, |
| 1020 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 1021 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec", |
| 1022 | }, { |
| 1023 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1024 | .psize = 64, |
| 1025 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 1026 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e", |
| 1027 | }, { |
| 1028 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 1029 | .psize = 64, |
| 1030 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 1031 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9", |
| 1032 | }, { |
| 1033 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 1034 | "by Ross Anderson and Eli Biham, " |
| 1035 | "proceedings of Fast Software Encryption 3, " |
| 1036 | "Cambridge, 1996.", |
| 1037 | .psize = 125, |
| 1038 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 1039 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24", |
| 1040 | }, |
| 1041 | }; |
| 1042 | |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 1043 | #define GHASH_TEST_VECTORS 1 |
| 1044 | |
| 1045 | static struct hash_testvec ghash_tv_template[] = |
| 1046 | { |
| 1047 | { |
| 1048 | |
| 1049 | .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61", |
| 1050 | .ksize = 16, |
| 1051 | .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6", |
| 1052 | .psize = 16, |
| 1053 | .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6" |
| 1054 | "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60", |
| 1055 | }, |
| 1056 | }; |
| 1057 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1058 | /* |
| 1059 | * HMAC-MD5 test vectors from RFC2202 |
| 1060 | * (These need to be fixed to not use strlen). |
| 1061 | */ |
| 1062 | #define HMAC_MD5_TEST_VECTORS 7 |
| 1063 | |
| 1064 | static struct hash_testvec hmac_md5_tv_template[] = |
| 1065 | { |
| 1066 | { |
| 1067 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1068 | .ksize = 16, |
| 1069 | .plaintext = "Hi There", |
| 1070 | .psize = 8, |
| 1071 | .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c" |
| 1072 | "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d", |
| 1073 | }, { |
| 1074 | .key = "Jefe", |
| 1075 | .ksize = 4, |
| 1076 | .plaintext = "what do ya want for nothing?", |
| 1077 | .psize = 28, |
| 1078 | .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03" |
| 1079 | "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38", |
| 1080 | .np = 2, |
| 1081 | .tap = {14, 14} |
| 1082 | }, { |
| 1083 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 1084 | .ksize = 16, |
| 1085 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1086 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1087 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1088 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 1089 | .psize = 50, |
| 1090 | .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88" |
| 1091 | "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6", |
| 1092 | }, { |
| 1093 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1094 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1095 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 1096 | .ksize = 25, |
| 1097 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1098 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1099 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1100 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 1101 | .psize = 50, |
| 1102 | .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea" |
| 1103 | "\x3a\x75\x16\x47\x46\xff\xaa\x79", |
| 1104 | }, { |
| 1105 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 1106 | .ksize = 16, |
| 1107 | .plaintext = "Test With Truncation", |
| 1108 | .psize = 20, |
| 1109 | .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00" |
| 1110 | "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c", |
| 1111 | }, { |
| 1112 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1113 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1114 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1115 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1116 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1117 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1118 | "\xaa\xaa", |
| 1119 | .ksize = 80, |
| 1120 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 1121 | .psize = 54, |
| 1122 | .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f" |
| 1123 | "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd", |
| 1124 | }, { |
| 1125 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1126 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1127 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1128 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1129 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1130 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1131 | "\xaa\xaa", |
| 1132 | .ksize = 80, |
| 1133 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 1134 | "Block-Size Data", |
| 1135 | .psize = 73, |
| 1136 | .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee" |
| 1137 | "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e", |
| 1138 | }, |
| 1139 | }; |
| 1140 | |
| 1141 | /* |
| 1142 | * HMAC-RIPEMD128 test vectors from RFC2286 |
| 1143 | */ |
| 1144 | #define HMAC_RMD128_TEST_VECTORS 7 |
| 1145 | |
| 1146 | static struct hash_testvec hmac_rmd128_tv_template[] = { |
| 1147 | { |
| 1148 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1149 | .ksize = 16, |
| 1150 | .plaintext = "Hi There", |
| 1151 | .psize = 8, |
| 1152 | .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf" |
| 1153 | "\x81\xc1\x72\xe8\x4e\x07\x34\xdb", |
| 1154 | }, { |
| 1155 | .key = "Jefe", |
| 1156 | .ksize = 4, |
| 1157 | .plaintext = "what do ya want for nothing?", |
| 1158 | .psize = 28, |
| 1159 | .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34" |
| 1160 | "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b", |
| 1161 | .np = 2, |
| 1162 | .tap = { 14, 14 }, |
| 1163 | }, { |
| 1164 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 1165 | .ksize = 16, |
| 1166 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1167 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1168 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1169 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 1170 | .psize = 50, |
| 1171 | .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d" |
| 1172 | "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d", |
| 1173 | }, { |
| 1174 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1175 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1176 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 1177 | .ksize = 25, |
| 1178 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1179 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1180 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1181 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 1182 | .psize = 50, |
| 1183 | .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a" |
| 1184 | "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94", |
| 1185 | }, { |
| 1186 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 1187 | .ksize = 16, |
| 1188 | .plaintext = "Test With Truncation", |
| 1189 | .psize = 20, |
| 1190 | .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03" |
| 1191 | "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a", |
| 1192 | }, { |
| 1193 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1194 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1195 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1196 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1197 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1198 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1199 | "\xaa\xaa", |
| 1200 | .ksize = 80, |
| 1201 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 1202 | .psize = 54, |
| 1203 | .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a" |
| 1204 | "\x1f\x59\xd3\x73\xc1\x50\xac\xbb", |
| 1205 | }, { |
| 1206 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1207 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1208 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1209 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1210 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1211 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1212 | "\xaa\xaa", |
| 1213 | .ksize = 80, |
| 1214 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 1215 | "Block-Size Data", |
| 1216 | .psize = 73, |
| 1217 | .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4" |
| 1218 | "\x06\x90\xc2\x37\x63\x5f\x30\xc5", |
| 1219 | }, |
| 1220 | }; |
| 1221 | |
| 1222 | /* |
| 1223 | * HMAC-RIPEMD160 test vectors from RFC2286 |
| 1224 | */ |
| 1225 | #define HMAC_RMD160_TEST_VECTORS 7 |
| 1226 | |
| 1227 | static struct hash_testvec hmac_rmd160_tv_template[] = { |
| 1228 | { |
| 1229 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1230 | .ksize = 20, |
| 1231 | .plaintext = "Hi There", |
| 1232 | .psize = 8, |
| 1233 | .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e" |
| 1234 | "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68", |
| 1235 | }, { |
| 1236 | .key = "Jefe", |
| 1237 | .ksize = 4, |
| 1238 | .plaintext = "what do ya want for nothing?", |
| 1239 | .psize = 28, |
| 1240 | .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4" |
| 1241 | "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69", |
| 1242 | .np = 2, |
| 1243 | .tap = { 14, 14 }, |
| 1244 | }, { |
| 1245 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 1246 | .ksize = 20, |
| 1247 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1248 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1249 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1250 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 1251 | .psize = 50, |
| 1252 | .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4" |
| 1253 | "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1", |
| 1254 | }, { |
| 1255 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1256 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1257 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 1258 | .ksize = 25, |
| 1259 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1260 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1261 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1262 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 1263 | .psize = 50, |
| 1264 | .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1" |
| 1265 | "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4", |
| 1266 | }, { |
| 1267 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 1268 | .ksize = 20, |
| 1269 | .plaintext = "Test With Truncation", |
| 1270 | .psize = 20, |
| 1271 | .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a" |
| 1272 | "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39", |
| 1273 | }, { |
| 1274 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1275 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1276 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1277 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1278 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1279 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1280 | "\xaa\xaa", |
| 1281 | .ksize = 80, |
| 1282 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 1283 | .psize = 54, |
| 1284 | .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd" |
| 1285 | "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b", |
| 1286 | }, { |
| 1287 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1288 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1289 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1290 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1291 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1292 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1293 | "\xaa\xaa", |
| 1294 | .ksize = 80, |
| 1295 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 1296 | "Block-Size Data", |
| 1297 | .psize = 73, |
| 1298 | .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f" |
| 1299 | "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a", |
| 1300 | }, |
| 1301 | }; |
| 1302 | |
| 1303 | /* |
| 1304 | * HMAC-SHA1 test vectors from RFC2202 |
| 1305 | */ |
| 1306 | #define HMAC_SHA1_TEST_VECTORS 7 |
| 1307 | |
| 1308 | static struct hash_testvec hmac_sha1_tv_template[] = { |
| 1309 | { |
| 1310 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1311 | .ksize = 20, |
| 1312 | .plaintext = "Hi There", |
| 1313 | .psize = 8, |
| 1314 | .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64" |
| 1315 | "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1" |
| 1316 | "\x46\xbe", |
| 1317 | }, { |
| 1318 | .key = "Jefe", |
| 1319 | .ksize = 4, |
| 1320 | .plaintext = "what do ya want for nothing?", |
| 1321 | .psize = 28, |
| 1322 | .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74" |
| 1323 | "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79", |
| 1324 | .np = 2, |
| 1325 | .tap = { 14, 14 } |
| 1326 | }, { |
| 1327 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 1328 | .ksize = 20, |
| 1329 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1330 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1331 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1332 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 1333 | .psize = 50, |
| 1334 | .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3" |
| 1335 | "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3", |
| 1336 | }, { |
| 1337 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1338 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1339 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 1340 | .ksize = 25, |
| 1341 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1342 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1343 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1344 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 1345 | .psize = 50, |
| 1346 | .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84" |
| 1347 | "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda", |
| 1348 | }, { |
| 1349 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 1350 | .ksize = 20, |
| 1351 | .plaintext = "Test With Truncation", |
| 1352 | .psize = 20, |
| 1353 | .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2" |
| 1354 | "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04", |
| 1355 | }, { |
| 1356 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1357 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1358 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1359 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1360 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1361 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1362 | "\xaa\xaa", |
| 1363 | .ksize = 80, |
| 1364 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 1365 | .psize = 54, |
| 1366 | .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70" |
| 1367 | "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12", |
| 1368 | }, { |
| 1369 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1370 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1371 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1372 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1373 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1374 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1375 | "\xaa\xaa", |
| 1376 | .ksize = 80, |
| 1377 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 1378 | "Block-Size Data", |
| 1379 | .psize = 73, |
| 1380 | .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b" |
| 1381 | "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91", |
| 1382 | }, |
| 1383 | }; |
| 1384 | |
| 1385 | |
| 1386 | /* |
| 1387 | * SHA224 HMAC test vectors from RFC4231 |
| 1388 | */ |
| 1389 | #define HMAC_SHA224_TEST_VECTORS 4 |
| 1390 | |
| 1391 | static struct hash_testvec hmac_sha224_tv_template[] = { |
| 1392 | { |
| 1393 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1394 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1395 | "\x0b\x0b\x0b\x0b", |
| 1396 | .ksize = 20, |
| 1397 | /* ("Hi There") */ |
| 1398 | .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65", |
| 1399 | .psize = 8, |
| 1400 | .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19" |
| 1401 | "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f" |
| 1402 | "\x47\xb4\xb1\x16\x99\x12\xba\x4f" |
| 1403 | "\x53\x68\x4b\x22", |
| 1404 | }, { |
| 1405 | .key = "Jefe", |
| 1406 | .ksize = 4, |
| 1407 | /* ("what do ya want for nothing?") */ |
| 1408 | .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20" |
| 1409 | "\x79\x61\x20\x77\x61\x6e\x74\x20" |
| 1410 | "\x66\x6f\x72\x20\x6e\x6f\x74\x68" |
| 1411 | "\x69\x6e\x67\x3f", |
| 1412 | .psize = 28, |
| 1413 | .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf" |
| 1414 | "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f" |
| 1415 | "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00" |
| 1416 | "\x8f\xd0\x5e\x44", |
| 1417 | .np = 4, |
| 1418 | .tap = { 7, 7, 7, 7 } |
| 1419 | }, { |
| 1420 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1421 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1422 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1423 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1424 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1425 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1426 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1427 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1428 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1429 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1430 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1431 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1432 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1433 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1434 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1435 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1436 | "\xaa\xaa\xaa", |
| 1437 | .ksize = 131, |
| 1438 | /* ("Test Using Larger Than Block-Size Key - Hash Key First") */ |
| 1439 | .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69" |
| 1440 | "\x6e\x67\x20\x4c\x61\x72\x67\x65" |
| 1441 | "\x72\x20\x54\x68\x61\x6e\x20\x42" |
| 1442 | "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a" |
| 1443 | "\x65\x20\x4b\x65\x79\x20\x2d\x20" |
| 1444 | "\x48\x61\x73\x68\x20\x4b\x65\x79" |
| 1445 | "\x20\x46\x69\x72\x73\x74", |
| 1446 | .psize = 54, |
| 1447 | .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad" |
| 1448 | "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2" |
| 1449 | "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27" |
| 1450 | "\x3f\xa6\x87\x0e", |
| 1451 | }, { |
| 1452 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1453 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1454 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1455 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1456 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1457 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1458 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1459 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1460 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1461 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1462 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1463 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1464 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1465 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1466 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1467 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1468 | "\xaa\xaa\xaa", |
| 1469 | .ksize = 131, |
| 1470 | /* ("This is a test using a larger than block-size key and a") |
| 1471 | (" larger than block-size data. The key needs to be") |
| 1472 | (" hashed before being used by the HMAC algorithm.") */ |
| 1473 | .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20" |
| 1474 | "\x61\x20\x74\x65\x73\x74\x20\x75" |
| 1475 | "\x73\x69\x6e\x67\x20\x61\x20\x6c" |
| 1476 | "\x61\x72\x67\x65\x72\x20\x74\x68" |
| 1477 | "\x61\x6e\x20\x62\x6c\x6f\x63\x6b" |
| 1478 | "\x2d\x73\x69\x7a\x65\x20\x6b\x65" |
| 1479 | "\x79\x20\x61\x6e\x64\x20\x61\x20" |
| 1480 | "\x6c\x61\x72\x67\x65\x72\x20\x74" |
| 1481 | "\x68\x61\x6e\x20\x62\x6c\x6f\x63" |
| 1482 | "\x6b\x2d\x73\x69\x7a\x65\x20\x64" |
| 1483 | "\x61\x74\x61\x2e\x20\x54\x68\x65" |
| 1484 | "\x20\x6b\x65\x79\x20\x6e\x65\x65" |
| 1485 | "\x64\x73\x20\x74\x6f\x20\x62\x65" |
| 1486 | "\x20\x68\x61\x73\x68\x65\x64\x20" |
| 1487 | "\x62\x65\x66\x6f\x72\x65\x20\x62" |
| 1488 | "\x65\x69\x6e\x67\x20\x75\x73\x65" |
| 1489 | "\x64\x20\x62\x79\x20\x74\x68\x65" |
| 1490 | "\x20\x48\x4d\x41\x43\x20\x61\x6c" |
| 1491 | "\x67\x6f\x72\x69\x74\x68\x6d\x2e", |
| 1492 | .psize = 152, |
| 1493 | .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02" |
| 1494 | "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd" |
| 1495 | "\x94\x67\x70\xdb\x9c\x2b\x95\xc9" |
| 1496 | "\xf6\xf5\x65\xd1", |
| 1497 | }, |
| 1498 | }; |
| 1499 | |
| 1500 | /* |
| 1501 | * HMAC-SHA256 test vectors from |
| 1502 | * draft-ietf-ipsec-ciph-sha-256-01.txt |
| 1503 | */ |
| 1504 | #define HMAC_SHA256_TEST_VECTORS 10 |
| 1505 | |
| 1506 | static struct hash_testvec hmac_sha256_tv_template[] = { |
| 1507 | { |
| 1508 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1509 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1510 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 1511 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 1512 | .ksize = 32, |
| 1513 | .plaintext = "abc", |
| 1514 | .psize = 3, |
| 1515 | .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a" |
| 1516 | "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a" |
| 1517 | "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66" |
| 1518 | "\x92\x75\x90\x21\xcf\xab\x81\x81", |
| 1519 | }, { |
| 1520 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1521 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1522 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 1523 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 1524 | .ksize = 32, |
| 1525 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1526 | .psize = 56, |
| 1527 | .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08" |
| 1528 | "\x18\x4b\xa7\x31\x31\xc5\x3c\xae" |
| 1529 | "\xe6\x98\xe3\x61\x19\x42\x11\x49" |
| 1530 | "\xea\x8c\x71\x24\x56\x69\x7d\x30", |
| 1531 | }, { |
| 1532 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1533 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1534 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 1535 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 1536 | .ksize = 32, |
| 1537 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" |
| 1538 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1539 | .psize = 112, |
| 1540 | .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34" |
| 1541 | "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab" |
| 1542 | "\x73\xac\xf0\xfd\x06\x04\x47\xa5" |
| 1543 | "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3", |
| 1544 | }, { |
| 1545 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1546 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1547 | "\x0b\x0b\x0b\x0b\x0b\x0b", |
| 1548 | .ksize = 32, |
| 1549 | .plaintext = "Hi There", |
| 1550 | .psize = 8, |
| 1551 | .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6" |
| 1552 | "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5" |
| 1553 | "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c" |
| 1554 | "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7", |
| 1555 | }, { |
| 1556 | .key = "Jefe", |
| 1557 | .ksize = 4, |
| 1558 | .plaintext = "what do ya want for nothing?", |
| 1559 | .psize = 28, |
| 1560 | .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e" |
| 1561 | "\x6a\x04\x24\x26\x08\x95\x75\xc7" |
| 1562 | "\x5a\x00\x3f\x08\x9d\x27\x39\x83" |
| 1563 | "\x9d\xec\x58\xb9\x64\xec\x38\x43", |
| 1564 | .np = 2, |
| 1565 | .tap = { 14, 14 } |
| 1566 | }, { |
| 1567 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1568 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1569 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 1570 | .ksize = 32, |
| 1571 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1572 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1573 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 1574 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 1575 | .psize = 50, |
| 1576 | .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea" |
| 1577 | "\x91\xe5\x3a\xba\x30\x92\xf9\x62" |
| 1578 | "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc" |
| 1579 | "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0", |
| 1580 | }, { |
| 1581 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 1582 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 1583 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 1584 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 1585 | "\x21\x22\x23\x24\x25", |
| 1586 | .ksize = 37, |
| 1587 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1588 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1589 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 1590 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 1591 | .psize = 50, |
| 1592 | .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74" |
| 1593 | "\x4c\x66\xde\xe0\xf8\xf0\x74\x55" |
| 1594 | "\x6e\xc4\xaf\x55\xef\x07\x99\x85" |
| 1595 | "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17", |
| 1596 | }, { |
| 1597 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 1598 | "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 1599 | "\x0c\x0c\x0c\x0c\x0c\x0c", |
| 1600 | .ksize = 32, |
| 1601 | .plaintext = "Test With Truncation", |
| 1602 | .psize = 20, |
| 1603 | .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b" |
| 1604 | "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17" |
| 1605 | "\xd4\xf5\x89\x66\x8a\x58\x7b\x27" |
| 1606 | "\x00\xa9\xc9\x7c\x11\x93\xcf\x42", |
| 1607 | }, { |
| 1608 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1609 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1610 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1611 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1612 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1613 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1614 | "\xaa\xaa", |
| 1615 | .ksize = 80, |
| 1616 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 1617 | .psize = 54, |
| 1618 | .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09" |
| 1619 | "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb" |
| 1620 | "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e" |
| 1621 | "\x7d\xdd\x39\x09\x1b\x32\x35\x2f", |
| 1622 | }, { |
| 1623 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1624 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1625 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1626 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1627 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1628 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1629 | "\xaa\xaa", |
| 1630 | .ksize = 80, |
| 1631 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than " |
| 1632 | "One Block-Size Data", |
| 1633 | .psize = 73, |
| 1634 | .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3" |
| 1635 | "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8" |
| 1636 | "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc" |
| 1637 | "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6", |
| 1638 | }, |
| 1639 | }; |
| 1640 | |
| 1641 | #define XCBC_AES_TEST_VECTORS 6 |
| 1642 | |
| 1643 | static struct hash_testvec aes_xcbc128_tv_template[] = { |
| 1644 | { |
| 1645 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1646 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1647 | .plaintext = zeroed_string, |
| 1648 | .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c" |
| 1649 | "\x45\x73\xdf\xd5\x84\xd7\x9f\x29", |
| 1650 | .psize = 0, |
| 1651 | .ksize = 16, |
| 1652 | }, { |
| 1653 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1654 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1655 | .plaintext = "\x00\x01\x02", |
| 1656 | .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf" |
| 1657 | "\xe7\x21\x9c\xee\xf1\x72\x75\x6f", |
| 1658 | .psize = 3, |
| 1659 | .ksize = 16, |
| 1660 | } , { |
| 1661 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1662 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1663 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1664 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1665 | .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7" |
| 1666 | "\x99\x98\xa4\x39\x4f\xf7\xa2\x63", |
| 1667 | .psize = 16, |
| 1668 | .ksize = 16, |
| 1669 | }, { |
| 1670 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1671 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1672 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1673 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 1674 | "\x10\x11\x12\x13", |
| 1675 | .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15" |
| 1676 | "\xb8\x98\x5c\x63\x05\x5e\xd3\x08", |
| 1677 | .tap = { 10, 10 }, |
| 1678 | .psize = 20, |
| 1679 | .np = 2, |
| 1680 | .ksize = 16, |
| 1681 | }, { |
| 1682 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1683 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1684 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1685 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 1686 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 1687 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 1688 | .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3" |
| 1689 | "\x68\x07\x73\x4b\xd5\x28\x3f\xd4", |
| 1690 | .psize = 32, |
| 1691 | .ksize = 16, |
| 1692 | }, { |
| 1693 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1694 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1695 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1696 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 1697 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 1698 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 1699 | "\x20\x21", |
| 1700 | .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3" |
| 1701 | "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8", |
| 1702 | .tap = { 17, 17 }, |
| 1703 | .psize = 34, |
| 1704 | .np = 2, |
| 1705 | .ksize = 16, |
| 1706 | } |
| 1707 | }; |
| 1708 | |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 1709 | #define VMAC_AES_TEST_VECTORS 8 |
| 1710 | static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01', |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 1711 | '\x02', '\x03', '\x02', '\x02', |
| 1712 | '\x02', '\x04', '\x01', '\x07', |
| 1713 | '\x04', '\x01', '\x04', '\x03',}; |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 1714 | static char vmac_string2[128] = {'a', 'b', 'c',}; |
| 1715 | static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c', |
| 1716 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 1717 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 1718 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 1719 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 1720 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 1721 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 1722 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 1723 | }; |
| 1724 | |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 1725 | static struct hash_testvec aes_vmac128_tv_template[] = { |
| 1726 | { |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 1727 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1728 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1729 | .plaintext = NULL, |
| 1730 | .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54", |
| 1731 | .psize = 0, |
| 1732 | .ksize = 16, |
| 1733 | }, { |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 1734 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1735 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 1736 | .plaintext = vmac_string1, |
| 1737 | .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1", |
| 1738 | .psize = 128, |
| 1739 | .ksize = 16, |
| 1740 | }, { |
| 1741 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1742 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1743 | .plaintext = vmac_string2, |
| 1744 | .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d", |
| 1745 | .psize = 128, |
| 1746 | .ksize = 16, |
| 1747 | }, { |
| 1748 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 1749 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 1750 | .plaintext = vmac_string3, |
| 1751 | .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19", |
| 1752 | .psize = 128, |
| 1753 | .ksize = 16, |
| 1754 | }, { |
| 1755 | .key = "abcdefghijklmnop", |
| 1756 | .plaintext = NULL, |
| 1757 | .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84", |
| 1758 | .psize = 0, |
| 1759 | .ksize = 16, |
| 1760 | }, { |
| 1761 | .key = "abcdefghijklmnop", |
| 1762 | .plaintext = vmac_string1, |
| 1763 | .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2", |
| 1764 | .psize = 128, |
| 1765 | .ksize = 16, |
| 1766 | }, { |
| 1767 | .key = "abcdefghijklmnop", |
| 1768 | .plaintext = vmac_string2, |
| 1769 | .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf", |
| 1770 | .psize = 128, |
| 1771 | .ksize = 16, |
| 1772 | }, { |
| 1773 | .key = "abcdefghijklmnop", |
| 1774 | .plaintext = vmac_string3, |
| 1775 | .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4", |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 1776 | .psize = 128, |
| 1777 | .ksize = 16, |
| 1778 | }, |
| 1779 | }; |
| 1780 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1781 | /* |
| 1782 | * SHA384 HMAC test vectors from RFC4231 |
| 1783 | */ |
| 1784 | |
| 1785 | #define HMAC_SHA384_TEST_VECTORS 4 |
| 1786 | |
| 1787 | static struct hash_testvec hmac_sha384_tv_template[] = { |
| 1788 | { |
| 1789 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1790 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1791 | "\x0b\x0b\x0b\x0b", |
| 1792 | .ksize = 20, |
| 1793 | .plaintext = "Hi There", |
| 1794 | .psize = 8, |
| 1795 | .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62" |
| 1796 | "\x6b\x08\x25\xf4\xab\x46\x90\x7f" |
| 1797 | "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6" |
| 1798 | "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c" |
| 1799 | "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f" |
| 1800 | "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6", |
| 1801 | }, { |
| 1802 | .key = "Jefe", |
| 1803 | .ksize = 4, |
| 1804 | .plaintext = "what do ya want for nothing?", |
| 1805 | .psize = 28, |
| 1806 | .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31" |
| 1807 | "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b" |
| 1808 | "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47" |
| 1809 | "\xe4\x2e\xc3\x73\x63\x22\x44\x5e" |
| 1810 | "\x8e\x22\x40\xca\x5e\x69\xe2\xc7" |
| 1811 | "\x8b\x32\x39\xec\xfa\xb2\x16\x49", |
| 1812 | .np = 4, |
| 1813 | .tap = { 7, 7, 7, 7 } |
| 1814 | }, { |
| 1815 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1816 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1817 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1818 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1819 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1820 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1821 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1822 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1823 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1824 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1825 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1826 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1827 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1828 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1829 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1830 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1831 | "\xaa\xaa\xaa", |
| 1832 | .ksize = 131, |
| 1833 | .plaintext = "Test Using Larger Than Block-Siz" |
| 1834 | "e Key - Hash Key First", |
| 1835 | .psize = 54, |
| 1836 | .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90" |
| 1837 | "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4" |
| 1838 | "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f" |
| 1839 | "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6" |
| 1840 | "\x0c\x2e\xf6\xab\x40\x30\xfe\x82" |
| 1841 | "\x96\x24\x8d\xf1\x63\xf4\x49\x52", |
| 1842 | }, { |
| 1843 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1844 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1845 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1846 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1847 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1848 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1849 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1850 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1851 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1852 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1853 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1854 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1855 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1856 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1857 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1858 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1859 | "\xaa\xaa\xaa", |
| 1860 | .ksize = 131, |
| 1861 | .plaintext = "This is a test u" |
| 1862 | "sing a larger th" |
| 1863 | "an block-size ke" |
| 1864 | "y and a larger t" |
| 1865 | "han block-size d" |
| 1866 | "ata. The key nee" |
| 1867 | "ds to be hashed " |
| 1868 | "before being use" |
| 1869 | "d by the HMAC al" |
| 1870 | "gorithm.", |
| 1871 | .psize = 152, |
| 1872 | .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d" |
| 1873 | "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c" |
| 1874 | "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a" |
| 1875 | "\xdc\xce\xbb\x82\x46\x1e\x99\xc5" |
| 1876 | "\xa6\x78\xcc\x31\xe7\x99\x17\x6d" |
| 1877 | "\x38\x60\xe6\x11\x0c\x46\x52\x3e", |
| 1878 | }, |
| 1879 | }; |
| 1880 | |
| 1881 | /* |
| 1882 | * SHA512 HMAC test vectors from RFC4231 |
| 1883 | */ |
| 1884 | |
| 1885 | #define HMAC_SHA512_TEST_VECTORS 4 |
| 1886 | |
| 1887 | static struct hash_testvec hmac_sha512_tv_template[] = { |
| 1888 | { |
| 1889 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1890 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 1891 | "\x0b\x0b\x0b\x0b", |
| 1892 | .ksize = 20, |
| 1893 | .plaintext = "Hi There", |
| 1894 | .psize = 8, |
| 1895 | .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d" |
| 1896 | "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0" |
| 1897 | "\x23\x79\xf4\xe2\xce\x4e\xc2\x78" |
| 1898 | "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde" |
| 1899 | "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02" |
| 1900 | "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4" |
| 1901 | "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70" |
| 1902 | "\x2e\x69\x6c\x20\x3a\x12\x68\x54", |
| 1903 | }, { |
| 1904 | .key = "Jefe", |
| 1905 | .ksize = 4, |
| 1906 | .plaintext = "what do ya want for nothing?", |
| 1907 | .psize = 28, |
| 1908 | .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2" |
| 1909 | "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3" |
| 1910 | "\x87\xbd\x64\x22\x2e\x83\x1f\xd6" |
| 1911 | "\x10\x27\x0c\xd7\xea\x25\x05\x54" |
| 1912 | "\x97\x58\xbf\x75\xc0\x5a\x99\x4a" |
| 1913 | "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd" |
| 1914 | "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b" |
| 1915 | "\x63\x6e\x07\x0a\x38\xbc\xe7\x37", |
| 1916 | .np = 4, |
| 1917 | .tap = { 7, 7, 7, 7 } |
| 1918 | }, { |
| 1919 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1920 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1921 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1922 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1923 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1924 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1925 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1926 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1927 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1928 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1929 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1930 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1931 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1932 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1933 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1934 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1935 | "\xaa\xaa\xaa", |
| 1936 | .ksize = 131, |
| 1937 | .plaintext = "Test Using Large" |
| 1938 | "r Than Block-Siz" |
| 1939 | "e Key - Hash Key" |
| 1940 | " First", |
| 1941 | .psize = 54, |
| 1942 | .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb" |
| 1943 | "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4" |
| 1944 | "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1" |
| 1945 | "\x12\x1b\x01\x37\x83\xf8\xf3\x52" |
| 1946 | "\x6b\x56\xd0\x37\xe0\x5f\x25\x98" |
| 1947 | "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52" |
| 1948 | "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec" |
| 1949 | "\x8b\x91\x5a\x98\x5d\x78\x65\x98", |
| 1950 | }, { |
| 1951 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1952 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1953 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1954 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1955 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1956 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1957 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1958 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1959 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1960 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1961 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1962 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1963 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1964 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1965 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1966 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 1967 | "\xaa\xaa\xaa", |
| 1968 | .ksize = 131, |
| 1969 | .plaintext = |
| 1970 | "This is a test u" |
| 1971 | "sing a larger th" |
| 1972 | "an block-size ke" |
| 1973 | "y and a larger t" |
| 1974 | "han block-size d" |
| 1975 | "ata. The key nee" |
| 1976 | "ds to be hashed " |
| 1977 | "before being use" |
| 1978 | "d by the HMAC al" |
| 1979 | "gorithm.", |
| 1980 | .psize = 152, |
| 1981 | .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba" |
| 1982 | "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd" |
| 1983 | "\xde\xbd\x71\xf8\x86\x72\x89\x86" |
| 1984 | "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44" |
| 1985 | "\xb6\x02\x2c\xac\x3c\x49\x82\xb1" |
| 1986 | "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15" |
| 1987 | "\x13\x46\x76\xfb\x6d\xe0\x44\x60" |
| 1988 | "\x65\xc9\x74\x40\xfa\x8c\x6a\x58", |
| 1989 | }, |
| 1990 | }; |
| 1991 | |
| 1992 | /* |
| 1993 | * DES test vectors. |
| 1994 | */ |
| 1995 | #define DES_ENC_TEST_VECTORS 10 |
| 1996 | #define DES_DEC_TEST_VECTORS 4 |
| 1997 | #define DES_CBC_ENC_TEST_VECTORS 5 |
| 1998 | #define DES_CBC_DEC_TEST_VECTORS 4 |
| 1999 | #define DES3_EDE_ENC_TEST_VECTORS 3 |
| 2000 | #define DES3_EDE_DEC_TEST_VECTORS 3 |
| 2001 | #define DES3_EDE_CBC_ENC_TEST_VECTORS 1 |
| 2002 | #define DES3_EDE_CBC_DEC_TEST_VECTORS 1 |
| 2003 | |
| 2004 | static struct cipher_testvec des_enc_tv_template[] = { |
| 2005 | { /* From Applied Cryptography */ |
| 2006 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2007 | .klen = 8, |
| 2008 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 2009 | .ilen = 8, |
| 2010 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 2011 | .rlen = 8, |
| 2012 | }, { /* Same key, different plaintext block */ |
| 2013 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2014 | .klen = 8, |
| 2015 | .input = "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 2016 | .ilen = 8, |
| 2017 | .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 2018 | .rlen = 8, |
| 2019 | }, { /* Sbox test from NBS */ |
| 2020 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 2021 | .klen = 8, |
| 2022 | .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 2023 | .ilen = 8, |
| 2024 | .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 2025 | .rlen = 8, |
| 2026 | }, { /* Three blocks */ |
| 2027 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2028 | .klen = 8, |
| 2029 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2030 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 2031 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 2032 | .ilen = 24, |
| 2033 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2034 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 2035 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 2036 | .rlen = 24, |
| 2037 | }, { /* Weak key */ |
| 2038 | .fail = 1, |
| 2039 | .wk = 1, |
| 2040 | .key = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 2041 | .klen = 8, |
| 2042 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 2043 | .ilen = 8, |
| 2044 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 2045 | .rlen = 8, |
| 2046 | }, { /* Two blocks -- for testing encryption across pages */ |
| 2047 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2048 | .klen = 8, |
| 2049 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2050 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 2051 | .ilen = 16, |
| 2052 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2053 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 2054 | .rlen = 16, |
| 2055 | .np = 2, |
| 2056 | .tap = { 8, 8 } |
| 2057 | }, { /* Four blocks -- for testing encryption with chunking */ |
| 2058 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2059 | .klen = 8, |
| 2060 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2061 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 2062 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef" |
| 2063 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 2064 | .ilen = 32, |
| 2065 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2066 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 2067 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90" |
| 2068 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 2069 | .rlen = 32, |
| 2070 | .np = 3, |
| 2071 | .tap = { 14, 10, 8 } |
| 2072 | }, { |
| 2073 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2074 | .klen = 8, |
| 2075 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2076 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 2077 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 2078 | .ilen = 24, |
| 2079 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2080 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 2081 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 2082 | .rlen = 24, |
| 2083 | .np = 4, |
| 2084 | .tap = { 2, 1, 3, 18 } |
| 2085 | }, { |
| 2086 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2087 | .klen = 8, |
| 2088 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2089 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 2090 | .ilen = 16, |
| 2091 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2092 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 2093 | .rlen = 16, |
| 2094 | .np = 5, |
| 2095 | .tap = { 2, 2, 2, 2, 8 } |
| 2096 | }, { |
| 2097 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2098 | .klen = 8, |
| 2099 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 2100 | .ilen = 8, |
| 2101 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 2102 | .rlen = 8, |
| 2103 | .np = 8, |
| 2104 | .tap = { 1, 1, 1, 1, 1, 1, 1, 1 } |
| 2105 | }, |
| 2106 | }; |
| 2107 | |
| 2108 | static struct cipher_testvec des_dec_tv_template[] = { |
| 2109 | { /* From Applied Cryptography */ |
| 2110 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2111 | .klen = 8, |
| 2112 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 2113 | .ilen = 8, |
| 2114 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 2115 | .rlen = 8, |
| 2116 | }, { /* Sbox test from NBS */ |
| 2117 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 2118 | .klen = 8, |
| 2119 | .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 2120 | .ilen = 8, |
| 2121 | .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 2122 | .rlen = 8, |
| 2123 | }, { /* Two blocks, for chunking test */ |
| 2124 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2125 | .klen = 8, |
| 2126 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2127 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 2128 | .ilen = 16, |
| 2129 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2130 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 2131 | .rlen = 16, |
| 2132 | .np = 2, |
| 2133 | .tap = { 8, 8 } |
| 2134 | }, { |
| 2135 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2136 | .klen = 8, |
| 2137 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 2138 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 2139 | .ilen = 16, |
| 2140 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 2141 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 2142 | .rlen = 16, |
| 2143 | .np = 3, |
| 2144 | .tap = { 3, 12, 1 } |
| 2145 | }, |
| 2146 | }; |
| 2147 | |
| 2148 | static struct cipher_testvec des_cbc_enc_tv_template[] = { |
| 2149 | { /* From OpenSSL */ |
| 2150 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2151 | .klen = 8, |
| 2152 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2153 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 2154 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 2155 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 2156 | .ilen = 24, |
| 2157 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 2158 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 2159 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 2160 | .rlen = 24, |
| 2161 | }, { /* FIPS Pub 81 */ |
| 2162 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2163 | .klen = 8, |
| 2164 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 2165 | .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 2166 | .ilen = 8, |
| 2167 | .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 2168 | .rlen = 8, |
| 2169 | }, { |
| 2170 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2171 | .klen = 8, |
| 2172 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 2173 | .input = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 2174 | .ilen = 8, |
| 2175 | .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 2176 | .rlen = 8, |
| 2177 | }, { |
| 2178 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2179 | .klen = 8, |
| 2180 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 2181 | .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 2182 | .ilen = 8, |
| 2183 | .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 2184 | .rlen = 8, |
| 2185 | }, { /* Copy of openssl vector for chunk testing */ |
| 2186 | /* From OpenSSL */ |
| 2187 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2188 | .klen = 8, |
| 2189 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2190 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 2191 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 2192 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 2193 | .ilen = 24, |
| 2194 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 2195 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 2196 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 2197 | .rlen = 24, |
| 2198 | .np = 2, |
| 2199 | .tap = { 13, 11 } |
| 2200 | }, |
| 2201 | }; |
| 2202 | |
| 2203 | static struct cipher_testvec des_cbc_dec_tv_template[] = { |
| 2204 | { /* FIPS Pub 81 */ |
| 2205 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2206 | .klen = 8, |
| 2207 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 2208 | .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 2209 | .ilen = 8, |
| 2210 | .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 2211 | .rlen = 8, |
| 2212 | }, { |
| 2213 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2214 | .klen = 8, |
| 2215 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 2216 | .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 2217 | .ilen = 8, |
| 2218 | .result = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 2219 | .rlen = 8, |
| 2220 | }, { |
| 2221 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2222 | .klen = 8, |
| 2223 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 2224 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 2225 | .ilen = 8, |
| 2226 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 2227 | .rlen = 8, |
| 2228 | }, { /* Copy of above, for chunk testing */ |
| 2229 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2230 | .klen = 8, |
| 2231 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 2232 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 2233 | .ilen = 8, |
| 2234 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 2235 | .rlen = 8, |
| 2236 | .np = 2, |
| 2237 | .tap = { 4, 4 } |
| 2238 | }, |
| 2239 | }; |
| 2240 | |
| 2241 | static struct cipher_testvec des3_ede_enc_tv_template[] = { |
| 2242 | { /* These are from openssl */ |
| 2243 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2244 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 2245 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2246 | .klen = 24, |
| 2247 | .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 2248 | .ilen = 8, |
| 2249 | .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 2250 | .rlen = 8, |
| 2251 | }, { |
| 2252 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 2253 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 2254 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 2255 | .klen = 24, |
| 2256 | .input = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 2257 | .ilen = 8, |
| 2258 | .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 2259 | .rlen = 8, |
| 2260 | }, { |
| 2261 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 2262 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 2263 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 2264 | .klen = 24, |
| 2265 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 2266 | .ilen = 8, |
| 2267 | .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 2268 | .rlen = 8, |
| 2269 | }, |
| 2270 | }; |
| 2271 | |
| 2272 | static struct cipher_testvec des3_ede_dec_tv_template[] = { |
| 2273 | { /* These are from openssl */ |
| 2274 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2275 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 2276 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2277 | .klen = 24, |
| 2278 | .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 2279 | .ilen = 8, |
| 2280 | .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 2281 | .rlen = 8, |
| 2282 | }, { |
| 2283 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 2284 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 2285 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 2286 | .klen = 24, |
| 2287 | .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 2288 | .ilen = 8, |
| 2289 | .result = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 2290 | .rlen = 8, |
| 2291 | }, { |
| 2292 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 2293 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 2294 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 2295 | .klen = 24, |
| 2296 | .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 2297 | .ilen = 8, |
| 2298 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 2299 | .rlen = 8, |
| 2300 | }, |
| 2301 | }; |
| 2302 | |
| 2303 | static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = { |
| 2304 | { /* Generated from openssl */ |
| 2305 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 2306 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 2307 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 2308 | .klen = 24, |
| 2309 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 2310 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 2311 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 2312 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 2313 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 2314 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 2315 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 2316 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 2317 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 2318 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 2319 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 2320 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 2321 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 2322 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 2323 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 2324 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 2325 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 2326 | .ilen = 128, |
| 2327 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 2328 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 2329 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 2330 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 2331 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 2332 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 2333 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 2334 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 2335 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 2336 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 2337 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 2338 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 2339 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 2340 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 2341 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 2342 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 2343 | .rlen = 128, |
| 2344 | }, |
| 2345 | }; |
| 2346 | |
| 2347 | static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = { |
| 2348 | { /* Generated from openssl */ |
| 2349 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 2350 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 2351 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 2352 | .klen = 24, |
| 2353 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 2354 | .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 2355 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 2356 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 2357 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 2358 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 2359 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 2360 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 2361 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 2362 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 2363 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 2364 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 2365 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 2366 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 2367 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 2368 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 2369 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 2370 | .ilen = 128, |
| 2371 | .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 2372 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 2373 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 2374 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 2375 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 2376 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 2377 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 2378 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 2379 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 2380 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 2381 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 2382 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 2383 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 2384 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 2385 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 2386 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 2387 | .rlen = 128, |
| 2388 | }, |
| 2389 | }; |
| 2390 | |
| 2391 | /* |
| 2392 | * Blowfish test vectors. |
| 2393 | */ |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 2394 | #define BF_ENC_TEST_VECTORS 7 |
| 2395 | #define BF_DEC_TEST_VECTORS 7 |
| 2396 | #define BF_CBC_ENC_TEST_VECTORS 2 |
| 2397 | #define BF_CBC_DEC_TEST_VECTORS 2 |
| 2398 | #define BF_CTR_ENC_TEST_VECTORS 2 |
| 2399 | #define BF_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2400 | |
| 2401 | static struct cipher_testvec bf_enc_tv_template[] = { |
| 2402 | { /* DES test vectors from OpenSSL */ |
| 2403 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 2404 | .klen = 8, |
| 2405 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 2406 | .ilen = 8, |
| 2407 | .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 2408 | .rlen = 8, |
| 2409 | }, { |
| 2410 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 2411 | .klen = 8, |
| 2412 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2413 | .ilen = 8, |
| 2414 | .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 2415 | .rlen = 8, |
| 2416 | }, { |
| 2417 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 2418 | .klen = 8, |
| 2419 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2420 | .ilen = 8, |
| 2421 | .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 2422 | .rlen = 8, |
| 2423 | }, { /* Vary the keylength... */ |
| 2424 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 2425 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 2426 | .klen = 16, |
| 2427 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2428 | .ilen = 8, |
| 2429 | .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 2430 | .rlen = 8, |
| 2431 | }, { |
| 2432 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 2433 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 2434 | "\x00\x11\x22\x33\x44", |
| 2435 | .klen = 21, |
| 2436 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2437 | .ilen = 8, |
| 2438 | .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 2439 | .rlen = 8, |
| 2440 | }, { /* Generated with bf488 */ |
| 2441 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 2442 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 2443 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 2444 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 2445 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 2446 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 2447 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 2448 | .klen = 56, |
| 2449 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2450 | .ilen = 8, |
| 2451 | .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 2452 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 2453 | }, { /* Generated with Crypto++ */ |
| 2454 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2455 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2456 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2457 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2458 | .klen = 32, |
| 2459 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2460 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2461 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2462 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2463 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9", |
| 2464 | .ilen = 40, |
| 2465 | .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 2466 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 2467 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 2468 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
| 2469 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B", |
| 2470 | .rlen = 40, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2471 | }, |
| 2472 | }; |
| 2473 | |
| 2474 | static struct cipher_testvec bf_dec_tv_template[] = { |
| 2475 | { /* DES test vectors from OpenSSL */ |
| 2476 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 2477 | .klen = 8, |
| 2478 | .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 2479 | .ilen = 8, |
| 2480 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 2481 | .rlen = 8, |
| 2482 | }, { |
| 2483 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 2484 | .klen = 8, |
| 2485 | .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 2486 | .ilen = 8, |
| 2487 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 2488 | .rlen = 8, |
| 2489 | }, { |
| 2490 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 2491 | .klen = 8, |
| 2492 | .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 2493 | .ilen = 8, |
| 2494 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2495 | .rlen = 8, |
| 2496 | }, { /* Vary the keylength... */ |
| 2497 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 2498 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 2499 | .klen = 16, |
| 2500 | .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 2501 | .ilen = 8, |
| 2502 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2503 | .rlen = 8, |
| 2504 | }, { |
| 2505 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 2506 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 2507 | "\x00\x11\x22\x33\x44", |
| 2508 | .klen = 21, |
| 2509 | .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 2510 | .ilen = 8, |
| 2511 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2512 | .rlen = 8, |
| 2513 | }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */ |
| 2514 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 2515 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 2516 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 2517 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 2518 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 2519 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 2520 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 2521 | .klen = 56, |
| 2522 | .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 2523 | .ilen = 8, |
| 2524 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2525 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 2526 | }, { /* Generated with Crypto++ */ |
| 2527 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2528 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2529 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2530 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2531 | .klen = 32, |
| 2532 | .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 2533 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 2534 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 2535 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
| 2536 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B", |
| 2537 | .ilen = 40, |
| 2538 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2539 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2540 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2541 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2542 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9", |
| 2543 | .rlen = 40, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2544 | }, |
| 2545 | }; |
| 2546 | |
| 2547 | static struct cipher_testvec bf_cbc_enc_tv_template[] = { |
| 2548 | { /* From OpenSSL */ |
| 2549 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2550 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 2551 | .klen = 16, |
| 2552 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2553 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 2554 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 2555 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 2556 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 2557 | .ilen = 32, |
| 2558 | .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 2559 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 2560 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 2561 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 2562 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 2563 | }, { /* Generated with Crypto++ */ |
| 2564 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2565 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2566 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2567 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2568 | .klen = 32, |
| 2569 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 2570 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2571 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2572 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2573 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2574 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9", |
| 2575 | .ilen = 40, |
| 2576 | .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 2577 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 2578 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 2579 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
| 2580 | "\x01\x9C\x93\x63\x51\x60\x82\xD2", |
| 2581 | .rlen = 40, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2582 | }, |
| 2583 | }; |
| 2584 | |
| 2585 | static struct cipher_testvec bf_cbc_dec_tv_template[] = { |
| 2586 | { /* From OpenSSL */ |
| 2587 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2588 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 2589 | .klen = 16, |
| 2590 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 2591 | .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 2592 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 2593 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 2594 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 2595 | .ilen = 32, |
| 2596 | .result = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 2597 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 2598 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 2599 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 2600 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 2601 | }, { /* Generated with Crypto++ */ |
| 2602 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2603 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2604 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2605 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2606 | .klen = 32, |
| 2607 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 2608 | .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 2609 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 2610 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 2611 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
| 2612 | "\x01\x9C\x93\x63\x51\x60\x82\xD2", |
| 2613 | .ilen = 40, |
| 2614 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2615 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2616 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2617 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2618 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9", |
| 2619 | .rlen = 40, |
| 2620 | }, |
| 2621 | }; |
| 2622 | |
| 2623 | static struct cipher_testvec bf_ctr_enc_tv_template[] = { |
| 2624 | { /* Generated with Crypto++ */ |
| 2625 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2626 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2627 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2628 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2629 | .klen = 32, |
| 2630 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 2631 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2632 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2633 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2634 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2635 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9", |
| 2636 | .ilen = 40, |
| 2637 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 2638 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 2639 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 2640 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 2641 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC", |
| 2642 | .rlen = 40, |
| 2643 | }, { /* Generated with Crypto++ */ |
| 2644 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2645 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2646 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2647 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2648 | .klen = 32, |
| 2649 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 2650 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2651 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2652 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2653 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2654 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 2655 | "\x6D\x04\x9B", |
| 2656 | .ilen = 43, |
| 2657 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 2658 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 2659 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 2660 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 2661 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 2662 | "\x3D\xA7\xE9", |
| 2663 | .rlen = 43, |
| 2664 | }, |
| 2665 | }; |
| 2666 | |
| 2667 | static struct cipher_testvec bf_ctr_dec_tv_template[] = { |
| 2668 | { /* Generated with Crypto++ */ |
| 2669 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2670 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2671 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2672 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2673 | .klen = 32, |
| 2674 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 2675 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 2676 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 2677 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 2678 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 2679 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC", |
| 2680 | .ilen = 40, |
| 2681 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2682 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2683 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2684 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2685 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9", |
| 2686 | .rlen = 40, |
| 2687 | }, { /* Generated with Crypto++ */ |
| 2688 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 2689 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 2690 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 2691 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 2692 | .klen = 32, |
| 2693 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 2694 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 2695 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 2696 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 2697 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 2698 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 2699 | "\x3D\xA7\xE9", |
| 2700 | .ilen = 43, |
| 2701 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2702 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2703 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2704 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2705 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 2706 | "\x6D\x04\x9B", |
| 2707 | .rlen = 43, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2708 | }, |
| 2709 | }; |
| 2710 | |
| 2711 | /* |
| 2712 | * Twofish test vectors. |
| 2713 | */ |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 2714 | #define TF_ENC_TEST_VECTORS 4 |
| 2715 | #define TF_DEC_TEST_VECTORS 4 |
| 2716 | #define TF_CBC_ENC_TEST_VECTORS 5 |
| 2717 | #define TF_CBC_DEC_TEST_VECTORS 5 |
| 2718 | #define TF_CTR_ENC_TEST_VECTORS 2 |
| 2719 | #define TF_CTR_DEC_TEST_VECTORS 2 |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 2720 | #define TF_LRW_ENC_TEST_VECTORS 8 |
| 2721 | #define TF_LRW_DEC_TEST_VECTORS 8 |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 2722 | #define TF_XTS_ENC_TEST_VECTORS 5 |
| 2723 | #define TF_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2724 | |
| 2725 | static struct cipher_testvec tf_enc_tv_template[] = { |
| 2726 | { |
| 2727 | .key = zeroed_string, |
| 2728 | .klen = 16, |
| 2729 | .input = zeroed_string, |
| 2730 | .ilen = 16, |
| 2731 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 2732 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 2733 | .rlen = 16, |
| 2734 | }, { |
| 2735 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2736 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 2737 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 2738 | .klen = 24, |
| 2739 | .input = zeroed_string, |
| 2740 | .ilen = 16, |
| 2741 | .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 2742 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 2743 | .rlen = 16, |
| 2744 | }, { |
| 2745 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2746 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 2747 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 2748 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 2749 | .klen = 32, |
| 2750 | .input = zeroed_string, |
| 2751 | .ilen = 16, |
| 2752 | .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 2753 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 2754 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 2755 | }, { /* Generated with Crypto++ */ |
| 2756 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 2757 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 2758 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 2759 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 2760 | .klen = 32, |
| 2761 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2762 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2763 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2764 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2765 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 2766 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 2767 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 2768 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 2769 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 2770 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 2771 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 2772 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 2773 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 2774 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 2775 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 2776 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 2777 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 2778 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 2779 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 2780 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 2781 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 2782 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 2783 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 2784 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 2785 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 2786 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 2787 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 2788 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 2789 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 2790 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 2791 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 2792 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 2793 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 2794 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 2795 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 2796 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 2797 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 2798 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 2799 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 2800 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 2801 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 2802 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 2803 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 2804 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 2805 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 2806 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 2807 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 2808 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 2809 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 2810 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 2811 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 2812 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 2813 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 2814 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 2815 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 2816 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 2817 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 2818 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 2819 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 2820 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 2821 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 2822 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 2823 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 2824 | .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 2825 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 2826 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 2827 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 2828 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 2829 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 2830 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 2831 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 2832 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 2833 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 2834 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 2835 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 2836 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 2837 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 2838 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 2839 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 2840 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 2841 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 2842 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 2843 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 2844 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 2845 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 2846 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 2847 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 2848 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 2849 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 2850 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 2851 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 2852 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 2853 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 2854 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 2855 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 2856 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 2857 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 2858 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 2859 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 2860 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 2861 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 2862 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 2863 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 2864 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 2865 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 2866 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 2867 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 2868 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 2869 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 2870 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 2871 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 2872 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 2873 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 2874 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 2875 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 2876 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 2877 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 2878 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 2879 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 2880 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 2881 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 2882 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 2883 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 2884 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 2885 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 2886 | .rlen = 496, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2887 | }, |
| 2888 | }; |
| 2889 | |
| 2890 | static struct cipher_testvec tf_dec_tv_template[] = { |
| 2891 | { |
| 2892 | .key = zeroed_string, |
| 2893 | .klen = 16, |
| 2894 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 2895 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 2896 | .ilen = 16, |
| 2897 | .result = zeroed_string, |
| 2898 | .rlen = 16, |
| 2899 | }, { |
| 2900 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2901 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 2902 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 2903 | .klen = 24, |
| 2904 | .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 2905 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 2906 | .ilen = 16, |
| 2907 | .result = zeroed_string, |
| 2908 | .rlen = 16, |
| 2909 | }, { |
| 2910 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 2911 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 2912 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 2913 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 2914 | .klen = 32, |
| 2915 | .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 2916 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 2917 | .ilen = 16, |
| 2918 | .result = zeroed_string, |
| 2919 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 2920 | }, { /* Generated with Crypto++ */ |
| 2921 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 2922 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 2923 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 2924 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 2925 | .klen = 32, |
| 2926 | .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 2927 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 2928 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 2929 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 2930 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 2931 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 2932 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 2933 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 2934 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 2935 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 2936 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 2937 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 2938 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 2939 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 2940 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 2941 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 2942 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 2943 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 2944 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 2945 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 2946 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 2947 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 2948 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 2949 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 2950 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 2951 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 2952 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 2953 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 2954 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 2955 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 2956 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 2957 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 2958 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 2959 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 2960 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 2961 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 2962 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 2963 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 2964 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 2965 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 2966 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 2967 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 2968 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 2969 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 2970 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 2971 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 2972 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 2973 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 2974 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 2975 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 2976 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 2977 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 2978 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 2979 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 2980 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 2981 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 2982 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 2983 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 2984 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 2985 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 2986 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 2987 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 2988 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 2989 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 2990 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 2991 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 2992 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 2993 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 2994 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 2995 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 2996 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 2997 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 2998 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 2999 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 3000 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 3001 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 3002 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 3003 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 3004 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 3005 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 3006 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 3007 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 3008 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 3009 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 3010 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 3011 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 3012 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 3013 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 3014 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 3015 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 3016 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 3017 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 3018 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 3019 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 3020 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 3021 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 3022 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 3023 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 3024 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 3025 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 3026 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 3027 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 3028 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 3029 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 3030 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 3031 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 3032 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 3033 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 3034 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 3035 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 3036 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 3037 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 3038 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 3039 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 3040 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 3041 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 3042 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 3043 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 3044 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 3045 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 3046 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 3047 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 3048 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 3049 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 3050 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 3051 | .rlen = 496, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3052 | }, |
| 3053 | }; |
| 3054 | |
| 3055 | static struct cipher_testvec tf_cbc_enc_tv_template[] = { |
| 3056 | { /* Generated with Nettle */ |
| 3057 | .key = zeroed_string, |
| 3058 | .klen = 16, |
| 3059 | .iv = zeroed_string, |
| 3060 | .input = zeroed_string, |
| 3061 | .ilen = 16, |
| 3062 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 3063 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 3064 | .rlen = 16, |
| 3065 | }, { |
| 3066 | .key = zeroed_string, |
| 3067 | .klen = 16, |
| 3068 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 3069 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 3070 | .input = zeroed_string, |
| 3071 | .ilen = 16, |
| 3072 | .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 3073 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 3074 | .rlen = 16, |
| 3075 | }, { |
| 3076 | .key = zeroed_string, |
| 3077 | .klen = 16, |
| 3078 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 3079 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 3080 | .input = zeroed_string, |
| 3081 | .ilen = 16, |
| 3082 | .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 3083 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 3084 | .rlen = 16, |
| 3085 | }, { |
| 3086 | .key = zeroed_string, |
| 3087 | .klen = 16, |
| 3088 | .iv = zeroed_string, |
| 3089 | .input = zeroed_string, |
| 3090 | .ilen = 48, |
| 3091 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 3092 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 3093 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 3094 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 3095 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 3096 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 3097 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3098 | }, { /* Generated with Crypto++ */ |
| 3099 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 3100 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 3101 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 3102 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 3103 | .klen = 32, |
| 3104 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 3105 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 3106 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 3107 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 3108 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 3109 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 3110 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 3111 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 3112 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3113 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 3114 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 3115 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 3116 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 3117 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 3118 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 3119 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 3120 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 3121 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 3122 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 3123 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 3124 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 3125 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 3126 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 3127 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 3128 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 3129 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 3130 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 3131 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 3132 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 3133 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 3134 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 3135 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 3136 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 3137 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 3138 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 3139 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 3140 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 3141 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 3142 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 3143 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 3144 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 3145 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 3146 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 3147 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 3148 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 3149 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 3150 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 3151 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 3152 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 3153 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 3154 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 3155 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 3156 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 3157 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 3158 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 3159 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 3160 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 3161 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 3162 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 3163 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 3164 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 3165 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 3166 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 3167 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 3168 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3169 | .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 3170 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 3171 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 3172 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 3173 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 3174 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 3175 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3176 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 3177 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 3178 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 3179 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 3180 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 3181 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 3182 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 3183 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 3184 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 3185 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 3186 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 3187 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 3188 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 3189 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 3190 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 3191 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 3192 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 3193 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 3194 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 3195 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 3196 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 3197 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 3198 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 3199 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 3200 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 3201 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 3202 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 3203 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 3204 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 3205 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 3206 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 3207 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 3208 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 3209 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 3210 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 3211 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 3212 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 3213 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 3214 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 3215 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 3216 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 3217 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 3218 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 3219 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 3220 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 3221 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 3222 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 3223 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 3224 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 3225 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 3226 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 3227 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 3228 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 3229 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 3230 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 3231 | .rlen = 496, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3232 | }, |
| 3233 | }; |
| 3234 | |
| 3235 | static struct cipher_testvec tf_cbc_dec_tv_template[] = { |
| 3236 | { /* Reverse of the first four above */ |
| 3237 | .key = zeroed_string, |
| 3238 | .klen = 16, |
| 3239 | .iv = zeroed_string, |
| 3240 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 3241 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 3242 | .ilen = 16, |
| 3243 | .result = zeroed_string, |
| 3244 | .rlen = 16, |
| 3245 | }, { |
| 3246 | .key = zeroed_string, |
| 3247 | .klen = 16, |
| 3248 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 3249 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 3250 | .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 3251 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 3252 | .ilen = 16, |
| 3253 | .result = zeroed_string, |
| 3254 | .rlen = 16, |
| 3255 | }, { |
| 3256 | .key = zeroed_string, |
| 3257 | .klen = 16, |
| 3258 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 3259 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 3260 | .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 3261 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 3262 | .ilen = 16, |
| 3263 | .result = zeroed_string, |
| 3264 | .rlen = 16, |
| 3265 | }, { |
| 3266 | .key = zeroed_string, |
| 3267 | .klen = 16, |
| 3268 | .iv = zeroed_string, |
| 3269 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 3270 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 3271 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 3272 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 3273 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 3274 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 3275 | .ilen = 48, |
| 3276 | .result = zeroed_string, |
| 3277 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3278 | }, { /* Generated with Crypto++ */ |
| 3279 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 3280 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 3281 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 3282 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 3283 | .klen = 32, |
| 3284 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 3285 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 3286 | .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 3287 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 3288 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 3289 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 3290 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 3291 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 3292 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3293 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 3294 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 3295 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 3296 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 3297 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 3298 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 3299 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 3300 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 3301 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 3302 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 3303 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 3304 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 3305 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 3306 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 3307 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 3308 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 3309 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 3310 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 3311 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 3312 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 3313 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 3314 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 3315 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 3316 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 3317 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 3318 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 3319 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 3320 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 3321 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 3322 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 3323 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 3324 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 3325 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 3326 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 3327 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 3328 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 3329 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 3330 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 3331 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 3332 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 3333 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 3334 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 3335 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 3336 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 3337 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 3338 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 3339 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 3340 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 3341 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 3342 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 3343 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 3344 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 3345 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 3346 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 3347 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 3348 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3349 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 3350 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 3351 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 3352 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 3353 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 3354 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 3355 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3356 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 3357 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 3358 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 3359 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 3360 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 3361 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 3362 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 3363 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 3364 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 3365 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 3366 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 3367 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 3368 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 3369 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 3370 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 3371 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 3372 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 3373 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 3374 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 3375 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 3376 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 3377 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 3378 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 3379 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 3380 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 3381 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 3382 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 3383 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 3384 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 3385 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 3386 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 3387 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 3388 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 3389 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 3390 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 3391 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 3392 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 3393 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 3394 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 3395 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 3396 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 3397 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 3398 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 3399 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 3400 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 3401 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 3402 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 3403 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 3404 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 3405 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 3406 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 3407 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 3408 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 3409 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 3410 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 3411 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3412 | }, |
| 3413 | }; |
| 3414 | |
| 3415 | static struct cipher_testvec tf_ctr_enc_tv_template[] = { |
| 3416 | { /* Generated with Crypto++ */ |
| 3417 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 3418 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 3419 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 3420 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 3421 | .klen = 32, |
| 3422 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 3423 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 3424 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 3425 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 3426 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 3427 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 3428 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 3429 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 3430 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3431 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 3432 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 3433 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 3434 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 3435 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 3436 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 3437 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 3438 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 3439 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 3440 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 3441 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 3442 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 3443 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 3444 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 3445 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 3446 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 3447 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 3448 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 3449 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 3450 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 3451 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 3452 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 3453 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 3454 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 3455 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 3456 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 3457 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 3458 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 3459 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 3460 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 3461 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 3462 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 3463 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 3464 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 3465 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 3466 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 3467 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 3468 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 3469 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 3470 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 3471 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 3472 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 3473 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 3474 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 3475 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 3476 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 3477 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 3478 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 3479 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 3480 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 3481 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 3482 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 3483 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 3484 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 3485 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 3486 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3487 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 3488 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 3489 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 3490 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 3491 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 3492 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 3493 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3494 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 3495 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 3496 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 3497 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 3498 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 3499 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 3500 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 3501 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 3502 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 3503 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 3504 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 3505 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 3506 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 3507 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 3508 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 3509 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 3510 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 3511 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 3512 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 3513 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 3514 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 3515 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 3516 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 3517 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 3518 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 3519 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 3520 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 3521 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 3522 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 3523 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 3524 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 3525 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 3526 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 3527 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 3528 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 3529 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 3530 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 3531 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 3532 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 3533 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 3534 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 3535 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 3536 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 3537 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 3538 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 3539 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 3540 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 3541 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 3542 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 3543 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 3544 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 3545 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 3546 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 3547 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 3548 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 3549 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3550 | }, { /* Generated with Crypto++ */ |
| 3551 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 3552 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 3553 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 3554 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 3555 | .klen = 32, |
| 3556 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 3557 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 3558 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 3559 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 3560 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 3561 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 3562 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 3563 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 3564 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 3565 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3566 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 3567 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 3568 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 3569 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 3570 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 3571 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 3572 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 3573 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 3574 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 3575 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 3576 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 3577 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 3578 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 3579 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 3580 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 3581 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 3582 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 3583 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 3584 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 3585 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 3586 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 3587 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 3588 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 3589 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 3590 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 3591 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 3592 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 3593 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 3594 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 3595 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 3596 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 3597 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 3598 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 3599 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 3600 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 3601 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 3602 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 3603 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 3604 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 3605 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 3606 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 3607 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 3608 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 3609 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 3610 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 3611 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 3612 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 3613 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 3614 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 3615 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 3616 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 3617 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 3618 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 3619 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 3620 | "\x2B\xC2\x59", |
| 3621 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3622 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 3623 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 3624 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 3625 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 3626 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 3627 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 3628 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 3629 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3630 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 3631 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 3632 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 3633 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 3634 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 3635 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 3636 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 3637 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 3638 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 3639 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 3640 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 3641 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 3642 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 3643 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 3644 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 3645 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 3646 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 3647 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 3648 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 3649 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 3650 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 3651 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 3652 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 3653 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 3654 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 3655 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 3656 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 3657 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 3658 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 3659 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 3660 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 3661 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 3662 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 3663 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 3664 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 3665 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 3666 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 3667 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 3668 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 3669 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 3670 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 3671 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 3672 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 3673 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 3674 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 3675 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 3676 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 3677 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 3678 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 3679 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 3680 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 3681 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 3682 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 3683 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 3684 | "\x6C\x82\x9D", |
| 3685 | .rlen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3686 | }, |
| 3687 | }; |
| 3688 | |
| 3689 | static struct cipher_testvec tf_ctr_dec_tv_template[] = { |
| 3690 | { /* Generated with Crypto++ */ |
| 3691 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 3692 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 3693 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 3694 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 3695 | .klen = 32, |
| 3696 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 3697 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 3698 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 3699 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 3700 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 3701 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 3702 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 3703 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 3704 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3705 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 3706 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 3707 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 3708 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 3709 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 3710 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 3711 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 3712 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 3713 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 3714 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 3715 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 3716 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 3717 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 3718 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 3719 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 3720 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 3721 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 3722 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 3723 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 3724 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 3725 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 3726 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 3727 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 3728 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 3729 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 3730 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 3731 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 3732 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 3733 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 3734 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 3735 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 3736 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 3737 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 3738 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 3739 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 3740 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 3741 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 3742 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 3743 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 3744 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 3745 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 3746 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 3747 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 3748 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 3749 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 3750 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 3751 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 3752 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 3753 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 3754 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 3755 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 3756 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 3757 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 3758 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 3759 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 3760 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3761 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 3762 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 3763 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 3764 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 3765 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 3766 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 3767 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3768 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 3769 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 3770 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 3771 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 3772 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 3773 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 3774 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 3775 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 3776 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 3777 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 3778 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 3779 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 3780 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 3781 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 3782 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 3783 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 3784 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 3785 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 3786 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 3787 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 3788 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 3789 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 3790 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 3791 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 3792 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 3793 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 3794 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 3795 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 3796 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 3797 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 3798 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 3799 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 3800 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 3801 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 3802 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 3803 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 3804 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 3805 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 3806 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 3807 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 3808 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 3809 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 3810 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 3811 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 3812 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 3813 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 3814 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 3815 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 3816 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 3817 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 3818 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 3819 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 3820 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 3821 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 3822 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 3823 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3824 | }, { /* Generated with Crypto++ */ |
| 3825 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 3826 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 3827 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 3828 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 3829 | .klen = 32, |
| 3830 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 3831 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 3832 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 3833 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 3834 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 3835 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 3836 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 3837 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 3838 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 3839 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3840 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 3841 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 3842 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 3843 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 3844 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 3845 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 3846 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 3847 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 3848 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 3849 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 3850 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 3851 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 3852 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 3853 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 3854 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 3855 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 3856 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 3857 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 3858 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 3859 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 3860 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 3861 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 3862 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 3863 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 3864 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 3865 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 3866 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 3867 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 3868 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 3869 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 3870 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 3871 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 3872 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 3873 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 3874 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 3875 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 3876 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 3877 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 3878 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 3879 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 3880 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 3881 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 3882 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 3883 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 3884 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 3885 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 3886 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 3887 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 3888 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 3889 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 3890 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 3891 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 3892 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 3893 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 3894 | "\x6C\x82\x9D", |
| 3895 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 3896 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 3897 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 3898 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 3899 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 3900 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 3901 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 3902 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 3903 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 3904 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 3905 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 3906 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 3907 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 3908 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 3909 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 3910 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 3911 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 3912 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 3913 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 3914 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 3915 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 3916 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 3917 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 3918 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 3919 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 3920 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 3921 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 3922 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 3923 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 3924 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 3925 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 3926 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 3927 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 3928 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 3929 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 3930 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 3931 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 3932 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 3933 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 3934 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 3935 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 3936 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 3937 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 3938 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 3939 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 3940 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 3941 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 3942 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 3943 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 3944 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 3945 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 3946 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 3947 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 3948 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 3949 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 3950 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 3951 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 3952 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 3953 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 3954 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 3955 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 3956 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 3957 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 3958 | "\x2B\xC2\x59", |
| 3959 | .rlen = 499, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3960 | }, |
| 3961 | }; |
| 3962 | |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 3963 | static struct cipher_testvec tf_lrw_enc_tv_template[] = { |
| 3964 | /* Generated from AES-LRW test vectors */ |
| 3965 | { |
| 3966 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 3967 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 3968 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 3969 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 3970 | .klen = 32, |
| 3971 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3972 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 3973 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 3974 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 3975 | .ilen = 16, |
| 3976 | .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 3977 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 3978 | .rlen = 16, |
| 3979 | }, { |
| 3980 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 3981 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 3982 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 3983 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 3984 | .klen = 32, |
| 3985 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3986 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 3987 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 3988 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 3989 | .ilen = 16, |
| 3990 | .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 3991 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 3992 | .rlen = 16, |
| 3993 | }, { |
| 3994 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 3995 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 3996 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 3997 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 3998 | .klen = 32, |
| 3999 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4000 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 4001 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4002 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4003 | .ilen = 16, |
| 4004 | .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 4005 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 4006 | .rlen = 16, |
| 4007 | }, { |
| 4008 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 4009 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 4010 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 4011 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 4012 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 4013 | .klen = 40, |
| 4014 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4015 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 4016 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4017 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4018 | .ilen = 16, |
| 4019 | .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 4020 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 4021 | .rlen = 16, |
| 4022 | }, { |
| 4023 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 4024 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 4025 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 4026 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 4027 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 4028 | .klen = 40, |
| 4029 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4030 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 4031 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4032 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4033 | .ilen = 16, |
| 4034 | .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 4035 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 4036 | .rlen = 16, |
| 4037 | }, { |
| 4038 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 4039 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 4040 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 4041 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 4042 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 4043 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 4044 | .klen = 48, |
| 4045 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4046 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 4047 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4048 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4049 | .ilen = 16, |
| 4050 | .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 4051 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 4052 | .rlen = 16, |
| 4053 | }, { |
| 4054 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 4055 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 4056 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 4057 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 4058 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 4059 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 4060 | .klen = 48, |
| 4061 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4062 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 4063 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4064 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4065 | .ilen = 16, |
| 4066 | .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 4067 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 4068 | .rlen = 16, |
| 4069 | }, { |
| 4070 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 4071 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 4072 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 4073 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 4074 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 4075 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 4076 | .klen = 48, |
| 4077 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4078 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 4079 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 4080 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 4081 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 4082 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 4083 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 4084 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 4085 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 4086 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 4087 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 4088 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 4089 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 4090 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 4091 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 4092 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 4093 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 4094 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 4095 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 4096 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 4097 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 4098 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 4099 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 4100 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 4101 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 4102 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 4103 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 4104 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 4105 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 4106 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 4107 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 4108 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 4109 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 4110 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 4111 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 4112 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 4113 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 4114 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 4115 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 4116 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 4117 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 4118 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 4119 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 4120 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 4121 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 4122 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 4123 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 4124 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 4125 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 4126 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 4127 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 4128 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 4129 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 4130 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 4131 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 4132 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 4133 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 4134 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 4135 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 4136 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 4137 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 4138 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 4139 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 4140 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 4141 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 4142 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 4143 | .ilen = 512, |
| 4144 | .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 4145 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 4146 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 4147 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 4148 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 4149 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 4150 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 4151 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 4152 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 4153 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 4154 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 4155 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 4156 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 4157 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 4158 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 4159 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 4160 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 4161 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 4162 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 4163 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 4164 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 4165 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 4166 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 4167 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 4168 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 4169 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 4170 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 4171 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 4172 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 4173 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 4174 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 4175 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 4176 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 4177 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 4178 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 4179 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 4180 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 4181 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 4182 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 4183 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 4184 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 4185 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 4186 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 4187 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 4188 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 4189 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 4190 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 4191 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 4192 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 4193 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 4194 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 4195 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 4196 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 4197 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 4198 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 4199 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 4200 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 4201 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 4202 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 4203 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 4204 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 4205 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 4206 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 4207 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 4208 | .rlen = 512, |
| 4209 | }, |
| 4210 | }; |
| 4211 | |
| 4212 | static struct cipher_testvec tf_lrw_dec_tv_template[] = { |
| 4213 | /* Generated from AES-LRW test vectors */ |
| 4214 | /* same as enc vectors with input and result reversed */ |
| 4215 | { |
| 4216 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 4217 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 4218 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 4219 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 4220 | .klen = 32, |
| 4221 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4222 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 4223 | .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 4224 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 4225 | .ilen = 16, |
| 4226 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4227 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4228 | .rlen = 16, |
| 4229 | }, { |
| 4230 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 4231 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 4232 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 4233 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 4234 | .klen = 32, |
| 4235 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4236 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 4237 | .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 4238 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 4239 | .ilen = 16, |
| 4240 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4241 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4242 | .rlen = 16, |
| 4243 | }, { |
| 4244 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 4245 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 4246 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 4247 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 4248 | .klen = 32, |
| 4249 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4250 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 4251 | .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 4252 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 4253 | .ilen = 16, |
| 4254 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4255 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4256 | .rlen = 16, |
| 4257 | }, { |
| 4258 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 4259 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 4260 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 4261 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 4262 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 4263 | .klen = 40, |
| 4264 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4265 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 4266 | .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 4267 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 4268 | .ilen = 16, |
| 4269 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4270 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4271 | .rlen = 16, |
| 4272 | }, { |
| 4273 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 4274 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 4275 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 4276 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 4277 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 4278 | .klen = 40, |
| 4279 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4280 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 4281 | .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 4282 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 4283 | .ilen = 16, |
| 4284 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4285 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4286 | .rlen = 16, |
| 4287 | }, { |
| 4288 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 4289 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 4290 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 4291 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 4292 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 4293 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 4294 | .klen = 48, |
| 4295 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4296 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 4297 | .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 4298 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 4299 | .ilen = 16, |
| 4300 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4301 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4302 | .rlen = 16, |
| 4303 | }, { |
| 4304 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 4305 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 4306 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 4307 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 4308 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 4309 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 4310 | .klen = 48, |
| 4311 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4312 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 4313 | .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 4314 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 4315 | .ilen = 16, |
| 4316 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4317 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 4318 | .rlen = 16, |
| 4319 | }, { |
| 4320 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 4321 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 4322 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 4323 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 4324 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 4325 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 4326 | .klen = 48, |
| 4327 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4328 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 4329 | .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 4330 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 4331 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 4332 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 4333 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 4334 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 4335 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 4336 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 4337 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 4338 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 4339 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 4340 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 4341 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 4342 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 4343 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 4344 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 4345 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 4346 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 4347 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 4348 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 4349 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 4350 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 4351 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 4352 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 4353 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 4354 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 4355 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 4356 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 4357 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 4358 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 4359 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 4360 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 4361 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 4362 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 4363 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 4364 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 4365 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 4366 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 4367 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 4368 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 4369 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 4370 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 4371 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 4372 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 4373 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 4374 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 4375 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 4376 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 4377 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 4378 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 4379 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 4380 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 4381 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 4382 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 4383 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 4384 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 4385 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 4386 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 4387 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 4388 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 4389 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 4390 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 4391 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 4392 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 4393 | .ilen = 512, |
| 4394 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 4395 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 4396 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 4397 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 4398 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 4399 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 4400 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 4401 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 4402 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 4403 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 4404 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 4405 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 4406 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 4407 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 4408 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 4409 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 4410 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 4411 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 4412 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 4413 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 4414 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 4415 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 4416 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 4417 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 4418 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 4419 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 4420 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 4421 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 4422 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 4423 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 4424 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 4425 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 4426 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 4427 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 4428 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 4429 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 4430 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 4431 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 4432 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 4433 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 4434 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 4435 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 4436 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 4437 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 4438 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 4439 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 4440 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 4441 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 4442 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 4443 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 4444 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 4445 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 4446 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 4447 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 4448 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 4449 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 4450 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 4451 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 4452 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 4453 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 4454 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 4455 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 4456 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 4457 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 4458 | .rlen = 512, |
| 4459 | }, |
| 4460 | }; |
| 4461 | |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 4462 | static struct cipher_testvec tf_xts_enc_tv_template[] = { |
| 4463 | /* Generated from AES-XTS test vectors */ |
| 4464 | { |
| 4465 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4466 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4467 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4468 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4469 | .klen = 32, |
| 4470 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4471 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4472 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4473 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4474 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4475 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4476 | .ilen = 32, |
| 4477 | .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 4478 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 4479 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 4480 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 4481 | .rlen = 32, |
| 4482 | }, { |
| 4483 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 4484 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 4485 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 4486 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 4487 | .klen = 32, |
| 4488 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 4489 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4490 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4491 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4492 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4493 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 4494 | .ilen = 32, |
| 4495 | .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 4496 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 4497 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 4498 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 4499 | .rlen = 32, |
| 4500 | }, { |
| 4501 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 4502 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 4503 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 4504 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 4505 | .klen = 32, |
| 4506 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 4507 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4508 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4509 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4510 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4511 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 4512 | .ilen = 32, |
| 4513 | .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 4514 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 4515 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 4516 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 4517 | .rlen = 32, |
| 4518 | }, { |
| 4519 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 4520 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 4521 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 4522 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 4523 | .klen = 32, |
| 4524 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4525 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4526 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 4527 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 4528 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 4529 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 4530 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 4531 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 4532 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4533 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 4534 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 4535 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 4536 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 4537 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 4538 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 4539 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 4540 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 4541 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 4542 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 4543 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 4544 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 4545 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 4546 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 4547 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 4548 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 4549 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 4550 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 4551 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 4552 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 4553 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 4554 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 4555 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 4556 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 4557 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 4558 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 4559 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 4560 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 4561 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 4562 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 4563 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 4564 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4565 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 4566 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 4567 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 4568 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 4569 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 4570 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 4571 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 4572 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 4573 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 4574 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 4575 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 4576 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 4577 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 4578 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 4579 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 4580 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 4581 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 4582 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 4583 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 4584 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 4585 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 4586 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 4587 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 4588 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 4589 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 4590 | .ilen = 512, |
| 4591 | .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 4592 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 4593 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 4594 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 4595 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 4596 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 4597 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 4598 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 4599 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 4600 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 4601 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 4602 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 4603 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 4604 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 4605 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 4606 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 4607 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 4608 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 4609 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 4610 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 4611 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 4612 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 4613 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 4614 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 4615 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 4616 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 4617 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 4618 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 4619 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 4620 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 4621 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 4622 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 4623 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 4624 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 4625 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 4626 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 4627 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 4628 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 4629 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 4630 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 4631 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 4632 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 4633 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 4634 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 4635 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 4636 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 4637 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 4638 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 4639 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 4640 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 4641 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 4642 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 4643 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 4644 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 4645 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 4646 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 4647 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 4648 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 4649 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 4650 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 4651 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 4652 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 4653 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 4654 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 4655 | .rlen = 512, |
| 4656 | }, { |
| 4657 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 4658 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 4659 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 4660 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 4661 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 4662 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 4663 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 4664 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 4665 | .klen = 64, |
| 4666 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 4667 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4668 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 4669 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 4670 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 4671 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 4672 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 4673 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 4674 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4675 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 4676 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 4677 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 4678 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 4679 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 4680 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 4681 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 4682 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 4683 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 4684 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 4685 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 4686 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 4687 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 4688 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 4689 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 4690 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 4691 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 4692 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 4693 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 4694 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 4695 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 4696 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 4697 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 4698 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 4699 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 4700 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 4701 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 4702 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 4703 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 4704 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 4705 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 4706 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4707 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 4708 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 4709 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 4710 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 4711 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 4712 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 4713 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 4714 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 4715 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 4716 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 4717 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 4718 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 4719 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 4720 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 4721 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 4722 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 4723 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 4724 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 4725 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 4726 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 4727 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 4728 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 4729 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 4730 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 4731 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 4732 | .ilen = 512, |
| 4733 | .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 4734 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 4735 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 4736 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 4737 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 4738 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 4739 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 4740 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 4741 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 4742 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 4743 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 4744 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 4745 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 4746 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 4747 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 4748 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 4749 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 4750 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 4751 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 4752 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 4753 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 4754 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 4755 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 4756 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 4757 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 4758 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 4759 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 4760 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 4761 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 4762 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 4763 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 4764 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 4765 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 4766 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 4767 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 4768 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 4769 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 4770 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 4771 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 4772 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 4773 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 4774 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 4775 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 4776 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 4777 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 4778 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 4779 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 4780 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 4781 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 4782 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 4783 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 4784 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 4785 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 4786 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 4787 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 4788 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 4789 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 4790 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 4791 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 4792 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 4793 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 4794 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 4795 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 4796 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 4797 | .rlen = 512, |
| 4798 | }, |
| 4799 | }; |
| 4800 | |
| 4801 | static struct cipher_testvec tf_xts_dec_tv_template[] = { |
| 4802 | /* Generated from AES-XTS test vectors */ |
| 4803 | /* same as enc vectors with input and result reversed */ |
| 4804 | { |
| 4805 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4806 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4807 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4808 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4809 | .klen = 32, |
| 4810 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4811 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4812 | .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 4813 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 4814 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 4815 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 4816 | .ilen = 32, |
| 4817 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4818 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4819 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4820 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4821 | .rlen = 32, |
| 4822 | }, { |
| 4823 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 4824 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 4825 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 4826 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 4827 | .klen = 32, |
| 4828 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 4829 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4830 | .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 4831 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 4832 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 4833 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 4834 | .ilen = 32, |
| 4835 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4836 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4837 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4838 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 4839 | .rlen = 32, |
| 4840 | }, { |
| 4841 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 4842 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 4843 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 4844 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 4845 | .klen = 32, |
| 4846 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 4847 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4848 | .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 4849 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 4850 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 4851 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 4852 | .ilen = 32, |
| 4853 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4854 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4855 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 4856 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 4857 | .rlen = 32, |
| 4858 | }, { |
| 4859 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 4860 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 4861 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 4862 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 4863 | .klen = 32, |
| 4864 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4865 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4866 | .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 4867 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 4868 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 4869 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 4870 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 4871 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 4872 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 4873 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 4874 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 4875 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 4876 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 4877 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 4878 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 4879 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 4880 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 4881 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 4882 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 4883 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 4884 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 4885 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 4886 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 4887 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 4888 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 4889 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 4890 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 4891 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 4892 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 4893 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 4894 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 4895 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 4896 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 4897 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 4898 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 4899 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 4900 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 4901 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 4902 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 4903 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 4904 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 4905 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 4906 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 4907 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 4908 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 4909 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 4910 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 4911 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 4912 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 4913 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 4914 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 4915 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 4916 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 4917 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 4918 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 4919 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 4920 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 4921 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 4922 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 4923 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 4924 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 4925 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 4926 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 4927 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 4928 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 4929 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 4930 | .ilen = 512, |
| 4931 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 4932 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 4933 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 4934 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 4935 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 4936 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 4937 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4938 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 4939 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 4940 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 4941 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 4942 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 4943 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 4944 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 4945 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 4946 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 4947 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 4948 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 4949 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 4950 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 4951 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 4952 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 4953 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 4954 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 4955 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 4956 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 4957 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 4958 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 4959 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 4960 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 4961 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 4962 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 4963 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 4964 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 4965 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 4966 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 4967 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 4968 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 4969 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 4970 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 4971 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 4972 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 4973 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 4974 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 4975 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 4976 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 4977 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 4978 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 4979 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 4980 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 4981 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 4982 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 4983 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 4984 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 4985 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 4986 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 4987 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 4988 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 4989 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 4990 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 4991 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 4992 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 4993 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 4994 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 4995 | .rlen = 512, |
| 4996 | }, { |
| 4997 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 4998 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 4999 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 5000 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 5001 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 5002 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 5003 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 5004 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 5005 | .klen = 64, |
| 5006 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 5007 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5008 | .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 5009 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 5010 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 5011 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 5012 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 5013 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 5014 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 5015 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 5016 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 5017 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 5018 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 5019 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 5020 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 5021 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 5022 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 5023 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 5024 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 5025 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 5026 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 5027 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 5028 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 5029 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 5030 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 5031 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 5032 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 5033 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 5034 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 5035 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 5036 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 5037 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 5038 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 5039 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 5040 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 5041 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 5042 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 5043 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 5044 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 5045 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 5046 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 5047 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 5048 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 5049 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 5050 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 5051 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 5052 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 5053 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 5054 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 5055 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 5056 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 5057 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 5058 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 5059 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 5060 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 5061 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 5062 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 5063 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 5064 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 5065 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 5066 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 5067 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 5068 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 5069 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 5070 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 5071 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 5072 | .ilen = 512, |
| 5073 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5074 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 5075 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 5076 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 5077 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 5078 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 5079 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5080 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 5081 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 5082 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 5083 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 5084 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 5085 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 5086 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 5087 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 5088 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 5089 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 5090 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 5091 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 5092 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 5093 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 5094 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 5095 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 5096 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 5097 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 5098 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 5099 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 5100 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 5101 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 5102 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 5103 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 5104 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 5105 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5106 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 5107 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 5108 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 5109 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 5110 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 5111 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5112 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 5113 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 5114 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 5115 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 5116 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 5117 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 5118 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 5119 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 5120 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 5121 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 5122 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 5123 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 5124 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 5125 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 5126 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 5127 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 5128 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 5129 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 5130 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 5131 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 5132 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 5133 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 5134 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 5135 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 5136 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 5137 | .rlen = 512, |
| 5138 | }, |
| 5139 | }; |
| 5140 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5141 | /* |
| 5142 | * Serpent test vectors. These are backwards because Serpent writes |
| 5143 | * octet sequences in right-to-left mode. |
| 5144 | */ |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 5145 | #define SERPENT_ENC_TEST_VECTORS 5 |
| 5146 | #define SERPENT_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5147 | |
| 5148 | #define TNEPRES_ENC_TEST_VECTORS 4 |
| 5149 | #define TNEPRES_DEC_TEST_VECTORS 4 |
| 5150 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 5151 | #define SERPENT_CBC_ENC_TEST_VECTORS 1 |
| 5152 | #define SERPENT_CBC_DEC_TEST_VECTORS 1 |
| 5153 | |
| 5154 | #define SERPENT_CTR_ENC_TEST_VECTORS 2 |
| 5155 | #define SERPENT_CTR_DEC_TEST_VECTORS 2 |
| 5156 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 5157 | #define SERPENT_LRW_ENC_TEST_VECTORS 8 |
| 5158 | #define SERPENT_LRW_DEC_TEST_VECTORS 8 |
| 5159 | |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 5160 | #define SERPENT_XTS_ENC_TEST_VECTORS 5 |
| 5161 | #define SERPENT_XTS_DEC_TEST_VECTORS 5 |
| 5162 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5163 | static struct cipher_testvec serpent_enc_tv_template[] = { |
| 5164 | { |
| 5165 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5166 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5167 | .ilen = 16, |
| 5168 | .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 5169 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 5170 | .rlen = 16, |
| 5171 | }, { |
| 5172 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5173 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5174 | .klen = 16, |
| 5175 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5176 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5177 | .ilen = 16, |
| 5178 | .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 5179 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 5180 | .rlen = 16, |
| 5181 | }, { |
| 5182 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5183 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 5184 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 5185 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 5186 | .klen = 32, |
| 5187 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5188 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5189 | .ilen = 16, |
| 5190 | .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 5191 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 5192 | .rlen = 16, |
| 5193 | }, { |
| 5194 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 5195 | .klen = 16, |
| 5196 | .input = zeroed_string, |
| 5197 | .ilen = 16, |
| 5198 | .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 5199 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 5200 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 5201 | }, { /* Generated with Crypto++ */ |
| 5202 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5203 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5204 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5205 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5206 | .klen = 32, |
| 5207 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5208 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5209 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5210 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5211 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5212 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5213 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5214 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5215 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5216 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5217 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5218 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5219 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5220 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5221 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5222 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5223 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5224 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A", |
| 5225 | .ilen = 144, |
| 5226 | .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 5227 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 5228 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 5229 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 5230 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 5231 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 5232 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 5233 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 5234 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 5235 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 5236 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 5237 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 5238 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 5239 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 5240 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 5241 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 5242 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
| 5243 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6", |
| 5244 | .rlen = 144, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5245 | }, |
| 5246 | }; |
| 5247 | |
| 5248 | static struct cipher_testvec tnepres_enc_tv_template[] = { |
| 5249 | { /* KeySize=128, PT=0, I=1 */ |
| 5250 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5251 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5252 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 5253 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5254 | .klen = 16, |
| 5255 | .ilen = 16, |
| 5256 | .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05" |
| 5257 | "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd", |
| 5258 | .rlen = 16, |
| 5259 | }, { /* KeySize=192, PT=0, I=1 */ |
| 5260 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 5261 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5262 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5263 | .klen = 24, |
| 5264 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5265 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5266 | .ilen = 16, |
| 5267 | .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68" |
| 5268 | "\xac\x36\x78\xf7\xa3\xf6\x0c\x66", |
| 5269 | .rlen = 16, |
| 5270 | }, { /* KeySize=256, PT=0, I=1 */ |
| 5271 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 5272 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5273 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5274 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5275 | .klen = 32, |
| 5276 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5277 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5278 | .ilen = 16, |
| 5279 | .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb" |
| 5280 | "\xc0\xeb\xd2\x1a\x82\xef\x08\x19", |
| 5281 | .rlen = 16, |
| 5282 | }, { /* KeySize=256, I=257 */ |
| 5283 | .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18" |
| 5284 | "\x17\x16\x15\x14\x13\x12\x11\x10" |
| 5285 | "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 5286 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 5287 | .klen = 32, |
| 5288 | .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 5289 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 5290 | .ilen = 16, |
| 5291 | .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b" |
| 5292 | "\xb8\x32\xe4\x33\xf8\x9f\x26\xde", |
| 5293 | .rlen = 16, |
| 5294 | }, |
| 5295 | }; |
| 5296 | |
| 5297 | |
| 5298 | static struct cipher_testvec serpent_dec_tv_template[] = { |
| 5299 | { |
| 5300 | .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 5301 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 5302 | .ilen = 16, |
| 5303 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5304 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5305 | .rlen = 16, |
| 5306 | }, { |
| 5307 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5308 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5309 | .klen = 16, |
| 5310 | .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 5311 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 5312 | .ilen = 16, |
| 5313 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5314 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5315 | .rlen = 16, |
| 5316 | }, { |
| 5317 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5318 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 5319 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 5320 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 5321 | .klen = 32, |
| 5322 | .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 5323 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 5324 | .ilen = 16, |
| 5325 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5326 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5327 | .rlen = 16, |
| 5328 | }, { |
| 5329 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 5330 | .klen = 16, |
| 5331 | .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 5332 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 5333 | .ilen = 16, |
| 5334 | .result = zeroed_string, |
| 5335 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 5336 | }, { /* Generated with Crypto++ */ |
| 5337 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5338 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5339 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5340 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5341 | .klen = 32, |
| 5342 | .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 5343 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 5344 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 5345 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 5346 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 5347 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 5348 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 5349 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 5350 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 5351 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 5352 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 5353 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 5354 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 5355 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 5356 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 5357 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 5358 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
| 5359 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6", |
| 5360 | .ilen = 144, |
| 5361 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5362 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5363 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5364 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5365 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5366 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5367 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5368 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5369 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5370 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5371 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5372 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5373 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5374 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5375 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5376 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5377 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5378 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A", |
| 5379 | .rlen = 144, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5380 | }, |
| 5381 | }; |
| 5382 | |
| 5383 | static struct cipher_testvec tnepres_dec_tv_template[] = { |
| 5384 | { |
| 5385 | .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97" |
| 5386 | "\x6d\x6f\xbb\x38\x4b\x37\x21\x28", |
| 5387 | .ilen = 16, |
| 5388 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5389 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5390 | .rlen = 16, |
| 5391 | }, { |
| 5392 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5393 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5394 | .klen = 16, |
| 5395 | .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47" |
| 5396 | "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e", |
| 5397 | .ilen = 16, |
| 5398 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5399 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5400 | .rlen = 16, |
| 5401 | }, { |
| 5402 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5403 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 5404 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 5405 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 5406 | .klen = 32, |
| 5407 | .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49" |
| 5408 | "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee", |
| 5409 | .ilen = 16, |
| 5410 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 5411 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 5412 | .rlen = 16, |
| 5413 | }, { /* KeySize=128, I=121 */ |
| 5414 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 5415 | .klen = 16, |
| 5416 | .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06" |
| 5417 | "\x46\x2a\xf4\xef\x81\x54\x4e\x26", |
| 5418 | .ilen = 16, |
| 5419 | .result = zeroed_string, |
| 5420 | .rlen = 16, |
| 5421 | }, |
| 5422 | }; |
| 5423 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 5424 | static struct cipher_testvec serpent_cbc_enc_tv_template[] = { |
| 5425 | { /* Generated with Crypto++ */ |
| 5426 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5427 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5428 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5429 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5430 | .klen = 32, |
| 5431 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 5432 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 5433 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5434 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5435 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5436 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5437 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5438 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5439 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5440 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5441 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5442 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5443 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5444 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5445 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5446 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5447 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5448 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5449 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5450 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A", |
| 5451 | .ilen = 144, |
| 5452 | .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 5453 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 5454 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 5455 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 5456 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 5457 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 5458 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 5459 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 5460 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 5461 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 5462 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 5463 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 5464 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 5465 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 5466 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 5467 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 5468 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
| 5469 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C", |
| 5470 | .rlen = 144, |
| 5471 | }, |
| 5472 | }; |
| 5473 | |
| 5474 | static struct cipher_testvec serpent_cbc_dec_tv_template[] = { |
| 5475 | { /* Generated with Crypto++ */ |
| 5476 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5477 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5478 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5479 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5480 | .klen = 32, |
| 5481 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 5482 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 5483 | .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 5484 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 5485 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 5486 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 5487 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 5488 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 5489 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 5490 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 5491 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 5492 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 5493 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 5494 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 5495 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 5496 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 5497 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 5498 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 5499 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
| 5500 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C", |
| 5501 | .ilen = 144, |
| 5502 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5503 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5504 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5505 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5506 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5507 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5508 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5509 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5510 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5511 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5512 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5513 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5514 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5515 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5516 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5517 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5518 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5519 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A", |
| 5520 | .rlen = 144, |
| 5521 | }, |
| 5522 | }; |
| 5523 | |
| 5524 | static struct cipher_testvec serpent_ctr_enc_tv_template[] = { |
| 5525 | { /* Generated with Crypto++ */ |
| 5526 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5527 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5528 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5529 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5530 | .klen = 32, |
| 5531 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 5532 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 5533 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5534 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5535 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5536 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5537 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5538 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5539 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5540 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5541 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5542 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5543 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5544 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5545 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5546 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5547 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5548 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5549 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5550 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A", |
| 5551 | .ilen = 144, |
| 5552 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 5553 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 5554 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 5555 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 5556 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 5557 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 5558 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 5559 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 5560 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 5561 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 5562 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 5563 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 5564 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 5565 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 5566 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 5567 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 5568 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 5569 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9", |
| 5570 | .rlen = 144, |
| 5571 | }, { /* Generated with Crypto++ */ |
| 5572 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5573 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5574 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5575 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5576 | .klen = 32, |
| 5577 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 5578 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 5579 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5580 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5581 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5582 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5583 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5584 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5585 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5586 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5587 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5588 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5589 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5590 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5591 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5592 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5593 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5594 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5595 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5596 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5597 | "\xF1\x65\xFC", |
| 5598 | .ilen = 147, |
| 5599 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 5600 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 5601 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 5602 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 5603 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 5604 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 5605 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 5606 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 5607 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 5608 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 5609 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 5610 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 5611 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 5612 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 5613 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 5614 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 5615 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 5616 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 5617 | "\xE6\xD0\x97", |
| 5618 | .rlen = 147, |
| 5619 | }, |
| 5620 | }; |
| 5621 | |
| 5622 | static struct cipher_testvec serpent_ctr_dec_tv_template[] = { |
| 5623 | { /* Generated with Crypto++ */ |
| 5624 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5625 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5626 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5627 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5628 | .klen = 32, |
| 5629 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 5630 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 5631 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 5632 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 5633 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 5634 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 5635 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 5636 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 5637 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 5638 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 5639 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 5640 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 5641 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 5642 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 5643 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 5644 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 5645 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 5646 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 5647 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 5648 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9", |
| 5649 | .ilen = 144, |
| 5650 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5651 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5652 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5653 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5654 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5655 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5656 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5657 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5658 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5659 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5660 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5661 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5662 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5663 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5664 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5665 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5666 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5667 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A", |
| 5668 | .rlen = 144, |
| 5669 | }, { /* Generated with Crypto++ */ |
| 5670 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5671 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5672 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5673 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5674 | .klen = 32, |
| 5675 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 5676 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 5677 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 5678 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 5679 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 5680 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 5681 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 5682 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 5683 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 5684 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 5685 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 5686 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 5687 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 5688 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 5689 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 5690 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 5691 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 5692 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 5693 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 5694 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 5695 | "\xE6\xD0\x97", |
| 5696 | .ilen = 147, |
| 5697 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5698 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5699 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5700 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 5701 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5702 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5703 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5704 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5705 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5706 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5707 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5708 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5709 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5710 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5711 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5712 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5713 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5714 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5715 | "\xF1\x65\xFC", |
| 5716 | .rlen = 147, |
| 5717 | }, |
| 5718 | }; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5719 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 5720 | static struct cipher_testvec serpent_lrw_enc_tv_template[] = { |
| 5721 | /* Generated from AES-LRW test vectors */ |
| 5722 | { |
| 5723 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 5724 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 5725 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 5726 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 5727 | .klen = 32, |
| 5728 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5729 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 5730 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5731 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5732 | .ilen = 16, |
| 5733 | .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 5734 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 5735 | .rlen = 16, |
| 5736 | }, { |
| 5737 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 5738 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 5739 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 5740 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 5741 | .klen = 32, |
| 5742 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5743 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 5744 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5745 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5746 | .ilen = 16, |
| 5747 | .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 5748 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 5749 | .rlen = 16, |
| 5750 | }, { |
| 5751 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 5752 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 5753 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 5754 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 5755 | .klen = 32, |
| 5756 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5757 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 5758 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5759 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5760 | .ilen = 16, |
| 5761 | .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 5762 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 5763 | .rlen = 16, |
| 5764 | }, { |
| 5765 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 5766 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 5767 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 5768 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 5769 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 5770 | .klen = 40, |
| 5771 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5772 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 5773 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5774 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5775 | .ilen = 16, |
| 5776 | .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 5777 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 5778 | .rlen = 16, |
| 5779 | }, { |
| 5780 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 5781 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 5782 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 5783 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 5784 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 5785 | .klen = 40, |
| 5786 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5787 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 5788 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5789 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5790 | .ilen = 16, |
| 5791 | .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 5792 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 5793 | .rlen = 16, |
| 5794 | }, { |
| 5795 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 5796 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 5797 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 5798 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 5799 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 5800 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 5801 | .klen = 48, |
| 5802 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5803 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 5804 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5805 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5806 | .ilen = 16, |
| 5807 | .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 5808 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 5809 | .rlen = 16, |
| 5810 | }, { |
| 5811 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 5812 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 5813 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 5814 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 5815 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 5816 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 5817 | .klen = 48, |
| 5818 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5819 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 5820 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5821 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5822 | .ilen = 16, |
| 5823 | .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 5824 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 5825 | .rlen = 16, |
| 5826 | }, { |
| 5827 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 5828 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 5829 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 5830 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 5831 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 5832 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 5833 | .klen = 48, |
| 5834 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5835 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 5836 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 5837 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 5838 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 5839 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 5840 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 5841 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 5842 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 5843 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 5844 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 5845 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 5846 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 5847 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 5848 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 5849 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 5850 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 5851 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 5852 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 5853 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 5854 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 5855 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 5856 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 5857 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 5858 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 5859 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 5860 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 5861 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 5862 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 5863 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 5864 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 5865 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 5866 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 5867 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 5868 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 5869 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 5870 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 5871 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 5872 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 5873 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 5874 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 5875 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 5876 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 5877 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 5878 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 5879 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 5880 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 5881 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 5882 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 5883 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 5884 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 5885 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 5886 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 5887 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 5888 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 5889 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 5890 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 5891 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 5892 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 5893 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 5894 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 5895 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 5896 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 5897 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 5898 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 5899 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 5900 | .ilen = 512, |
| 5901 | .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 5902 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 5903 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 5904 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 5905 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 5906 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 5907 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 5908 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 5909 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 5910 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 5911 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 5912 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 5913 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 5914 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 5915 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 5916 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 5917 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 5918 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 5919 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 5920 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 5921 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 5922 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 5923 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 5924 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 5925 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 5926 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 5927 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 5928 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 5929 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 5930 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 5931 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 5932 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 5933 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 5934 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 5935 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 5936 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 5937 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 5938 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 5939 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 5940 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 5941 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 5942 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 5943 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 5944 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 5945 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 5946 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 5947 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 5948 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 5949 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 5950 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 5951 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 5952 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 5953 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 5954 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 5955 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 5956 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 5957 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 5958 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 5959 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 5960 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 5961 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 5962 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 5963 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 5964 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 5965 | .rlen = 512, |
| 5966 | }, |
| 5967 | }; |
| 5968 | |
| 5969 | static struct cipher_testvec serpent_lrw_dec_tv_template[] = { |
| 5970 | /* Generated from AES-LRW test vectors */ |
| 5971 | /* same as enc vectors with input and result reversed */ |
| 5972 | { |
| 5973 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 5974 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 5975 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 5976 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 5977 | .klen = 32, |
| 5978 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5979 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 5980 | .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 5981 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 5982 | .ilen = 16, |
| 5983 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5984 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5985 | .rlen = 16, |
| 5986 | }, { |
| 5987 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 5988 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 5989 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 5990 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 5991 | .klen = 32, |
| 5992 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 5993 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 5994 | .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 5995 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 5996 | .ilen = 16, |
| 5997 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 5998 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 5999 | .rlen = 16, |
| 6000 | }, { |
| 6001 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 6002 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 6003 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 6004 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 6005 | .klen = 32, |
| 6006 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6007 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 6008 | .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 6009 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 6010 | .ilen = 16, |
| 6011 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6012 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 6013 | .rlen = 16, |
| 6014 | }, { |
| 6015 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 6016 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 6017 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 6018 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 6019 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 6020 | .klen = 40, |
| 6021 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6022 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 6023 | .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 6024 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 6025 | .ilen = 16, |
| 6026 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6027 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 6028 | .rlen = 16, |
| 6029 | }, { |
| 6030 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 6031 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 6032 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 6033 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 6034 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 6035 | .klen = 40, |
| 6036 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6037 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 6038 | .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 6039 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 6040 | .ilen = 16, |
| 6041 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6042 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 6043 | .rlen = 16, |
| 6044 | }, { |
| 6045 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 6046 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 6047 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 6048 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 6049 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 6050 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 6051 | .klen = 48, |
| 6052 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6053 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 6054 | .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 6055 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 6056 | .ilen = 16, |
| 6057 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6058 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 6059 | .rlen = 16, |
| 6060 | }, { |
| 6061 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 6062 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 6063 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 6064 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 6065 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 6066 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 6067 | .klen = 48, |
| 6068 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6069 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 6070 | .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 6071 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 6072 | .ilen = 16, |
| 6073 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6074 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 6075 | .rlen = 16, |
| 6076 | }, { |
| 6077 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 6078 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 6079 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 6080 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 6081 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 6082 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 6083 | .klen = 48, |
| 6084 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6085 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 6086 | .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 6087 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 6088 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 6089 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 6090 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 6091 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 6092 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 6093 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 6094 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 6095 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 6096 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 6097 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 6098 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 6099 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 6100 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 6101 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 6102 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 6103 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 6104 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 6105 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 6106 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 6107 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 6108 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 6109 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 6110 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 6111 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 6112 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 6113 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 6114 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 6115 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 6116 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 6117 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 6118 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 6119 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 6120 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 6121 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 6122 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 6123 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 6124 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 6125 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 6126 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 6127 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 6128 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 6129 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 6130 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 6131 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 6132 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 6133 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 6134 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 6135 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 6136 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 6137 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 6138 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 6139 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 6140 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 6141 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 6142 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 6143 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 6144 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 6145 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 6146 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 6147 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 6148 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 6149 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 6150 | .ilen = 512, |
| 6151 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 6152 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 6153 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 6154 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 6155 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 6156 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 6157 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 6158 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 6159 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 6160 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 6161 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 6162 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 6163 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 6164 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 6165 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 6166 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 6167 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 6168 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 6169 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 6170 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 6171 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 6172 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 6173 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 6174 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 6175 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 6176 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 6177 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 6178 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 6179 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 6180 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 6181 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 6182 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 6183 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 6184 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 6185 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 6186 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 6187 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 6188 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 6189 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 6190 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 6191 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 6192 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 6193 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 6194 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 6195 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 6196 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 6197 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 6198 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 6199 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 6200 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 6201 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 6202 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 6203 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 6204 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 6205 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 6206 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 6207 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 6208 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 6209 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 6210 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 6211 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 6212 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 6213 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 6214 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 6215 | .rlen = 512, |
| 6216 | }, |
| 6217 | }; |
| 6218 | |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 6219 | static struct cipher_testvec serpent_xts_enc_tv_template[] = { |
| 6220 | /* Generated from AES-XTS test vectors */ |
| 6221 | { |
| 6222 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6223 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6224 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6225 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6226 | .klen = 32, |
| 6227 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6228 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6229 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6230 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6231 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6232 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6233 | .ilen = 32, |
| 6234 | .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 6235 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 6236 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 6237 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 6238 | .rlen = 32, |
| 6239 | }, { |
| 6240 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 6241 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 6242 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 6243 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 6244 | .klen = 32, |
| 6245 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 6246 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6247 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6248 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6249 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6250 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 6251 | .ilen = 32, |
| 6252 | .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 6253 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 6254 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 6255 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 6256 | .rlen = 32, |
| 6257 | }, { |
| 6258 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 6259 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 6260 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 6261 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 6262 | .klen = 32, |
| 6263 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 6264 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6265 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6266 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6267 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6268 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 6269 | .ilen = 32, |
| 6270 | .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 6271 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 6272 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 6273 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 6274 | .rlen = 32, |
| 6275 | }, { |
| 6276 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 6277 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 6278 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 6279 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 6280 | .klen = 32, |
| 6281 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6282 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6283 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6284 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6285 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6286 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6287 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6288 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6289 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6290 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6291 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6292 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6293 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6294 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6295 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6296 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6297 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6298 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6299 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6300 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6301 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6302 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6303 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6304 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6305 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6306 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6307 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6308 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6309 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6310 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6311 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6312 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6313 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6314 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 6315 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6316 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6317 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6318 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6319 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6320 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6321 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6322 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6323 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6324 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6325 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6326 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6327 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6328 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6329 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6330 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6331 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6332 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6333 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6334 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6335 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6336 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6337 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6338 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6339 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6340 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6341 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6342 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6343 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6344 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6345 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6346 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 6347 | .ilen = 512, |
| 6348 | .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 6349 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 6350 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 6351 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 6352 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 6353 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 6354 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 6355 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 6356 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 6357 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 6358 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 6359 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 6360 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 6361 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 6362 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 6363 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 6364 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 6365 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 6366 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 6367 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 6368 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 6369 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 6370 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 6371 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 6372 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 6373 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 6374 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 6375 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 6376 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 6377 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 6378 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 6379 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 6380 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 6381 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 6382 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 6383 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 6384 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 6385 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 6386 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 6387 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 6388 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 6389 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 6390 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 6391 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 6392 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 6393 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 6394 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 6395 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 6396 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 6397 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 6398 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 6399 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 6400 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 6401 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 6402 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 6403 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 6404 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 6405 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 6406 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 6407 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 6408 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 6409 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 6410 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 6411 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 6412 | .rlen = 512, |
| 6413 | }, { |
| 6414 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 6415 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 6416 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 6417 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 6418 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 6419 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 6420 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 6421 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 6422 | .klen = 64, |
| 6423 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 6424 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6425 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6426 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6427 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6428 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6429 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6430 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6431 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6432 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6433 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6434 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6435 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6436 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6437 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6438 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6439 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6440 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6441 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6442 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6443 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6444 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6445 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6446 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6447 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6448 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6449 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6450 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6451 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6452 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6453 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6454 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6455 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6456 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 6457 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6458 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6459 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6460 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6461 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6462 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6463 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6464 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6465 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6466 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6467 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6468 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6469 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6470 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6471 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6472 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6473 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6474 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6475 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6476 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6477 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6478 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6479 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6480 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6481 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6482 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6483 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6484 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6485 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6486 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6487 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6488 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 6489 | .ilen = 512, |
| 6490 | .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 6491 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 6492 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 6493 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 6494 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 6495 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 6496 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 6497 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 6498 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 6499 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 6500 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 6501 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 6502 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 6503 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 6504 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 6505 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 6506 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 6507 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 6508 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 6509 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 6510 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 6511 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 6512 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 6513 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 6514 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 6515 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 6516 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 6517 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 6518 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 6519 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 6520 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 6521 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 6522 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 6523 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 6524 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 6525 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 6526 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 6527 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 6528 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 6529 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 6530 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 6531 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 6532 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 6533 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 6534 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 6535 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 6536 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 6537 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 6538 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 6539 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 6540 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 6541 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 6542 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 6543 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 6544 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 6545 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 6546 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 6547 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 6548 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 6549 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 6550 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 6551 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 6552 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 6553 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 6554 | .rlen = 512, |
| 6555 | }, |
| 6556 | }; |
| 6557 | |
| 6558 | static struct cipher_testvec serpent_xts_dec_tv_template[] = { |
| 6559 | /* Generated from AES-XTS test vectors */ |
| 6560 | /* same as enc vectors with input and result reversed */ |
| 6561 | { |
| 6562 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6563 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6564 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6565 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6566 | .klen = 32, |
| 6567 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6568 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6569 | .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 6570 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 6571 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 6572 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 6573 | .ilen = 32, |
| 6574 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6575 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6576 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6577 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6578 | .rlen = 32, |
| 6579 | }, { |
| 6580 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 6581 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 6582 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 6583 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 6584 | .klen = 32, |
| 6585 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 6586 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6587 | .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 6588 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 6589 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 6590 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 6591 | .ilen = 32, |
| 6592 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6593 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6594 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6595 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 6596 | .rlen = 32, |
| 6597 | }, { |
| 6598 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 6599 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 6600 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 6601 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 6602 | .klen = 32, |
| 6603 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 6604 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6605 | .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 6606 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 6607 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 6608 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 6609 | .ilen = 32, |
| 6610 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6611 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6612 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 6613 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 6614 | .rlen = 32, |
| 6615 | }, { |
| 6616 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 6617 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 6618 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 6619 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 6620 | .klen = 32, |
| 6621 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 6622 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6623 | .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 6624 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 6625 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 6626 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 6627 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 6628 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 6629 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 6630 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 6631 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 6632 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 6633 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 6634 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 6635 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 6636 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 6637 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 6638 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 6639 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 6640 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 6641 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 6642 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 6643 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 6644 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 6645 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 6646 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 6647 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 6648 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 6649 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 6650 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 6651 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 6652 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 6653 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 6654 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 6655 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 6656 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 6657 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 6658 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 6659 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 6660 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 6661 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 6662 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 6663 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 6664 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 6665 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 6666 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 6667 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 6668 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 6669 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 6670 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 6671 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 6672 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 6673 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 6674 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 6675 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 6676 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 6677 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 6678 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 6679 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 6680 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 6681 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 6682 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 6683 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 6684 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 6685 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 6686 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 6687 | .ilen = 512, |
| 6688 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6689 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6690 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6691 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6692 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6693 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6694 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6695 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6696 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6697 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6698 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6699 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6700 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6701 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6702 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6703 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6704 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6705 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6706 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6707 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6708 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6709 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6710 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6711 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6712 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6713 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6714 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6715 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6716 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6717 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6718 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6719 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 6720 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6721 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6722 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6723 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6724 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6725 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6726 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6727 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6728 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6729 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6730 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6731 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6732 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6733 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6734 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6735 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6736 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6737 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6738 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6739 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6740 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6741 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6742 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6743 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6744 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6745 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6746 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6747 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6748 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6749 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6750 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6751 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 6752 | .rlen = 512, |
| 6753 | }, { |
| 6754 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 6755 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 6756 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 6757 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 6758 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 6759 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 6760 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 6761 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 6762 | .klen = 64, |
| 6763 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 6764 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6765 | .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 6766 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 6767 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 6768 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 6769 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 6770 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 6771 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 6772 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 6773 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 6774 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 6775 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 6776 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 6777 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 6778 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 6779 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 6780 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 6781 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 6782 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 6783 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 6784 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 6785 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 6786 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 6787 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 6788 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 6789 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 6790 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 6791 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 6792 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 6793 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 6794 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 6795 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 6796 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 6797 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 6798 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 6799 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 6800 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 6801 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 6802 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 6803 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 6804 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 6805 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 6806 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 6807 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 6808 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 6809 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 6810 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 6811 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 6812 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 6813 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 6814 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 6815 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 6816 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 6817 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 6818 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 6819 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 6820 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 6821 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 6822 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 6823 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 6824 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 6825 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 6826 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 6827 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 6828 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 6829 | .ilen = 512, |
| 6830 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6831 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6832 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6833 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6834 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6835 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6836 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6837 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6838 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6839 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6840 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6841 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6842 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6843 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6844 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6845 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6846 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6847 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6848 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6849 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6850 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6851 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6852 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6853 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6854 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6855 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6856 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6857 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6858 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6859 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6860 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6861 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 6862 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 6863 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 6864 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 6865 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 6866 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 6867 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 6868 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 6869 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 6870 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 6871 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 6872 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 6873 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 6874 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 6875 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 6876 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 6877 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 6878 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 6879 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 6880 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 6881 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 6882 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 6883 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 6884 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 6885 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 6886 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 6887 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 6888 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 6889 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 6890 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 6891 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 6892 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 6893 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 6894 | .rlen = 512, |
| 6895 | }, |
| 6896 | }; |
| 6897 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6898 | /* Cast6 test vectors from RFC 2612 */ |
| 6899 | #define CAST6_ENC_TEST_VECTORS 3 |
| 6900 | #define CAST6_DEC_TEST_VECTORS 3 |
| 6901 | |
| 6902 | static struct cipher_testvec cast6_enc_tv_template[] = { |
| 6903 | { |
| 6904 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 6905 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 6906 | .klen = 16, |
| 6907 | .input = zeroed_string, |
| 6908 | .ilen = 16, |
| 6909 | .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 6910 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 6911 | .rlen = 16, |
| 6912 | }, { |
| 6913 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 6914 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 6915 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 6916 | .klen = 24, |
| 6917 | .input = zeroed_string, |
| 6918 | .ilen = 16, |
| 6919 | .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 6920 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 6921 | .rlen = 16, |
| 6922 | }, { |
| 6923 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 6924 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 6925 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 6926 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 6927 | .klen = 32, |
| 6928 | .input = zeroed_string, |
| 6929 | .ilen = 16, |
| 6930 | .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 6931 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 6932 | .rlen = 16, |
| 6933 | }, |
| 6934 | }; |
| 6935 | |
| 6936 | static struct cipher_testvec cast6_dec_tv_template[] = { |
| 6937 | { |
| 6938 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 6939 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 6940 | .klen = 16, |
| 6941 | .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 6942 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 6943 | .ilen = 16, |
| 6944 | .result = zeroed_string, |
| 6945 | .rlen = 16, |
| 6946 | }, { |
| 6947 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 6948 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 6949 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 6950 | .klen = 24, |
| 6951 | .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 6952 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 6953 | .ilen = 16, |
| 6954 | .result = zeroed_string, |
| 6955 | .rlen = 16, |
| 6956 | }, { |
| 6957 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 6958 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 6959 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 6960 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 6961 | .klen = 32, |
| 6962 | .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 6963 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 6964 | .ilen = 16, |
| 6965 | .result = zeroed_string, |
| 6966 | .rlen = 16, |
| 6967 | }, |
| 6968 | }; |
| 6969 | |
| 6970 | |
| 6971 | /* |
| 6972 | * AES test vectors. |
| 6973 | */ |
| 6974 | #define AES_ENC_TEST_VECTORS 3 |
| 6975 | #define AES_DEC_TEST_VECTORS 3 |
| 6976 | #define AES_CBC_ENC_TEST_VECTORS 4 |
| 6977 | #define AES_CBC_DEC_TEST_VECTORS 4 |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 6978 | #define HMAC_SHA1_AES_CBC_ENC_TEST_VECTORS 7 |
| 6979 | #define HMAC_SHA256_AES_CBC_ENC_TEST_VECTORS 7 |
| 6980 | #define HMAC_SHA512_AES_CBC_ENC_TEST_VECTORS 7 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6981 | #define AES_LRW_ENC_TEST_VECTORS 8 |
| 6982 | #define AES_LRW_DEC_TEST_VECTORS 8 |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 6983 | #define AES_XTS_ENC_TEST_VECTORS 5 |
| 6984 | #define AES_XTS_DEC_TEST_VECTORS 5 |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 6985 | #define AES_CTR_ENC_TEST_VECTORS 3 |
| 6986 | #define AES_CTR_DEC_TEST_VECTORS 3 |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 6987 | #define AES_OFB_ENC_TEST_VECTORS 1 |
| 6988 | #define AES_OFB_DEC_TEST_VECTORS 1 |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 6989 | #define AES_CTR_3686_ENC_TEST_VECTORS 7 |
| 6990 | #define AES_CTR_3686_DEC_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6991 | #define AES_GCM_ENC_TEST_VECTORS 9 |
| 6992 | #define AES_GCM_DEC_TEST_VECTORS 8 |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 6993 | #define AES_GCM_4106_ENC_TEST_VECTORS 7 |
| 6994 | #define AES_GCM_4106_DEC_TEST_VECTORS 7 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6995 | #define AES_CCM_ENC_TEST_VECTORS 7 |
| 6996 | #define AES_CCM_DEC_TEST_VECTORS 7 |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 6997 | #define AES_CCM_4309_ENC_TEST_VECTORS 7 |
| 6998 | #define AES_CCM_4309_DEC_TEST_VECTORS 10 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6999 | |
| 7000 | static struct cipher_testvec aes_enc_tv_template[] = { |
| 7001 | { /* From FIPS-197 */ |
| 7002 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7003 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7004 | .klen = 16, |
| 7005 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7006 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7007 | .ilen = 16, |
| 7008 | .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 7009 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 7010 | .rlen = 16, |
| 7011 | }, { |
| 7012 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7013 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7014 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 7015 | .klen = 24, |
| 7016 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7017 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7018 | .ilen = 16, |
| 7019 | .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 7020 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 7021 | .rlen = 16, |
| 7022 | }, { |
| 7023 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7024 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7025 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7026 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 7027 | .klen = 32, |
| 7028 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7029 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7030 | .ilen = 16, |
| 7031 | .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 7032 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 7033 | .rlen = 16, |
| 7034 | }, |
| 7035 | }; |
| 7036 | |
| 7037 | static struct cipher_testvec aes_dec_tv_template[] = { |
| 7038 | { /* From FIPS-197 */ |
| 7039 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7040 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7041 | .klen = 16, |
| 7042 | .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 7043 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 7044 | .ilen = 16, |
| 7045 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7046 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7047 | .rlen = 16, |
| 7048 | }, { |
| 7049 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7050 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7051 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 7052 | .klen = 24, |
| 7053 | .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 7054 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 7055 | .ilen = 16, |
| 7056 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7057 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7058 | .rlen = 16, |
| 7059 | }, { |
| 7060 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7061 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7062 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7063 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 7064 | .klen = 32, |
| 7065 | .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 7066 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 7067 | .ilen = 16, |
| 7068 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7069 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7070 | .rlen = 16, |
| 7071 | }, |
| 7072 | }; |
| 7073 | |
| 7074 | static struct cipher_testvec aes_cbc_enc_tv_template[] = { |
| 7075 | { /* From RFC 3602 */ |
| 7076 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 7077 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 7078 | .klen = 16, |
| 7079 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 7080 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 7081 | .input = "Single block msg", |
| 7082 | .ilen = 16, |
| 7083 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 7084 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 7085 | .rlen = 16, |
| 7086 | }, { |
| 7087 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 7088 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 7089 | .klen = 16, |
| 7090 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 7091 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 7092 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7093 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7094 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7095 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 7096 | .ilen = 32, |
| 7097 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 7098 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 7099 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 7100 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 7101 | .rlen = 32, |
| 7102 | }, { /* From NIST SP800-38A */ |
| 7103 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 7104 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 7105 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 7106 | .klen = 24, |
| 7107 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7108 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7109 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7110 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7111 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7112 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7113 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7114 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7115 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7116 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7117 | .ilen = 64, |
| 7118 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 7119 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 7120 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 7121 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 7122 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 7123 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 7124 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 7125 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 7126 | .rlen = 64, |
| 7127 | }, { |
| 7128 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 7129 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 7130 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 7131 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 7132 | .klen = 32, |
| 7133 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7134 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7135 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7136 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7137 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7138 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7139 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7140 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7141 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7142 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7143 | .ilen = 64, |
| 7144 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 7145 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 7146 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 7147 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 7148 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 7149 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 7150 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 7151 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 7152 | .rlen = 64, |
| 7153 | }, |
| 7154 | }; |
| 7155 | |
| 7156 | static struct cipher_testvec aes_cbc_dec_tv_template[] = { |
| 7157 | { /* From RFC 3602 */ |
| 7158 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 7159 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 7160 | .klen = 16, |
| 7161 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 7162 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 7163 | .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 7164 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 7165 | .ilen = 16, |
| 7166 | .result = "Single block msg", |
| 7167 | .rlen = 16, |
| 7168 | }, { |
| 7169 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 7170 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 7171 | .klen = 16, |
| 7172 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 7173 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 7174 | .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 7175 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 7176 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 7177 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 7178 | .ilen = 32, |
| 7179 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7180 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7181 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7182 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 7183 | .rlen = 32, |
| 7184 | }, { /* From NIST SP800-38A */ |
| 7185 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 7186 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 7187 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 7188 | .klen = 24, |
| 7189 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7190 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7191 | .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 7192 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 7193 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 7194 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 7195 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 7196 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 7197 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 7198 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 7199 | .ilen = 64, |
| 7200 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7201 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7202 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7203 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7204 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7205 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7206 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7207 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7208 | .rlen = 64, |
| 7209 | }, { |
| 7210 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 7211 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 7212 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 7213 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 7214 | .klen = 32, |
| 7215 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7216 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7217 | .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 7218 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 7219 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 7220 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 7221 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 7222 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 7223 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 7224 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 7225 | .ilen = 64, |
| 7226 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7227 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7228 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7229 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7230 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7231 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7232 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7233 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7234 | .rlen = 64, |
| 7235 | }, |
| 7236 | }; |
| 7237 | |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 7238 | static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_template[] = { |
| 7239 | { /* RFC 3602 Case 1 */ |
| 7240 | #ifdef __LITTLE_ENDIAN |
| 7241 | .key = "\x08\x00" /* rta length */ |
| 7242 | "\x01\x00" /* rta type */ |
| 7243 | #else |
| 7244 | .key = "\x00\x08" /* rta length */ |
| 7245 | "\x00\x01" /* rta type */ |
| 7246 | #endif |
| 7247 | "\x00\x00\x00\x10" /* enc key length */ |
| 7248 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7249 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7250 | "\x00\x00\x00\x00" |
| 7251 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 7252 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 7253 | .klen = 8 + 20 + 16, |
| 7254 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 7255 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 7256 | .input = "Single block msg", |
| 7257 | .ilen = 16, |
| 7258 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 7259 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 7260 | "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c" |
| 7261 | "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5" |
| 7262 | "\x03\x71\xa2\x06", |
| 7263 | .rlen = 16 + 20, |
| 7264 | }, { /* RFC 3602 Case 2 */ |
| 7265 | #ifdef __LITTLE_ENDIAN |
| 7266 | .key = "\x08\x00" /* rta length */ |
| 7267 | "\x01\x00" /* rta type */ |
| 7268 | #else |
| 7269 | .key = "\x00\x08" /* rta length */ |
| 7270 | "\x00\x01" /* rta type */ |
| 7271 | #endif |
| 7272 | "\x00\x00\x00\x10" /* enc key length */ |
| 7273 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 7274 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 7275 | "\x30\x31\x32\x33" |
| 7276 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 7277 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 7278 | .klen = 8 + 20 + 16, |
| 7279 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 7280 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 7281 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7282 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7283 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7284 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 7285 | .ilen = 32, |
| 7286 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 7287 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 7288 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 7289 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 7290 | "\xad\x9b\x4c\x5c\x85\xe1\xda\xae" |
| 7291 | "\xee\x81\x4e\xd7\xdb\x74\xcf\x58" |
| 7292 | "\x65\x39\xf8\xde", |
| 7293 | .rlen = 32 + 20, |
| 7294 | }, { /* RFC 3602 Case 3 */ |
| 7295 | #ifdef __LITTLE_ENDIAN |
| 7296 | .key = "\x08\x00" /* rta length */ |
| 7297 | "\x01\x00" /* rta type */ |
| 7298 | #else |
| 7299 | .key = "\x00\x08" /* rta length */ |
| 7300 | "\x00\x01" /* rta type */ |
| 7301 | #endif |
| 7302 | "\x00\x00\x00\x10" /* enc key length */ |
| 7303 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7304 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7305 | "\x22\x33\x44\x55" |
| 7306 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 7307 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 7308 | .klen = 8 + 20 + 16, |
| 7309 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 7310 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 7311 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 7312 | .ilen = 48, |
| 7313 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 7314 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 7315 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 7316 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 7317 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 7318 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 7319 | "\xc2\xec\x0c\xf8\x7f\x05\xba\xca" |
| 7320 | "\xff\xee\x4c\xd0\x93\xe6\x36\x7f" |
| 7321 | "\x8d\x62\xf2\x1e", |
| 7322 | .rlen = 48 + 20, |
| 7323 | }, { /* RFC 3602 Case 4 */ |
| 7324 | #ifdef __LITTLE_ENDIAN |
| 7325 | .key = "\x08\x00" /* rta length */ |
| 7326 | "\x01\x00" /* rta type */ |
| 7327 | #else |
| 7328 | .key = "\x00\x08" /* rta length */ |
| 7329 | "\x00\x01" /* rta type */ |
| 7330 | #endif |
| 7331 | "\x00\x00\x00\x10" /* enc key length */ |
| 7332 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7333 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7334 | "\x22\x33\x44\x55" |
| 7335 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 7336 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 7337 | .klen = 8 + 20 + 16, |
| 7338 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 7339 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 7340 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 7341 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 7342 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 7343 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 7344 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 7345 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 7346 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 7347 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 7348 | .ilen = 64, |
| 7349 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 7350 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 7351 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 7352 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 7353 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 7354 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 7355 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 7356 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 7357 | "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d" |
| 7358 | "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d" |
| 7359 | "\x1d\xbe\xc6\xe9", |
| 7360 | .rlen = 64 + 20, |
| 7361 | }, { /* RFC 3602 Case 5 */ |
| 7362 | #ifdef __LITTLE_ENDIAN |
| 7363 | .key = "\x08\x00" /* rta length */ |
| 7364 | "\x01\x00" /* rta type */ |
| 7365 | #else |
| 7366 | .key = "\x00\x08" /* rta length */ |
| 7367 | "\x00\x01" /* rta type */ |
| 7368 | #endif |
| 7369 | "\x00\x00\x00\x10" /* enc key length */ |
| 7370 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7371 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7372 | "\x22\x33\x44\x55" |
| 7373 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 7374 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 7375 | .klen = 8 + 20 + 16, |
| 7376 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 7377 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 7378 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01", |
| 7379 | .alen = 8, |
| 7380 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 7381 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 7382 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7383 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7384 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 7385 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 7386 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 7387 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 7388 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 7389 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 7390 | .ilen = 80, |
| 7391 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 7392 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 7393 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 7394 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 7395 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 7396 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 7397 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 7398 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 7399 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 7400 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 7401 | "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c" |
| 7402 | "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8" |
| 7403 | "\x85\xe1\x59\xf7", |
| 7404 | .rlen = 80 + 20, |
| 7405 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 7406 | #ifdef __LITTLE_ENDIAN |
| 7407 | .key = "\x08\x00" /* rta length */ |
| 7408 | "\x01\x00" /* rta type */ |
| 7409 | #else |
| 7410 | .key = "\x00\x08" /* rta length */ |
| 7411 | "\x00\x01" /* rta type */ |
| 7412 | #endif |
| 7413 | "\x00\x00\x00\x18" /* enc key length */ |
| 7414 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7415 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7416 | "\x22\x33\x44\x55" |
| 7417 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 7418 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 7419 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 7420 | .klen = 8 + 20 + 24, |
| 7421 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7422 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7423 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7424 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7425 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7426 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7427 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7428 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7429 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7430 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7431 | .ilen = 64, |
| 7432 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 7433 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 7434 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 7435 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 7436 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 7437 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 7438 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 7439 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 7440 | "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4" |
| 7441 | "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36" |
| 7442 | "\x47\x4c\xfc\x36", |
| 7443 | .rlen = 64 + 20, |
| 7444 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 7445 | #ifdef __LITTLE_ENDIAN |
| 7446 | .key = "\x08\x00" /* rta length */ |
| 7447 | "\x01\x00" /* rta type */ |
| 7448 | #else |
| 7449 | .key = "\x00\x08" /* rta length */ |
| 7450 | "\x00\x01" /* rta type */ |
| 7451 | #endif |
| 7452 | "\x00\x00\x00\x20" /* enc key length */ |
| 7453 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7454 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7455 | "\x22\x33\x44\x55" |
| 7456 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 7457 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 7458 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 7459 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 7460 | .klen = 8 + 20 + 32, |
| 7461 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7462 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7463 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7464 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7465 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7466 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7467 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7468 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7469 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7470 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7471 | .ilen = 64, |
| 7472 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 7473 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 7474 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 7475 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 7476 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 7477 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 7478 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 7479 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 7480 | "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde" |
| 7481 | "\x1b\x9f\xc6\x81\x26\x43\x4a\x87" |
| 7482 | "\x51\xee\xd6\x4e", |
| 7483 | .rlen = 64 + 20, |
| 7484 | }, |
| 7485 | }; |
| 7486 | |
| 7487 | static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_template[] = { |
| 7488 | { /* RFC 3602 Case 1 */ |
| 7489 | #ifdef __LITTLE_ENDIAN |
| 7490 | .key = "\x08\x00" /* rta length */ |
| 7491 | "\x01\x00" /* rta type */ |
| 7492 | #else |
| 7493 | .key = "\x00\x08" /* rta length */ |
| 7494 | "\x00\x01" /* rta type */ |
| 7495 | #endif |
| 7496 | "\x00\x00\x00\x10" /* enc key length */ |
| 7497 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7498 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7499 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7500 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7501 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 7502 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 7503 | .klen = 8 + 32 + 16, |
| 7504 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 7505 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 7506 | .input = "Single block msg", |
| 7507 | .ilen = 16, |
| 7508 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 7509 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 7510 | "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc" |
| 7511 | "\x38\x06\x38\x51\xb4\xb8\xf3\x5b" |
| 7512 | "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5" |
| 7513 | "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5", |
| 7514 | .rlen = 16 + 32, |
| 7515 | }, { /* RFC 3602 Case 2 */ |
| 7516 | #ifdef __LITTLE_ENDIAN |
| 7517 | .key = "\x08\x00" /* rta length */ |
| 7518 | "\x01\x00" /* rta type */ |
| 7519 | #else |
| 7520 | .key = "\x00\x08" /* rta length */ |
| 7521 | "\x00\x01" /* rta type */ |
| 7522 | #endif |
| 7523 | "\x00\x00\x00\x10" /* enc key length */ |
| 7524 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 7525 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 7526 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 7527 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 7528 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 7529 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 7530 | .klen = 8 + 32 + 16, |
| 7531 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 7532 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 7533 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7534 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7535 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7536 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 7537 | .ilen = 32, |
| 7538 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 7539 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 7540 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 7541 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 7542 | "\xf5\x33\x53\xf3\x68\x85\x2a\x99" |
| 7543 | "\x0e\x06\x58\x8f\xba\xf6\x06\xda" |
| 7544 | "\x49\x69\x0d\x5b\xd4\x36\x06\x62" |
| 7545 | "\x35\x5e\x54\x58\x53\x4d\xdf\xbf", |
| 7546 | .rlen = 32 + 32, |
| 7547 | }, { /* RFC 3602 Case 3 */ |
| 7548 | #ifdef __LITTLE_ENDIAN |
| 7549 | .key = "\x08\x00" /* rta length */ |
| 7550 | "\x01\x00" /* rta type */ |
| 7551 | #else |
| 7552 | .key = "\x00\x08" /* rta length */ |
| 7553 | "\x00\x01" /* rta type */ |
| 7554 | #endif |
| 7555 | "\x00\x00\x00\x10" /* enc key length */ |
| 7556 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7557 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7558 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7559 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7560 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 7561 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 7562 | .klen = 8 + 32 + 16, |
| 7563 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 7564 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 7565 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 7566 | .ilen = 48, |
| 7567 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 7568 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 7569 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 7570 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 7571 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 7572 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 7573 | "\x68\xb9\x3e\x90\x38\xa0\x88\x01" |
| 7574 | "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d" |
| 7575 | "\x24\x78\xfb\xbe\x02\xe0\x4f\x40" |
| 7576 | "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a", |
| 7577 | .rlen = 48 + 32, |
| 7578 | }, { /* RFC 3602 Case 4 */ |
| 7579 | #ifdef __LITTLE_ENDIAN |
| 7580 | .key = "\x08\x00" /* rta length */ |
| 7581 | "\x01\x00" /* rta type */ |
| 7582 | #else |
| 7583 | .key = "\x00\x08" /* rta length */ |
| 7584 | "\x00\x01" /* rta type */ |
| 7585 | #endif |
| 7586 | "\x00\x00\x00\x10" /* enc key length */ |
| 7587 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7588 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7589 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7590 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7591 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 7592 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 7593 | .klen = 8 + 32 + 16, |
| 7594 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 7595 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 7596 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 7597 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 7598 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 7599 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 7600 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 7601 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 7602 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 7603 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 7604 | .ilen = 64, |
| 7605 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 7606 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 7607 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 7608 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 7609 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 7610 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 7611 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 7612 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 7613 | "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2" |
| 7614 | "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8" |
| 7615 | "\x3f\x54\xe2\x49\x39\xe3\x71\x25" |
| 7616 | "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64", |
| 7617 | .rlen = 64 + 32, |
| 7618 | }, { /* RFC 3602 Case 5 */ |
| 7619 | #ifdef __LITTLE_ENDIAN |
| 7620 | .key = "\x08\x00" /* rta length */ |
| 7621 | "\x01\x00" /* rta type */ |
| 7622 | #else |
| 7623 | .key = "\x00\x08" /* rta length */ |
| 7624 | "\x00\x01" /* rta type */ |
| 7625 | #endif |
| 7626 | "\x00\x00\x00\x10" /* enc key length */ |
| 7627 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7628 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7629 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7630 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7631 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 7632 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 7633 | .klen = 8 + 32 + 16, |
| 7634 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 7635 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 7636 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01", |
| 7637 | .alen = 8, |
| 7638 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 7639 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 7640 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7641 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7642 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 7643 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 7644 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 7645 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 7646 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 7647 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 7648 | .ilen = 80, |
| 7649 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 7650 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 7651 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 7652 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 7653 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 7654 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 7655 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 7656 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 7657 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 7658 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 7659 | "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8" |
| 7660 | "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7" |
| 7661 | "\x73\xc3\x46\x20\x2c\xb1\xef\x68" |
| 7662 | "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf", |
| 7663 | .rlen = 80 + 32, |
| 7664 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 7665 | #ifdef __LITTLE_ENDIAN |
| 7666 | .key = "\x08\x00" /* rta length */ |
| 7667 | "\x01\x00" /* rta type */ |
| 7668 | #else |
| 7669 | .key = "\x00\x08" /* rta length */ |
| 7670 | "\x00\x01" /* rta type */ |
| 7671 | #endif |
| 7672 | "\x00\x00\x00\x18" /* enc key length */ |
| 7673 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7674 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7675 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7676 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7677 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 7678 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 7679 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 7680 | .klen = 8 + 32 + 24, |
| 7681 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7682 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7683 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7684 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7685 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7686 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7687 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7688 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7689 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7690 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7691 | .ilen = 64, |
| 7692 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 7693 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 7694 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 7695 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 7696 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 7697 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 7698 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 7699 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 7700 | "\x2f\xee\x5f\xdb\x66\xfe\x79\x09" |
| 7701 | "\x61\x81\x31\xea\x5b\x3d\x8e\xfb" |
| 7702 | "\xca\x71\x85\x93\xf7\x85\x55\x8b" |
| 7703 | "\x7a\xe4\x94\xca\x8b\xba\x19\x33", |
| 7704 | .rlen = 64 + 32, |
| 7705 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 7706 | #ifdef __LITTLE_ENDIAN |
| 7707 | .key = "\x08\x00" /* rta length */ |
| 7708 | "\x01\x00" /* rta type */ |
| 7709 | #else |
| 7710 | .key = "\x00\x08" /* rta length */ |
| 7711 | "\x00\x01" /* rta type */ |
| 7712 | #endif |
| 7713 | "\x00\x00\x00\x20" /* enc key length */ |
| 7714 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7715 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7716 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7717 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7718 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 7719 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 7720 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 7721 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 7722 | .klen = 8 + 32 + 32, |
| 7723 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7724 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7725 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7726 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7727 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7728 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7729 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7730 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7731 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7732 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7733 | .ilen = 64, |
| 7734 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 7735 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 7736 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 7737 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 7738 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 7739 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 7740 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 7741 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 7742 | "\x24\x29\xed\xc2\x31\x49\xdb\xb1" |
| 7743 | "\x8f\x74\xbd\x17\x92\x03\xbe\x8f" |
| 7744 | "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0" |
| 7745 | "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f", |
| 7746 | .rlen = 64 + 32, |
| 7747 | }, |
| 7748 | }; |
| 7749 | |
| 7750 | static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_template[] = { |
| 7751 | { /* RFC 3602 Case 1 */ |
| 7752 | #ifdef __LITTLE_ENDIAN |
| 7753 | .key = "\x08\x00" /* rta length */ |
| 7754 | "\x01\x00" /* rta type */ |
| 7755 | #else |
| 7756 | .key = "\x00\x08" /* rta length */ |
| 7757 | "\x00\x01" /* rta type */ |
| 7758 | #endif |
| 7759 | "\x00\x00\x00\x10" /* enc key length */ |
| 7760 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7761 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7762 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7763 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7764 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7765 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7766 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7767 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 7768 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 7769 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 7770 | .klen = 8 + 64 + 16, |
| 7771 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 7772 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 7773 | .input = "Single block msg", |
| 7774 | .ilen = 16, |
| 7775 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 7776 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 7777 | "\x3f\xdc\xad\x90\x03\x63\x5e\x68" |
| 7778 | "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7" |
| 7779 | "\x19\x6e\x03\x75\x2b\xa1\x62\xce" |
| 7780 | "\xe0\xc6\x96\x75\xb2\x14\xca\x96" |
| 7781 | "\xec\xbd\x50\x08\x07\x64\x1a\x49" |
| 7782 | "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2" |
| 7783 | "\xfa\x20\x89\xdd\x9c\xac\x9e\x16" |
| 7784 | "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a", |
| 7785 | .rlen = 16 + 64, |
| 7786 | }, { /* RFC 3602 Case 2 */ |
| 7787 | #ifdef __LITTLE_ENDIAN |
| 7788 | .key = "\x08\x00" /* rta length */ |
| 7789 | "\x01\x00" /* rta type */ |
| 7790 | #else |
| 7791 | .key = "\x00\x08" /* rta length */ |
| 7792 | "\x00\x01" /* rta type */ |
| 7793 | #endif |
| 7794 | "\x00\x00\x00\x10" /* enc key length */ |
| 7795 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 7796 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 7797 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 7798 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 7799 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 7800 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 7801 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 7802 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 7803 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 7804 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 7805 | .klen = 8 + 64 + 16, |
| 7806 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 7807 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 7808 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7809 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7810 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7811 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 7812 | .ilen = 32, |
| 7813 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 7814 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 7815 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 7816 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 7817 | "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef" |
| 7818 | "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41" |
| 7819 | "\x03\x9f\xc4\x64\x7f\x01\x42\x9b" |
| 7820 | "\x0e\x1b\xea\xef\xbc\x88\x19\x5e" |
| 7821 | "\x31\x7e\xc2\x95\xfc\x09\x32\x0a" |
| 7822 | "\x46\x32\x7c\x41\x9c\x59\x3e\xe9" |
| 7823 | "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8" |
| 7824 | "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d", |
| 7825 | .rlen = 32 + 64, |
| 7826 | }, { /* RFC 3602 Case 3 */ |
| 7827 | #ifdef __LITTLE_ENDIAN |
| 7828 | .key = "\x08\x00" /* rta length */ |
| 7829 | "\x01\x00" /* rta type */ |
| 7830 | #else |
| 7831 | .key = "\x00\x08" /* rta length */ |
| 7832 | "\x00\x01" /* rta type */ |
| 7833 | #endif |
| 7834 | "\x00\x00\x00\x10" /* enc key length */ |
| 7835 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7836 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7837 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7838 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7839 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 7840 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 7841 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 7842 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 7843 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 7844 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 7845 | .klen = 8 + 64 + 16, |
| 7846 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 7847 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 7848 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 7849 | .ilen = 48, |
| 7850 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 7851 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 7852 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 7853 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 7854 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 7855 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 7856 | "\x64\x19\x17\x5b\x57\xe0\x21\x0f" |
| 7857 | "\xca\xdb\xa1\x26\x38\x14\xa2\x69" |
| 7858 | "\xdb\x54\x67\x80\xc0\x54\xe0\xfd" |
| 7859 | "\x3e\x91\xe7\x91\x7f\x13\x38\x44" |
| 7860 | "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41" |
| 7861 | "\x08\xea\x29\x6c\x74\x67\x3f\xb0" |
| 7862 | "\xac\x7f\x5c\x1d\xf5\xee\x22\x66" |
| 7863 | "\x27\xa6\xb6\x13\xba\xba\xf0\xc2", |
| 7864 | .rlen = 48 + 64, |
| 7865 | }, { /* RFC 3602 Case 4 */ |
| 7866 | #ifdef __LITTLE_ENDIAN |
| 7867 | .key = "\x08\x00" /* rta length */ |
| 7868 | "\x01\x00" /* rta type */ |
| 7869 | #else |
| 7870 | .key = "\x00\x08" /* rta length */ |
| 7871 | "\x00\x01" /* rta type */ |
| 7872 | #endif |
| 7873 | "\x00\x00\x00\x10" /* enc key length */ |
| 7874 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7875 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7876 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7877 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7878 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 7879 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 7880 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 7881 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 7882 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 7883 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 7884 | .klen = 8 + 64 + 16, |
| 7885 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 7886 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 7887 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 7888 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 7889 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 7890 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 7891 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 7892 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 7893 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 7894 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 7895 | .ilen = 64, |
| 7896 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 7897 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 7898 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 7899 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 7900 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 7901 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 7902 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 7903 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 7904 | "\x82\xcd\x42\x28\x21\x20\x15\xcc" |
| 7905 | "\xb7\xb2\x48\x40\xc7\x64\x41\x3a" |
| 7906 | "\x61\x32\x82\x85\xcf\x27\xed\xb4" |
| 7907 | "\xe4\x68\xa2\xf5\x79\x26\x27\xb2" |
| 7908 | "\x51\x67\x6a\xc4\xf0\x66\x55\x50" |
| 7909 | "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c" |
| 7910 | "\x62\x98\x14\xd7\x2f\x37\x8d\xdf" |
| 7911 | "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda", |
| 7912 | .rlen = 64 + 64, |
| 7913 | }, { /* RFC 3602 Case 5 */ |
| 7914 | #ifdef __LITTLE_ENDIAN |
| 7915 | .key = "\x08\x00" /* rta length */ |
| 7916 | "\x01\x00" /* rta type */ |
| 7917 | #else |
| 7918 | .key = "\x00\x08" /* rta length */ |
| 7919 | "\x00\x01" /* rta type */ |
| 7920 | #endif |
| 7921 | "\x00\x00\x00\x10" /* enc key length */ |
| 7922 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7923 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7924 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7925 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7926 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 7927 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 7928 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 7929 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 7930 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 7931 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 7932 | .klen = 8 + 64 + 16, |
| 7933 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 7934 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 7935 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01", |
| 7936 | .alen = 8, |
| 7937 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 7938 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 7939 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 7940 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 7941 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 7942 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 7943 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 7944 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 7945 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 7946 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 7947 | .ilen = 80, |
| 7948 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 7949 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 7950 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 7951 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 7952 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 7953 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 7954 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 7955 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 7956 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 7957 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 7958 | "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf" |
| 7959 | "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf" |
| 7960 | "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f" |
| 7961 | "\x14\xd9\x3d\x53\x8e\x12\xb3\x00" |
| 7962 | "\x4c\x0a\x4e\x32\x40\x43\x88\xce" |
| 7963 | "\x92\x26\xc1\x76\x20\x11\xeb\xba" |
| 7964 | "\x62\x4f\x9a\x62\x25\xc3\x75\x80" |
| 7965 | "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14", |
| 7966 | .rlen = 80 + 64, |
| 7967 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 7968 | #ifdef __LITTLE_ENDIAN |
| 7969 | .key = "\x08\x00" /* rta length */ |
| 7970 | "\x01\x00" /* rta type */ |
| 7971 | #else |
| 7972 | .key = "\x00\x08" /* rta length */ |
| 7973 | "\x00\x01" /* rta type */ |
| 7974 | #endif |
| 7975 | "\x00\x00\x00\x18" /* enc key length */ |
| 7976 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 7977 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 7978 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 7979 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 7980 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 7981 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 7982 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 7983 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 7984 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 7985 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 7986 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 7987 | .klen = 8 + 64 + 24, |
| 7988 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 7989 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 7990 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 7991 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 7992 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 7993 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 7994 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 7995 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 7996 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 7997 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 7998 | .ilen = 64, |
| 7999 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 8000 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 8001 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 8002 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 8003 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 8004 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 8005 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 8006 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 8007 | "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99" |
| 8008 | "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56" |
| 8009 | "\xbb\x21\xd2\x7d\x93\x11\x17\x91" |
| 8010 | "\xc4\x83\xfd\x0a\xea\x71\xfe\x77" |
| 8011 | "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35" |
| 8012 | "\xba\x03\xd5\x32\xfa\x5f\x41\x58" |
| 8013 | "\x8d\x43\x98\xa7\x94\x16\x07\x02" |
| 8014 | "\x0f\xb6\x81\x50\x28\x95\x2e\x75", |
| 8015 | .rlen = 64 + 64, |
| 8016 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 8017 | #ifdef __LITTLE_ENDIAN |
| 8018 | .key = "\x08\x00" /* rta length */ |
| 8019 | "\x01\x00" /* rta type */ |
| 8020 | #else |
| 8021 | .key = "\x00\x08" /* rta length */ |
| 8022 | "\x00\x01" /* rta type */ |
| 8023 | #endif |
| 8024 | "\x00\x00\x00\x20" /* enc key length */ |
| 8025 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 8026 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 8027 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 8028 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 8029 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 8030 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 8031 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 8032 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 8033 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 8034 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 8035 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 8036 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 8037 | .klen = 8 + 64 + 32, |
| 8038 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8039 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 8040 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 8041 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 8042 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 8043 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 8044 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 8045 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 8046 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 8047 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 8048 | .ilen = 64, |
| 8049 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 8050 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 8051 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 8052 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 8053 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 8054 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 8055 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 8056 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 8057 | "\xb2\x27\x69\x7f\x45\x64\x79\x2b" |
| 8058 | "\xb7\xb8\x4c\xd4\x75\x94\x68\x40" |
| 8059 | "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b" |
| 8060 | "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d" |
| 8061 | "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c" |
| 8062 | "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c" |
| 8063 | "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2" |
| 8064 | "\x2c\xb1\x62\x2c\x10\xca\xf1\x21", |
| 8065 | .rlen = 64 + 64, |
| 8066 | }, |
| 8067 | }; |
| 8068 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8069 | static struct cipher_testvec aes_lrw_enc_tv_template[] = { |
| 8070 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 8071 | { /* LRW-32-AES 1 */ |
| 8072 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 8073 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 8074 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 8075 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 8076 | .klen = 32, |
| 8077 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8078 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8079 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8080 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8081 | .ilen = 16, |
| 8082 | .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 8083 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 8084 | .rlen = 16, |
| 8085 | }, { /* LRW-32-AES 2 */ |
| 8086 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 8087 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 8088 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 8089 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 8090 | .klen = 32, |
| 8091 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8092 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 8093 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8094 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8095 | .ilen = 16, |
| 8096 | .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 8097 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 8098 | .rlen = 16, |
| 8099 | }, { /* LRW-32-AES 3 */ |
| 8100 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 8101 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 8102 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 8103 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 8104 | .klen = 32, |
| 8105 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8106 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8107 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8108 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8109 | .ilen = 16, |
| 8110 | .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 8111 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 8112 | .rlen = 16, |
| 8113 | }, { /* LRW-32-AES 4 */ |
| 8114 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 8115 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 8116 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 8117 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 8118 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 8119 | .klen = 40, |
| 8120 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8121 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8122 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8123 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8124 | .ilen = 16, |
| 8125 | .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 8126 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 8127 | .rlen = 16, |
| 8128 | }, { /* LRW-32-AES 5 */ |
| 8129 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 8130 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 8131 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 8132 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 8133 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 8134 | .klen = 40, |
| 8135 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8136 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8137 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8138 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8139 | .ilen = 16, |
| 8140 | .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 8141 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 8142 | .rlen = 16, |
| 8143 | }, { /* LRW-32-AES 6 */ |
| 8144 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8145 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8146 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8147 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8148 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8149 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8150 | .klen = 48, |
| 8151 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8152 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8153 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8154 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8155 | .ilen = 16, |
| 8156 | .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 8157 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 8158 | .rlen = 16, |
| 8159 | }, { /* LRW-32-AES 7 */ |
| 8160 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 8161 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 8162 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 8163 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 8164 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 8165 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 8166 | .klen = 48, |
| 8167 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8168 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8169 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8170 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8171 | .ilen = 16, |
| 8172 | .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 8173 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 8174 | .rlen = 16, |
| 8175 | }, { |
| 8176 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 8177 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8178 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8179 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8180 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8181 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8182 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8183 | .klen = 48, |
| 8184 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8185 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8186 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 8187 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 8188 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 8189 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 8190 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 8191 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 8192 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 8193 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 8194 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 8195 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 8196 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 8197 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 8198 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 8199 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 8200 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 8201 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 8202 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 8203 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 8204 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 8205 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 8206 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 8207 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 8208 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 8209 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 8210 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 8211 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 8212 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 8213 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 8214 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 8215 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 8216 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 8217 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 8218 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 8219 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 8220 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 8221 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 8222 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 8223 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 8224 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 8225 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 8226 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 8227 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 8228 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 8229 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 8230 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 8231 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 8232 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 8233 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 8234 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 8235 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 8236 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 8237 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 8238 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 8239 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 8240 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 8241 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 8242 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 8243 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 8244 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 8245 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 8246 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 8247 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 8248 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 8249 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 8250 | .ilen = 512, |
| 8251 | .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 8252 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 8253 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 8254 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 8255 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 8256 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 8257 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 8258 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 8259 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 8260 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 8261 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 8262 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 8263 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 8264 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 8265 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 8266 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 8267 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 8268 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 8269 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 8270 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 8271 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 8272 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 8273 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 8274 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 8275 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 8276 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 8277 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 8278 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 8279 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 8280 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 8281 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 8282 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 8283 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 8284 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 8285 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 8286 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 8287 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 8288 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 8289 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 8290 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 8291 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 8292 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 8293 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 8294 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 8295 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 8296 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 8297 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 8298 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 8299 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 8300 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 8301 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 8302 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 8303 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 8304 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 8305 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 8306 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 8307 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 8308 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 8309 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 8310 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 8311 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 8312 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 8313 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 8314 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 8315 | .rlen = 512, |
| 8316 | } |
| 8317 | }; |
| 8318 | |
| 8319 | static struct cipher_testvec aes_lrw_dec_tv_template[] = { |
| 8320 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 8321 | /* same as enc vectors with input and result reversed */ |
| 8322 | { /* LRW-32-AES 1 */ |
| 8323 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 8324 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 8325 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 8326 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 8327 | .klen = 32, |
| 8328 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8329 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8330 | .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 8331 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 8332 | .ilen = 16, |
| 8333 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8334 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8335 | .rlen = 16, |
| 8336 | }, { /* LRW-32-AES 2 */ |
| 8337 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 8338 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 8339 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 8340 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 8341 | .klen = 32, |
| 8342 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8343 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 8344 | .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 8345 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 8346 | .ilen = 16, |
| 8347 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8348 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8349 | .rlen = 16, |
| 8350 | }, { /* LRW-32-AES 3 */ |
| 8351 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 8352 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 8353 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 8354 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 8355 | .klen = 32, |
| 8356 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8357 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8358 | .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 8359 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 8360 | .ilen = 16, |
| 8361 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8362 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8363 | .rlen = 16, |
| 8364 | }, { /* LRW-32-AES 4 */ |
| 8365 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 8366 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 8367 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 8368 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 8369 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 8370 | .klen = 40, |
| 8371 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8372 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8373 | .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 8374 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 8375 | .ilen = 16, |
| 8376 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8377 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8378 | .rlen = 16, |
| 8379 | }, { /* LRW-32-AES 5 */ |
| 8380 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 8381 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 8382 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 8383 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 8384 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 8385 | .klen = 40, |
| 8386 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8387 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8388 | .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 8389 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 8390 | .ilen = 16, |
| 8391 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8392 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8393 | .rlen = 16, |
| 8394 | }, { /* LRW-32-AES 6 */ |
| 8395 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8396 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8397 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8398 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8399 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8400 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8401 | .klen = 48, |
| 8402 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8403 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8404 | .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 8405 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 8406 | .ilen = 16, |
| 8407 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8408 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8409 | .rlen = 16, |
| 8410 | }, { /* LRW-32-AES 7 */ |
| 8411 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 8412 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 8413 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 8414 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 8415 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 8416 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 8417 | .klen = 48, |
| 8418 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8419 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8420 | .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 8421 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 8422 | .ilen = 16, |
| 8423 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8424 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8425 | .rlen = 16, |
| 8426 | }, { |
| 8427 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 8428 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8429 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8430 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8431 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8432 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8433 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8434 | .klen = 48, |
| 8435 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8436 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8437 | .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 8438 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 8439 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 8440 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 8441 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 8442 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 8443 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 8444 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 8445 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 8446 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 8447 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 8448 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 8449 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 8450 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 8451 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 8452 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 8453 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 8454 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 8455 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 8456 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 8457 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 8458 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 8459 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 8460 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 8461 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 8462 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 8463 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 8464 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 8465 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 8466 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 8467 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 8468 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 8469 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 8470 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 8471 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 8472 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 8473 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 8474 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 8475 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 8476 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 8477 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 8478 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 8479 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 8480 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 8481 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 8482 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 8483 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 8484 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 8485 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 8486 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 8487 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 8488 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 8489 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 8490 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 8491 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 8492 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 8493 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 8494 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 8495 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 8496 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 8497 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 8498 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 8499 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 8500 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 8501 | .ilen = 512, |
| 8502 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 8503 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 8504 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 8505 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 8506 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 8507 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 8508 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 8509 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 8510 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 8511 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 8512 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 8513 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 8514 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 8515 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 8516 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 8517 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 8518 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 8519 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 8520 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 8521 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 8522 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 8523 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 8524 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 8525 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 8526 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 8527 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 8528 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 8529 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 8530 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 8531 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 8532 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 8533 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 8534 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 8535 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 8536 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 8537 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 8538 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 8539 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 8540 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 8541 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 8542 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 8543 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 8544 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 8545 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 8546 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 8547 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 8548 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 8549 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 8550 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 8551 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 8552 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 8553 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 8554 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 8555 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 8556 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 8557 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 8558 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 8559 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 8560 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 8561 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 8562 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 8563 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 8564 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 8565 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 8566 | .rlen = 512, |
| 8567 | } |
| 8568 | }; |
| 8569 | |
| 8570 | static struct cipher_testvec aes_xts_enc_tv_template[] = { |
| 8571 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 8572 | { /* XTS-AES 1 */ |
| 8573 | .key = "\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 | .klen = 32, |
| 8578 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8579 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8580 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8581 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8582 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8583 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8584 | .ilen = 32, |
| 8585 | .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 8586 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 8587 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 8588 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 8589 | .rlen = 32, |
| 8590 | }, { /* XTS-AES 2 */ |
| 8591 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8592 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8593 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8594 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8595 | .klen = 32, |
| 8596 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8597 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8598 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8599 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8600 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8601 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8602 | .ilen = 32, |
| 8603 | .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 8604 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 8605 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 8606 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 8607 | .rlen = 32, |
| 8608 | }, { /* XTS-AES 3 */ |
| 8609 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 8610 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 8611 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8612 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8613 | .klen = 32, |
| 8614 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8615 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8616 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8617 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8618 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8619 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8620 | .ilen = 32, |
| 8621 | .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 8622 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 8623 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 8624 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 8625 | .rlen = 32, |
| 8626 | }, { /* XTS-AES 4 */ |
| 8627 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 8628 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 8629 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 8630 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 8631 | .klen = 32, |
| 8632 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8633 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8634 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8635 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8636 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8637 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8638 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8639 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8640 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8641 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8642 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8643 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8644 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8645 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8646 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8647 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8648 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8649 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8650 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8651 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8652 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8653 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8654 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8655 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8656 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8657 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8658 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8659 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8660 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8661 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8662 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8663 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8664 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8665 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 8666 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8667 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8668 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8669 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8670 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8671 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8672 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8673 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8674 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8675 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8676 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8677 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8678 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8679 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8680 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8681 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8682 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8683 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8684 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8685 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8686 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8687 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8688 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8689 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8690 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8691 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8692 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8693 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8694 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8695 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8696 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8697 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 8698 | .ilen = 512, |
| 8699 | .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 8700 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 8701 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 8702 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 8703 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 8704 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 8705 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 8706 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 8707 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 8708 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 8709 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 8710 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 8711 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 8712 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 8713 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 8714 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 8715 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 8716 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 8717 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 8718 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 8719 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 8720 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 8721 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 8722 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 8723 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 8724 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 8725 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 8726 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 8727 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 8728 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 8729 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 8730 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 8731 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 8732 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 8733 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 8734 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 8735 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 8736 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 8737 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 8738 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 8739 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 8740 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 8741 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 8742 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 8743 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 8744 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 8745 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 8746 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 8747 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 8748 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 8749 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 8750 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 8751 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 8752 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 8753 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 8754 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 8755 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 8756 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 8757 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 8758 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 8759 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 8760 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 8761 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 8762 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 8763 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 8764 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 8765 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 8766 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 8767 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 8768 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 8769 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 8770 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 8771 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 8772 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 8773 | .klen = 64, |
| 8774 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 8775 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8776 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8777 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8778 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8779 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8780 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8781 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8782 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8783 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8784 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8785 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8786 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8787 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8788 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8789 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8790 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8791 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8792 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8793 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8794 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8795 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8796 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8797 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8798 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8799 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8800 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8801 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8802 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8803 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8804 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8805 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8806 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8807 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8808 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8809 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 8810 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 8811 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 8812 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 8813 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 8814 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 8815 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 8816 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8817 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 8818 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 8819 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 8820 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 8821 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 8822 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 8823 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 8824 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 8825 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 8826 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 8827 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 8828 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 8829 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 8830 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 8831 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 8832 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 8833 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 8834 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 8835 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 8836 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 8837 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 8838 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 8839 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 8840 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 8841 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 8842 | .ilen = 512, |
| 8843 | .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 8844 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 8845 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 8846 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 8847 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 8848 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 8849 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 8850 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 8851 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 8852 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 8853 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 8854 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 8855 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 8856 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 8857 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 8858 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 8859 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 8860 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 8861 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 8862 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 8863 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 8864 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 8865 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 8866 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 8867 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 8868 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 8869 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 8870 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 8871 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 8872 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 8873 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 8874 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 8875 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 8876 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 8877 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 8878 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 8879 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 8880 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 8881 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 8882 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 8883 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 8884 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 8885 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 8886 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 8887 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 8888 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 8889 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 8890 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 8891 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 8892 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 8893 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 8894 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 8895 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 8896 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 8897 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 8898 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 8899 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 8900 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 8901 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 8902 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 8903 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 8904 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 8905 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 8906 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 8907 | .rlen = 512, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8908 | } |
| 8909 | }; |
| 8910 | |
| 8911 | static struct cipher_testvec aes_xts_dec_tv_template[] = { |
| 8912 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 8913 | { /* XTS-AES 1 */ |
| 8914 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8915 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8916 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8917 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8918 | .klen = 32, |
| 8919 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8920 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8921 | .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 8922 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 8923 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 8924 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 8925 | .ilen = 32, |
| 8926 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8927 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8928 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8929 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8930 | .rlen = 32, |
| 8931 | }, { /* XTS-AES 2 */ |
| 8932 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8933 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 8934 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8935 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8936 | .klen = 32, |
| 8937 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8938 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8939 | .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 8940 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 8941 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 8942 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 8943 | .ilen = 32, |
| 8944 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8945 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8946 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8947 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8948 | .rlen = 32, |
| 8949 | }, { /* XTS-AES 3 */ |
| 8950 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 8951 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 8952 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 8953 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 8954 | .klen = 32, |
| 8955 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 8956 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8957 | .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 8958 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 8959 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 8960 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 8961 | .ilen = 32, |
| 8962 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8963 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8964 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 8965 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 8966 | .rlen = 32, |
| 8967 | }, { /* XTS-AES 4 */ |
| 8968 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 8969 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 8970 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 8971 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 8972 | .klen = 32, |
| 8973 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8974 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 8975 | .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 8976 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 8977 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 8978 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 8979 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 8980 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 8981 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 8982 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 8983 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 8984 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 8985 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 8986 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 8987 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 8988 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 8989 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 8990 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 8991 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 8992 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 8993 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 8994 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 8995 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 8996 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 8997 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 8998 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 8999 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 9000 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 9001 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 9002 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 9003 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 9004 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 9005 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 9006 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 9007 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 9008 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 9009 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 9010 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 9011 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 9012 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 9013 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 9014 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 9015 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 9016 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 9017 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 9018 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 9019 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 9020 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 9021 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 9022 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 9023 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 9024 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 9025 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 9026 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 9027 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 9028 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 9029 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 9030 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 9031 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 9032 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 9033 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 9034 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 9035 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 9036 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 9037 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 9038 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 9039 | .ilen = 512, |
| 9040 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9041 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9042 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9043 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9044 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9045 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9046 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9047 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9048 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9049 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9050 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9051 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9052 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9053 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9054 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9055 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9056 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9057 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9058 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9059 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9060 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9061 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9062 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9063 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9064 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9065 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9066 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9067 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9068 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9069 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9070 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9071 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9072 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9073 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9074 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9075 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9076 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9077 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9078 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9079 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9080 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9081 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9082 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9083 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9084 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9085 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9086 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9087 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9088 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9089 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9090 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9091 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9092 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9093 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9094 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9095 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9096 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9097 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9098 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9099 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9100 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9101 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9102 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9103 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9104 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 9105 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 9106 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 9107 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 9108 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 9109 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 9110 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 9111 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 9112 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 9113 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 9114 | .klen = 64, |
| 9115 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 9116 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9117 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9118 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9119 | .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 9120 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 9121 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 9122 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 9123 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 9124 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 9125 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 9126 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 9127 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 9128 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 9129 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 9130 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 9131 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 9132 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 9133 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 9134 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 9135 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 9136 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 9137 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 9138 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 9139 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 9140 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 9141 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 9142 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 9143 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 9144 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 9145 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 9146 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 9147 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 9148 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 9149 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 9150 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 9151 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 9152 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 9153 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 9154 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 9155 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 9156 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 9157 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 9158 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 9159 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 9160 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 9161 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 9162 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 9163 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 9164 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 9165 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 9166 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 9167 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 9168 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 9169 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 9170 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 9171 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 9172 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 9173 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 9174 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 9175 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 9176 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 9177 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 9178 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 9179 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 9180 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 9181 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 9182 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 9183 | .ilen = 512, |
| 9184 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9185 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9186 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9187 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9188 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9189 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9190 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9191 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9192 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9193 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9194 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9195 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9196 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9197 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9198 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9199 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9200 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9201 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9202 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9203 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9204 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9205 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9206 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9207 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9208 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9209 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9210 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9211 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9212 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9213 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9214 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9215 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9216 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9217 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9218 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9219 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9220 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9221 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9222 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9223 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9224 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9225 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9226 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9227 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9228 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9229 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9230 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9231 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9232 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9233 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9234 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9235 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9236 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9237 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9238 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9239 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9240 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9241 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9242 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9243 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9244 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9245 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9246 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9247 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9248 | .rlen = 512, |
| 9249 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9250 | } |
| 9251 | }; |
| 9252 | |
| 9253 | |
| 9254 | static struct cipher_testvec aes_ctr_enc_tv_template[] = { |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 9255 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 9256 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 9257 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 9258 | .klen = 16, |
| 9259 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9260 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9261 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 9262 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 9263 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 9264 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 9265 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 9266 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 9267 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 9268 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 9269 | .ilen = 64, |
| 9270 | .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 9271 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 9272 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 9273 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 9274 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 9275 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 9276 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 9277 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 9278 | .rlen = 64, |
| 9279 | }, { |
| 9280 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 9281 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 9282 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 9283 | .klen = 24, |
| 9284 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9285 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9286 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 9287 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 9288 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 9289 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 9290 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 9291 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 9292 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 9293 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 9294 | .ilen = 64, |
| 9295 | .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 9296 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 9297 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 9298 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 9299 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 9300 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 9301 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 9302 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 9303 | .rlen = 64, |
| 9304 | }, { |
| 9305 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 9306 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 9307 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 9308 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 9309 | .klen = 32, |
| 9310 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9311 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9312 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 9313 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 9314 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 9315 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 9316 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 9317 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 9318 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 9319 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 9320 | .ilen = 64, |
| 9321 | .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 9322 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 9323 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 9324 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 9325 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 9326 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 9327 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 9328 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 9329 | .rlen = 64, |
| 9330 | } |
| 9331 | }; |
| 9332 | |
| 9333 | static struct cipher_testvec aes_ctr_dec_tv_template[] = { |
| 9334 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 9335 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 9336 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 9337 | .klen = 16, |
| 9338 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9339 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9340 | .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 9341 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 9342 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 9343 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 9344 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 9345 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 9346 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 9347 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 9348 | .ilen = 64, |
| 9349 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 9350 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 9351 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 9352 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 9353 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 9354 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 9355 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 9356 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 9357 | .rlen = 64, |
| 9358 | }, { |
| 9359 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 9360 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 9361 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 9362 | .klen = 24, |
| 9363 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9364 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9365 | .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 9366 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 9367 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 9368 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 9369 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 9370 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 9371 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 9372 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 9373 | .ilen = 64, |
| 9374 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 9375 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 9376 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 9377 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 9378 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 9379 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 9380 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 9381 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 9382 | .rlen = 64, |
| 9383 | }, { |
| 9384 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 9385 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 9386 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 9387 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 9388 | .klen = 32, |
| 9389 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9390 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9391 | .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 9392 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 9393 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 9394 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 9395 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 9396 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 9397 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 9398 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 9399 | .ilen = 64, |
| 9400 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 9401 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 9402 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 9403 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 9404 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 9405 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 9406 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 9407 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 9408 | .rlen = 64, |
| 9409 | } |
| 9410 | }; |
| 9411 | |
| 9412 | static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9413 | { /* From RFC 3686 */ |
| 9414 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 9415 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 9416 | "\x00\x00\x00\x30", |
| 9417 | .klen = 20, |
| 9418 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9419 | .input = "Single block msg", |
| 9420 | .ilen = 16, |
| 9421 | .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 9422 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 9423 | .rlen = 16, |
| 9424 | }, { |
| 9425 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 9426 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 9427 | "\x00\x6c\xb6\xdb", |
| 9428 | .klen = 20, |
| 9429 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 9430 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9431 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9432 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9433 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 9434 | .ilen = 32, |
| 9435 | .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 9436 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 9437 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 9438 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 9439 | .rlen = 32, |
| 9440 | }, { |
| 9441 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 9442 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 9443 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 9444 | "\x00\x00\x00\x48", |
| 9445 | .klen = 28, |
| 9446 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 9447 | .input = "Single block msg", |
| 9448 | .ilen = 16, |
| 9449 | .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 9450 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 9451 | .rlen = 16, |
| 9452 | }, { |
| 9453 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 9454 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 9455 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 9456 | "\x00\x96\xb0\x3b", |
| 9457 | .klen = 28, |
| 9458 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 9459 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9460 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9461 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9462 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 9463 | .ilen = 32, |
| 9464 | .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 9465 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 9466 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 9467 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 9468 | .rlen = 32, |
| 9469 | }, { |
| 9470 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 9471 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 9472 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 9473 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 9474 | "\x00\x00\x00\x60", |
| 9475 | .klen = 36, |
| 9476 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 9477 | .input = "Single block msg", |
| 9478 | .ilen = 16, |
| 9479 | .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 9480 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 9481 | .rlen = 16, |
| 9482 | }, { |
| 9483 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 9484 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 9485 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 9486 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 9487 | "\x00\xfa\xac\x24", |
| 9488 | .klen = 36, |
| 9489 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 9490 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9491 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9492 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9493 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 9494 | .ilen = 32, |
| 9495 | .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 9496 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 9497 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 9498 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 9499 | .rlen = 32, |
| 9500 | }, { |
| 9501 | // generated using Crypto++ |
| 9502 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9503 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9504 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9505 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9506 | "\x00\x00\x00\x00", |
| 9507 | .klen = 32 + 4, |
| 9508 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9509 | .input = |
| 9510 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9511 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9512 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9513 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9514 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9515 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9516 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9517 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9518 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9519 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9520 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9521 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9522 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9523 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9524 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9525 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9526 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9527 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9528 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9529 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9530 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9531 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9532 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9533 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9534 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9535 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9536 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9537 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9538 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9539 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9540 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9541 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9542 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 9543 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 9544 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 9545 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 9546 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 9547 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 9548 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 9549 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 9550 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 9551 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 9552 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 9553 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 9554 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 9555 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 9556 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 9557 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 9558 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 9559 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 9560 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 9561 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 9562 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 9563 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 9564 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 9565 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 9566 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 9567 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 9568 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 9569 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 9570 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 9571 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 9572 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 9573 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 9574 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 9575 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 9576 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 9577 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 9578 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 9579 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 9580 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 9581 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 9582 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 9583 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 9584 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 9585 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 9586 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 9587 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 9588 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 9589 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 9590 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 9591 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 9592 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 9593 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 9594 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 9595 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 9596 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 9597 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 9598 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 9599 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 9600 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 9601 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 9602 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 9603 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 9604 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 9605 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 9606 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 9607 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 9608 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 9609 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 9610 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 9611 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 9612 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 9613 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 9614 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 9615 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 9616 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 9617 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 9618 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 9619 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 9620 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 9621 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 9622 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 9623 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 9624 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 9625 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 9626 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 9627 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 9628 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 9629 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 9630 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 9631 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 9632 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 9633 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 9634 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 9635 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 9636 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 9637 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 9638 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 9639 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 9640 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 9641 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 9642 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 9643 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 9644 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 9645 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 9646 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 9647 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 9648 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 9649 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 9650 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 9651 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 9652 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 9653 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 9654 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 9655 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 9656 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 9657 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 9658 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 9659 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 9660 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 9661 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 9662 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 9663 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 9664 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 9665 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 9666 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 9667 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 9668 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 9669 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 9670 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 9671 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 9672 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 9673 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 9674 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 9675 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 9676 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 9677 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 9678 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 9679 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 9680 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 9681 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 9682 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 9683 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 9684 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 9685 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 9686 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 9687 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 9688 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 9689 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 9690 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 9691 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 9692 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 9693 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 9694 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 9695 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 9696 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 9697 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 9698 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 9699 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 9700 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 9701 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 9702 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 9703 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 9704 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 9705 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 9706 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 9707 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 9708 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 9709 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 9710 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 9711 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 9712 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 9713 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 9714 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 9715 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 9716 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 9717 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 9718 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 9719 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 9720 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 9721 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 9722 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 9723 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 9724 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 9725 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 9726 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 9727 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 9728 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 9729 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 9730 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 9731 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 9732 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 9733 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 9734 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 9735 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 9736 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 9737 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 9738 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 9739 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 9740 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 9741 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 9742 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 9743 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 9744 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 9745 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 9746 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 9747 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 9748 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 9749 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 9750 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 9751 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 9752 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 9753 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 9754 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 9755 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 9756 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 9757 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 9758 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 9759 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 9760 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 9761 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 9762 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 9763 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 9764 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 9765 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 9766 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 9767 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 9768 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 9769 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 9770 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 9771 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 9772 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 9773 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 9774 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 9775 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 9776 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 9777 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 9778 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 9779 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 9780 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 9781 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 9782 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 9783 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 9784 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 9785 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 9786 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 9787 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 9788 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 9789 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 9790 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 9791 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 9792 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 9793 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 9794 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 9795 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 9796 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 9797 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 9798 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 9799 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 9800 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 9801 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 9802 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 9803 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 9804 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 9805 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 9806 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 9807 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 9808 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 9809 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 9810 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 9811 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 9812 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 9813 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 9814 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 9815 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 9816 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 9817 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 9818 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 9819 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 9820 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 9821 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 9822 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 9823 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 9824 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 9825 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 9826 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 9827 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 9828 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 9829 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 9830 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 9831 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 9832 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 9833 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 9834 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 9835 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 9836 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 9837 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 9838 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 9839 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 9840 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 9841 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 9842 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 9843 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 9844 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 9845 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 9846 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 9847 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 9848 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 9849 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 9850 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 9851 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 9852 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 9853 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 9854 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 9855 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 9856 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 9857 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 9858 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 9859 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 9860 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 9861 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 9862 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 9863 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 9864 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 9865 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 9866 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 9867 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 9868 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 9869 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 9870 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 9871 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 9872 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 9873 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 9874 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 9875 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 9876 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 9877 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 9878 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 9879 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 9880 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 9881 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 9882 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 9883 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 9884 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 9885 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 9886 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 9887 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 9888 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 9889 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 9890 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 9891 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 9892 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 9893 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 9894 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 9895 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 9896 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 9897 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 9898 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 9899 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 9900 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 9901 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 9902 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 9903 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 9904 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 9905 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 9906 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 9907 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 9908 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 9909 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 9910 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 9911 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 9912 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 9913 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 9914 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 9915 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 9916 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 9917 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 9918 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 9919 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 9920 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 9921 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 9922 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 9923 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 9924 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 9925 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 9926 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 9927 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 9928 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 9929 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 9930 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 9931 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 9932 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 9933 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 9934 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 9935 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 9936 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 9937 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 9938 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 9939 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 9940 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 9941 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 9942 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 9943 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 9944 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 9945 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 9946 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 9947 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 9948 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 9949 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 9950 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 9951 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 9952 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 9953 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 9954 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 9955 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 9956 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 9957 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 9958 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 9959 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 9960 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 9961 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 9962 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 9963 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 9964 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 9965 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 9966 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 9967 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 9968 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 9969 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 9970 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 9971 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 9972 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 9973 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 9974 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 9975 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 9976 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 9977 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 9978 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 9979 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 9980 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 9981 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 9982 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 9983 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 9984 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 9985 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 9986 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 9987 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 9988 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 9989 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 9990 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 9991 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 9992 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 9993 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 9994 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 9995 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 9996 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 9997 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 9998 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 9999 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 10000 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 10001 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 10002 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 10003 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 10004 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 10005 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 10006 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 10007 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 10008 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 10009 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 10010 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 10011 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 10012 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 10013 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 10014 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 10015 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 10016 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 10017 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 10018 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 10019 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 10020 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 10021 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 10022 | "\x00\x21\x42\x63", |
| 10023 | .ilen = 4100, |
| 10024 | .result = |
| 10025 | "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2" |
| 10026 | "\xae\xff\x91\x3a\x44\xcf\x38\x32" |
| 10027 | "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa" |
| 10028 | "\x10\xb1\xb3\x2e\x04\x31\x8f\x86" |
| 10029 | "\xf2\x62\x74\x70\x0c\xa4\x46\x08" |
| 10030 | "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79" |
| 10031 | "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31" |
| 10032 | "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71" |
| 10033 | "\xe9\x46\x03\xa5\x3d\x34\x00\xe2" |
| 10034 | "\x18\xff\x75\x6d\x06\x2d\x00\xab" |
| 10035 | "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5" |
| 10036 | "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6" |
| 10037 | "\x3d\x74\x54\xfa\x44\xcd\x23\x26" |
| 10038 | "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf" |
| 10039 | "\xa7\x20\x3c\x74\x58\x2a\x9a\xde" |
| 10040 | "\x61\x00\x1c\x4f\xff\x59\xc4\x22" |
| 10041 | "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b" |
| 10042 | "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d" |
| 10043 | "\xee\x2f\x04\x1f\x7f\xbc\x99\xee" |
| 10044 | "\x84\xff\x42\x60\xdc\x3a\x18\xa5" |
| 10045 | "\x81\xf9\xef\xdc\x7a\x0f\x65\x41" |
| 10046 | "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d" |
| 10047 | "\x8f\xd3\x76\x96\xad\x49\x6d\x38" |
| 10048 | "\x3d\x39\x0b\x6c\x80\xb7\x54\x69" |
| 10049 | "\xf0\x2c\x90\x02\x29\x0d\x1c\x12" |
| 10050 | "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3" |
| 10051 | "\xb2\x64\x33\x90\x5e\xca\x4b\xe2" |
| 10052 | "\xfb\x75\xdc\x63\xf7\x9f\x82\x74" |
| 10053 | "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33" |
| 10054 | "\xbc\x88\x00\x7f\xca\xb2\x1f\x14" |
| 10055 | "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08" |
| 10056 | "\xf3\x83\xe8\xe0\x94\x86\x2e\x92" |
| 10057 | "\x78\x6b\x01\xc9\xc7\x83\xba\x21" |
| 10058 | "\x6a\x25\x15\x33\x4e\x45\x08\xec" |
| 10059 | "\x35\xdb\xe0\x6e\x31\x51\x79\xa9" |
| 10060 | "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a" |
| 10061 | "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc" |
| 10062 | "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec" |
| 10063 | "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16" |
| 10064 | "\x1b\x66\x84\xda\xe2\x92\xe5\xc0" |
| 10065 | "\xc8\x53\x07\xaf\x80\x84\xec\xfd" |
| 10066 | "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36" |
| 10067 | "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a" |
| 10068 | "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a" |
| 10069 | "\x06\x51\x48\x4e\xf6\x59\x87\xd2" |
| 10070 | "\x04\x02\xef\xd3\x44\xde\x76\x31" |
| 10071 | "\xb3\x34\x17\x1b\x9d\x66\x11\x9f" |
| 10072 | "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7" |
| 10073 | "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb" |
| 10074 | "\x65\x83\xd0\x3b\xe3\x30\xea\x94" |
| 10075 | "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64" |
| 10076 | "\xb4\x01\xab\x36\x2c\x77\x13\xaf" |
| 10077 | "\xf8\x2b\x88\x3f\x54\x39\xc4\x44" |
| 10078 | "\xfe\xef\x6f\x68\x34\xbe\x0f\x05" |
| 10079 | "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed" |
| 10080 | "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe" |
| 10081 | "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7" |
| 10082 | "\x93\x97\xc6\x48\x45\x1d\x9f\x83" |
| 10083 | "\xdf\x4b\x40\x3e\x42\x25\x87\x80" |
| 10084 | "\x4c\x7d\xa8\xd4\x98\x23\x95\x75" |
| 10085 | "\x41\x8c\xda\x41\x9b\xd4\xa7\x06" |
| 10086 | "\xb5\xf1\x71\x09\x53\xbe\xca\xbf" |
| 10087 | "\x32\x03\xed\xf0\x50\x1c\x56\x39" |
| 10088 | "\x5b\xa4\x75\x18\xf7\x9b\x58\xef" |
| 10089 | "\x53\xfc\x2a\x38\x23\x15\x75\xcd" |
| 10090 | "\x45\xe5\x5a\x82\x55\xba\x21\xfa" |
| 10091 | "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12" |
| 10092 | "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28" |
| 10093 | "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e" |
| 10094 | "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32" |
| 10095 | "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0" |
| 10096 | "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed" |
| 10097 | "\xd1\x26\xb9\xd8\x49\x5a\x07\x19" |
| 10098 | "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3" |
| 10099 | "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59" |
| 10100 | "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31" |
| 10101 | "\xb3\x42\xba\xa2\x7e\xd4\x32\x71" |
| 10102 | "\x45\x87\x48\xa9\xc2\xf2\x89\xb3" |
| 10103 | "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe" |
| 10104 | "\xc9\xdd\x81\xeb\x13\xab\xab\xc3" |
| 10105 | "\x98\x59\xd8\x16\x3d\x14\x7a\x1c" |
| 10106 | "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2" |
| 10107 | "\x69\x3a\x29\x23\xac\x86\x32\xa5" |
| 10108 | "\x48\x9c\x9e\xf3\x47\x77\x81\x70" |
| 10109 | "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff" |
| 10110 | "\x59\x6a\xd3\x50\x59\x43\x59\xde" |
| 10111 | "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a" |
| 10112 | "\x18\x34\x0d\x1a\x63\x33\xed\x10" |
| 10113 | "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8" |
| 10114 | "\xca\xb5\x9a\xd3\xdd\xca\x45\x84" |
| 10115 | "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe" |
| 10116 | "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d" |
| 10117 | "\x85\xd8\xc9\xdf\x68\xc9\x12\x80" |
| 10118 | "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d" |
| 10119 | "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0" |
| 10120 | "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f" |
| 10121 | "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8" |
| 10122 | "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2" |
| 10123 | "\xa6\xad\x30\xbc\x78\x3c\x5b\x10" |
| 10124 | "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33" |
| 10125 | "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8" |
| 10126 | "\xe8\x99\x57\x8c\x11\xed\x66\xd9" |
| 10127 | "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a" |
| 10128 | "\x6a\xcb\x42\x24\x06\xed\x3e\x4e" |
| 10129 | "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5" |
| 10130 | "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc" |
| 10131 | "\x64\x76\x38\x49\x4d\xfe\x30\x6d" |
| 10132 | "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba" |
| 10133 | "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3" |
| 10134 | "\x28\xa2\x82\x1f\x61\x69\xad\xc1" |
| 10135 | "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b" |
| 10136 | "\x51\xb5\x17\x7f\x12\x69\x8c\x24" |
| 10137 | "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a" |
| 10138 | "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a" |
| 10139 | "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5" |
| 10140 | "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7" |
| 10141 | "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2" |
| 10142 | "\x4d\x29\x77\x53\x35\x6a\x00\x8d" |
| 10143 | "\xcd\xa3\x58\xbe\x77\x99\x18\xf8" |
| 10144 | "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2" |
| 10145 | "\x5a\x8a\x93\x25\xaf\xf3\x78\x80" |
| 10146 | "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91" |
| 10147 | "\x58\xe1\x9f\x89\x35\x9d\x1d\x21" |
| 10148 | "\x29\x9f\xf4\x99\x02\x27\x0f\xa8" |
| 10149 | "\x4f\x79\x94\x2b\x33\x2c\xda\xa2" |
| 10150 | "\x26\x39\x83\x94\xef\x27\xd8\x53" |
| 10151 | "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd" |
| 10152 | "\x43\x7c\x95\x0a\x53\xef\x66\xda" |
| 10153 | "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71" |
| 10154 | "\xba\x40\x9b\x74\xf8\xd7\xd7\x41" |
| 10155 | "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c" |
| 10156 | "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3" |
| 10157 | "\x88\xee\x73\xcf\x66\x2f\x52\x56" |
| 10158 | "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88" |
| 10159 | "\x3f\x0e\x54\x17\x48\x80\x5d\xd3" |
| 10160 | "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f" |
| 10161 | "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1" |
| 10162 | "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9" |
| 10163 | "\x85\x9c\xf1\xac\xeb\x0c\x02\x46" |
| 10164 | "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94" |
| 10165 | "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36" |
| 10166 | "\xba\x61\x34\x38\x7c\xda\x48\x3e" |
| 10167 | "\x08\xc9\x39\x23\x5e\x02\x2c\x1a" |
| 10168 | "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02" |
| 10169 | "\xb1\x33\x37\x32\xe7\xde\xd6\xd0" |
| 10170 | "\x7c\x58\x65\x4b\xf8\x34\x27\x9c" |
| 10171 | "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d" |
| 10172 | "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37" |
| 10173 | "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4" |
| 10174 | "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a" |
| 10175 | "\x35\x12\xe3\x36\x28\x27\x36\x58" |
| 10176 | "\x01\x2b\x79\xe4\xba\x6d\x10\x7d" |
| 10177 | "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f" |
| 10178 | "\x2b\x9f\x96\x00\x86\x60\xf0\x21" |
| 10179 | "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b" |
| 10180 | "\x97\xd7\xb6\x53\x2a\xcc\xab\x40" |
| 10181 | "\x9d\x62\x79\x58\x52\xe6\x65\xb7" |
| 10182 | "\xab\x55\x67\x9c\x89\x7c\x03\xb0" |
| 10183 | "\x73\x59\xc5\x81\xf5\x18\x17\x5c" |
| 10184 | "\x89\xf3\x78\x35\x44\x62\x78\x72" |
| 10185 | "\xd0\x96\xeb\x31\xe7\x87\x77\x14" |
| 10186 | "\x99\x51\xf2\x59\x26\x9e\xb5\xa6" |
| 10187 | "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a" |
| 10188 | "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe" |
| 10189 | "\x17\xd4\x84\xa0\xac\xb5\xc7\xda" |
| 10190 | "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d" |
| 10191 | "\xfb\x79\x2e\x04\x2d\x50\x28\x83" |
| 10192 | "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a" |
| 10193 | "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c" |
| 10194 | "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92" |
| 10195 | "\xd2\x49\x77\x81\x6d\x90\x70\xae" |
| 10196 | "\x98\xa1\x03\x0d\x6b\xb9\x77\x14" |
| 10197 | "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2" |
| 10198 | "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f" |
| 10199 | "\x65\x54\xa4\x7a\x42\xdc\x18\x0d" |
| 10200 | "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b" |
| 10201 | "\x45\x42\x27\x75\x50\xe5\xee\xb8" |
| 10202 | "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c" |
| 10203 | "\x3c\xe3\x0d\x80\x01\xba\x0d\x29" |
| 10204 | "\xd8\x3c\xe9\x13\x16\x57\xe6\xea" |
| 10205 | "\x94\x52\xe7\x00\x4d\x30\xb0\x0f" |
| 10206 | "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44" |
| 10207 | "\xe1\x2f\xfd\x88\xed\x43\xe7\x52" |
| 10208 | "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7" |
| 10209 | "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3" |
| 10210 | "\xdc\x9b\x2f\x01\x56\x36\x09\xc5" |
| 10211 | "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03" |
| 10212 | "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a" |
| 10213 | "\xa9\x21\x2b\x92\x94\x87\x62\x57" |
| 10214 | "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84" |
| 10215 | "\x3b\x9e\x72\x02\xd7\xcc\x09\x56" |
| 10216 | "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8" |
| 10217 | "\xd2\x0d\x61\xcb\xef\xce\x0d\x05" |
| 10218 | "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93" |
| 10219 | "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1" |
| 10220 | "\xec\xfc\x89\xf9\x64\xb0\x22\xbf" |
| 10221 | "\x9e\x55\x46\x9f\x7c\x50\x8e\x84" |
| 10222 | "\x54\x20\x98\xd7\x6c\x40\x1e\xdb" |
| 10223 | "\x69\x34\x78\x61\x24\x21\x9c\x8a" |
| 10224 | "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35" |
| 10225 | "\x86\x13\xb1\x6c\x64\x2e\x41\xa5" |
| 10226 | "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e" |
| 10227 | "\x8a\x59\x94\x3c\xcf\x36\x27\x82" |
| 10228 | "\xc2\x45\xee\x58\xcd\x88\xb4\xec" |
| 10229 | "\xde\xb2\x96\x0a\xaf\x38\x6f\x88" |
| 10230 | "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a" |
| 10231 | "\xb1\x95\x28\x86\x20\xe9\x17\x49" |
| 10232 | "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1" |
| 10233 | "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b" |
| 10234 | "\xdb\x7c\x73\x10\xb9\xba\x89\x76" |
| 10235 | "\x54\xae\x7d\x71\xb3\x93\xf6\x32" |
| 10236 | "\xe6\x47\x43\x55\xac\xa0\x0d\xc2" |
| 10237 | "\x93\x27\x4a\x8e\x0e\x74\x15\xc7" |
| 10238 | "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e" |
| 10239 | "\xea\x8f\x85\x6d\x3a\x12\x4f\x72" |
| 10240 | "\x69\x58\x7a\x80\xbb\xb5\x97\xf3" |
| 10241 | "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79" |
| 10242 | "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62" |
| 10243 | "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0" |
| 10244 | "\x79\x00\xa8\x6c\x29\xd9\x18\x24" |
| 10245 | "\x36\xa2\x46\xc0\x96\x65\x7f\xbd" |
| 10246 | "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4" |
| 10247 | "\xc5\xb4\xe2\x12\xed\x69\xed\x4f" |
| 10248 | "\x26\x2c\x39\x52\x89\x98\xe7\x2c" |
| 10249 | "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a" |
| 10250 | "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b" |
| 10251 | "\x95\x0d\x3b\x09\x6e\xee\x83\x5d" |
| 10252 | "\x32\x4d\xed\xab\xfa\x98\x14\x4e" |
| 10253 | "\xc3\x15\x45\x53\x61\xc4\x93\xbd" |
| 10254 | "\x90\xf4\x99\x95\x4c\xe6\x76\x92" |
| 10255 | "\x29\x90\x46\x30\x92\x69\x7d\x13" |
| 10256 | "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f" |
| 10257 | "\x63\x40\x36\x5f\x09\xe2\x78\xf8" |
| 10258 | "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24" |
| 10259 | "\xa8\x89\x32\x5c\x37\x25\x1d\xb2" |
| 10260 | "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c" |
| 10261 | "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2" |
| 10262 | "\x85\x8e\xbf\xf8\xde\x92\xa0\xae" |
| 10263 | "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e" |
| 10264 | "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e" |
| 10265 | "\x37\x2f\xe2\x94\x32\xaf\xa0\x23" |
| 10266 | "\x49\xe4\xc0\xb3\xac\x00\x8f\x36" |
| 10267 | "\x05\xc4\xa6\x96\xec\x05\x98\x4f" |
| 10268 | "\x96\x67\x57\x1f\x20\x86\x1b\x2d" |
| 10269 | "\x69\xe4\x29\x93\x66\x5f\xaf\x6b" |
| 10270 | "\x88\x26\x2c\x67\x02\x4b\x52\xd0" |
| 10271 | "\x83\x7a\x43\x1f\xc0\x71\x15\x25" |
| 10272 | "\x77\x65\x08\x60\x11\x76\x4c\x8d" |
| 10273 | "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a" |
| 10274 | "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3" |
| 10275 | "\x03\xd1\x24\x95\xec\x6d\xab\x38" |
| 10276 | "\x72\xce\xe2\x8b\x33\xd7\x51\x09" |
| 10277 | "\xdc\x45\xe0\x09\x96\x32\xf3\xc4" |
| 10278 | "\x84\xdc\x73\x73\x2d\x1b\x11\x98" |
| 10279 | "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d" |
| 10280 | "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74" |
| 10281 | "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a" |
| 10282 | "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96" |
| 10283 | "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1" |
| 10284 | "\x62\x8f\x7a\x73\x32\xab\xc8\x18" |
| 10285 | "\x69\xe3\x34\x30\xdf\x13\xa6\xe5" |
| 10286 | "\xe8\x0e\x67\x7f\x81\x11\xb4\x60" |
| 10287 | "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b" |
| 10288 | "\xde\x39\xa4\x01\x72\x63\xf3\xd1" |
| 10289 | "\x64\x4e\xdf\xfc\x27\x92\x37\x0d" |
| 10290 | "\x57\xcd\x11\x4f\x11\x04\x8e\x1d" |
| 10291 | "\x16\xf7\xcd\x92\x9a\x99\x30\x14" |
| 10292 | "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8" |
| 10293 | "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f" |
| 10294 | "\xe5\x79\x81\x73\xcd\x43\x59\x68" |
| 10295 | "\x73\x02\x3b\x78\x21\x72\x43\x00" |
| 10296 | "\x49\x17\xf7\x00\xaf\x68\x24\x53" |
| 10297 | "\x05\x0a\xc3\x33\xe0\x33\x3f\x69" |
| 10298 | "\xd2\x84\x2f\x0b\xed\xde\x04\xf4" |
| 10299 | "\x11\x94\x13\x69\x51\x09\x28\xde" |
| 10300 | "\x57\x5c\xef\xdc\x9a\x49\x1c\x17" |
| 10301 | "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d" |
| 10302 | "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7" |
| 10303 | "\xc9\x8d\xa3\x36\x34\x8a\x77\x13" |
| 10304 | "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e" |
| 10305 | "\x05\xa1\x7b\x0c\xcb\x74\x47\x31" |
| 10306 | "\x62\x03\x43\xf1\x87\xb4\xb0\x85" |
| 10307 | "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b" |
| 10308 | "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f" |
| 10309 | "\x73\xac\xe6\x07\xee\xc1\xa1\xd6" |
| 10310 | "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1" |
| 10311 | "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3" |
| 10312 | "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55" |
| 10313 | "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b" |
| 10314 | "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38" |
| 10315 | "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2" |
| 10316 | "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7" |
| 10317 | "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e" |
| 10318 | "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3" |
| 10319 | "\x69\xdc\xab\x24\x57\x60\x47\xc1" |
| 10320 | "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe" |
| 10321 | "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb" |
| 10322 | "\xd6\x9d\x99\x69\xab\x7a\x07\x0c" |
| 10323 | "\x65\xe7\xc4\x08\x96\xe2\xa5\x01" |
| 10324 | "\x3f\x46\x07\x05\x7e\xe8\x9a\x90" |
| 10325 | "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e" |
| 10326 | "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b" |
| 10327 | "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c" |
| 10328 | "\x26\x10\x8f\x3d\x80\xe9\x58\xf7" |
| 10329 | "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99" |
| 10330 | "\x63\x19\x3d\xd5\xec\x1b\x77\x69" |
| 10331 | "\x98\xf6\xe4\x5f\x67\x17\x4b\x09" |
| 10332 | "\x85\x62\x82\x70\x18\xe2\x9a\x78" |
| 10333 | "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb" |
| 10334 | "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8" |
| 10335 | "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f" |
| 10336 | "\x35\xf3\x61\x06\x72\x84\xc4\x32" |
| 10337 | "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02" |
| 10338 | "\x04\xc2\xde\x57\x64\x60\x8d\xcf" |
| 10339 | "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01" |
| 10340 | "\xd6\x28\x8f\x99\xbc\x46\xeb\x05" |
| 10341 | "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c" |
| 10342 | "\xb3\x71\xa0\xde\xca\x96\xf1\x78" |
| 10343 | "\x49\xa2\x99\x81\x80\x5c\x01\xf5" |
| 10344 | "\xa0\xa2\x56\x63\xe2\x70\x07\xa5" |
| 10345 | "\x95\xd6\x85\xeb\x36\x9e\xa9\x51" |
| 10346 | "\x66\x56\x5f\x1d\x02\x19\xe2\xf6" |
| 10347 | "\x4f\x73\x38\x09\x75\x64\x48\xe0" |
| 10348 | "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94" |
| 10349 | "\xfe\x16\x26\x62\x49\x74\xf4\xb0" |
| 10350 | "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81" |
| 10351 | "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81" |
| 10352 | "\x79\x99\x77\x01\x3b\xe9\xa2\xb6" |
| 10353 | "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e" |
| 10354 | "\x8f\x06\x55\x2c\x6c\xdc\x92\x87" |
| 10355 | "\x64\x3b\x4b\x19\xa1\x13\x64\x1d" |
| 10356 | "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b" |
| 10357 | "\x1a\x86\x6d\x37\x52\x02\xc2\xe0" |
| 10358 | "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9" |
| 10359 | "\xef\xa0\x54\xe4\x5e\x16\x53\x81" |
| 10360 | "\x70\x62\x10\xaf\xde\xb8\xb5\xd3" |
| 10361 | "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07" |
| 10362 | "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4" |
| 10363 | "\x26\xa7\xa3\x93\x86\xb2\x04\x1e" |
| 10364 | "\x53\x5d\x86\xd6\xde\x65\xca\xe3" |
| 10365 | "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83" |
| 10366 | "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6" |
| 10367 | "\x37\x7a\x93\x7a\x50\x11\x9f\x96" |
| 10368 | "\x86\x25\xfd\xac\xdc\xbe\x18\x93" |
| 10369 | "\x19\x6b\xec\x58\x4f\xb9\x75\xa7" |
| 10370 | "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab" |
| 10371 | "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6" |
| 10372 | "\x03\xfb\x03\x6a\xea\x66\xbf\xd4" |
| 10373 | "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c" |
| 10374 | "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80" |
| 10375 | "\x24\x6d\xa0\xef\x25\x7c\xb7\xea" |
| 10376 | "\xce\x4d\x5f\x18\x60\xce\x87\x22" |
| 10377 | "\x66\x2f\xd5\xdd\xdd\x02\x21\x75" |
| 10378 | "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7" |
| 10379 | "\x32\xd8\xaf\x1e\x07\x77\x51\x96" |
| 10380 | "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67" |
| 10381 | "\xea\x17\x0b\x10\xd2\x3f\x28\x25" |
| 10382 | "\x4f\x05\x77\x02\x14\x69\xf0\x2c" |
| 10383 | "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b" |
| 10384 | "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3" |
| 10385 | "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12" |
| 10386 | "\x4c\x21\x87\xcb\xc9\x1d\x16\x96" |
| 10387 | "\x07\x6f\x23\x54\xb9\x6f\x79\xe5" |
| 10388 | "\x64\xc0\x64\xda\xb1\xae\xdd\x60" |
| 10389 | "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0" |
| 10390 | "\x92\x61\xd0\x48\x81\xed\x5e\x1d" |
| 10391 | "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d" |
| 10392 | "\x7f\x83\x73\xb6\x70\x18\x65\x3e" |
| 10393 | "\x2f\x0e\x7a\x12\x39\x98\xab\xd8" |
| 10394 | "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd" |
| 10395 | "\xf0\x03\x01\x1c\x85\x35\x9f\xeb" |
| 10396 | "\x19\x63\xa1\xaf\xfe\x2d\x35\x50" |
| 10397 | "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe" |
| 10398 | "\xc1\xac\x07\x7c\x98\x4f\xbe\x57" |
| 10399 | "\xa7\x22\xec\xe2\x7e\x29\x09\x53" |
| 10400 | "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14" |
| 10401 | "\xce\x54\xf9\x18\x58\xb5\xff\x44" |
| 10402 | "\x05\x9d\xce\x1b\xb6\x82\x23\xc8" |
| 10403 | "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65" |
| 10404 | "\x94\xf0\x63\x06\x0e\xef\x8c\xbd" |
| 10405 | "\xff\xfd\xb0\x21\x6e\x57\x05\x75" |
| 10406 | "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50" |
| 10407 | "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b" |
| 10408 | "\x80\x8c\xc8\x78\x40\x24\x4b\x89" |
| 10409 | "\x30\xce\x7a\x97\x0e\xc4\xaf\xef" |
| 10410 | "\x9b\xb4\xcd\x66\x74\x14\x04\x2b" |
| 10411 | "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c" |
| 10412 | "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d" |
| 10413 | "\xa7\x20\xeb\x86\x52\xb7\x67\xd8" |
| 10414 | "\x0c\xd6\x04\x14\xde\x51\x74\x75" |
| 10415 | "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad" |
| 10416 | "\x4f\xef\xa0\x0f\x70\x00\x6d\x13" |
| 10417 | "\x19\x1d\x41\x50\xe9\xd8\xf0\x32" |
| 10418 | "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf" |
| 10419 | "\x75\x46\x65\x4e\x07\x34\x37\xa3" |
| 10420 | "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f" |
| 10421 | "\x69\x24\x0e\x38\x67\x43\x8c\xde" |
| 10422 | "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f" |
| 10423 | "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde" |
| 10424 | "\x64\xb1\xdb\xee\x00\x50\x77\xe1" |
| 10425 | "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3" |
| 10426 | "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b" |
| 10427 | "\x6d\x55\xf0\xfc\x88\x54\x4e\x89" |
| 10428 | "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8" |
| 10429 | "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05" |
| 10430 | "\x91\x7d\x62\x64\x96\x72\xde\xfc" |
| 10431 | "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b" |
| 10432 | "\x1d\x08\x57\xce\x09\xb8\xf6\xcd" |
| 10433 | "\x8d\x95\xf2\x20\xbf\x0f\x20\x57" |
| 10434 | "\x98\x81\x84\x4f\x15\x5c\x76\xe7" |
| 10435 | "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78" |
| 10436 | "\x74\x77\xc3\x09\x4b\x5d\x48\xe4" |
| 10437 | "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf" |
| 10438 | "\x31\x32\x44\xa4\xe5\x0e\x1a\x98" |
| 10439 | "\x94\xc4\xf0\xff\xae\x3e\x44\xe8" |
| 10440 | "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f" |
| 10441 | "\x28\xc1\x37\x5f\x31\xd2\xb9\x33" |
| 10442 | "\xb1\xb2\x52\x94\x75\x2c\x29\x59" |
| 10443 | "\x06\xc2\x25\xe8\x71\x65\x4e\xed" |
| 10444 | "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7" |
| 10445 | "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a" |
| 10446 | "\xe0\x50\x40\x96\x35\x63\xe4\x0b" |
| 10447 | "\x76\xbd\xa4\x65\x00\x1b\x57\x88" |
| 10448 | "\xae\xed\x39\x88\x42\x11\x3c\xed" |
| 10449 | "\x85\x67\x7d\xb9\x68\x82\xe9\x43" |
| 10450 | "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f" |
| 10451 | "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e" |
| 10452 | "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8" |
| 10453 | "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd" |
| 10454 | "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60" |
| 10455 | "\xce\x20\x56\x32\xc6\xc5\x99\x1f" |
| 10456 | "\x09\xe6\x4e\x18\x1a\x15\x13\xa8" |
| 10457 | "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26" |
| 10458 | "\x66\xf8\x3d\x18\x74\x70\x66\x7a" |
| 10459 | "\x34\x17\xde\xba\x47\xf1\x06\x18" |
| 10460 | "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77" |
| 10461 | "\xe0\x3b\x78\x62\x66\xc9\x10\xea" |
| 10462 | "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e" |
| 10463 | "\x1d\xe2\x65\x61\x50\x9c\xd7\x05" |
| 10464 | "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5" |
| 10465 | "\x63\x4f\x20\x0c\x07\x17\x33\x5e" |
| 10466 | "\x03\x9a\x53\x0f\x2e\x55\xfe\x50" |
| 10467 | "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae" |
| 10468 | "\x58\xef\x15\xa9\x83\xd9\x46\xb1" |
| 10469 | "\x42\xaa\xf5\x02\x6c\xce\x92\x06" |
| 10470 | "\x1b\xdb\x66\x45\x91\x79\xc2\x2d" |
| 10471 | "\xe6\x53\xd3\x14\xfd\xbb\x44\x63" |
| 10472 | "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d" |
| 10473 | "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b" |
| 10474 | "\xfe\xd3\xef\x60\x83\xf6\x8e\x70" |
| 10475 | "\xb6\x67\xc7\x77\xed\x23\xef\x4c" |
| 10476 | "\xf0\xed\x2d\x07\x59\x6f\xc1\x01" |
| 10477 | "\x34\x37\x08\xab\xd9\x1f\x09\xb1" |
| 10478 | "\xce\x5b\x17\xff\x74\xf8\x9c\xd5" |
| 10479 | "\x2c\x56\x39\x79\x0f\x69\x44\x75" |
| 10480 | "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d" |
| 10481 | "\x90\x17\x77\x86\x5a\x3f\xd9\xd1" |
| 10482 | "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f" |
| 10483 | "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7" |
| 10484 | "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41" |
| 10485 | "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d" |
| 10486 | "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90" |
| 10487 | "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06" |
| 10488 | "\x63\x9b\xce\x61\x24\x79\xc0\x70" |
| 10489 | "\x52\xd0\xb6\xd4\x28\x95\x24\x87" |
| 10490 | "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52" |
| 10491 | "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42" |
| 10492 | "\xf7\xd5\xfd\xad\x06\x32\x9f\xba" |
| 10493 | "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38" |
| 10494 | "\x74\x56\x58\x40\x02\x37\x52\x2c" |
| 10495 | "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38" |
| 10496 | "\x41\x5e\x0c\x35\xe2\x11\xd1\x13" |
| 10497 | "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0" |
| 10498 | "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3" |
| 10499 | "\x24\x90\xec\x58\xd2\x09\xc7\x2d" |
| 10500 | "\xed\x38\x80\x36\x72\x43\x27\x49" |
| 10501 | "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30" |
| 10502 | "\x7d\xb6\x82\x37\x86\x92\x86\x3e" |
| 10503 | "\x08\xb2\x28\x5a\x55\x44\x24\x7d" |
| 10504 | "\x40\x48\x8a\xb6\x89\x58\x08\xa0" |
| 10505 | "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2" |
| 10506 | "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b" |
| 10507 | "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3" |
| 10508 | "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81" |
| 10509 | "\x14\x32\x45\x05\xe0\xdb\x9f\x75" |
| 10510 | "\x85\xb4\x6a\xfc\x95\xe3\x54\x22" |
| 10511 | "\x12\xee\x30\xfe\xd8\x30\xef\x34" |
| 10512 | "\x50\xab\x46\x30\x98\x2f\xb7\xc0" |
| 10513 | "\x15\xa2\x83\xb6\xf2\x06\x21\xa2" |
| 10514 | "\xc3\x26\x37\x14\xd1\x4d\xb5\x10" |
| 10515 | "\x52\x76\x4d\x6a\xee\xb5\x2b\x15" |
| 10516 | "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa" |
| 10517 | "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e" |
| 10518 | "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f" |
| 10519 | "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3" |
| 10520 | "\x02\x9d\x27\x1f\xef\x85\x05\x8d" |
| 10521 | "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8" |
| 10522 | "\xa1\x75\xa0\xd8\x06\x47\x14\xef" |
| 10523 | "\xaa\x61\xcf\x26\x15\xad\xd8\xa3" |
| 10524 | "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf" |
| 10525 | "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e" |
| 10526 | "\x42\xee\xb4\x2f\x51\xff\x7b\x2e" |
| 10527 | "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc" |
| 10528 | "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16" |
| 10529 | "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0" |
| 10530 | "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02" |
| 10531 | "\xac\x82\x93\x6e\xb6\x1c\x28\xfc" |
| 10532 | "\x44\x12\xfb\x73\x77\xd4\x13\x39" |
| 10533 | "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0" |
| 10534 | "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b" |
| 10535 | "\x41\x01\x18\x5d\x5d\x07\x97\xa6" |
| 10536 | "\x4b\xef\x31\x18\xea\xac\xb1\x84" |
| 10537 | "\x21\xed\xda\x86", |
| 10538 | .rlen = 4100, |
| 10539 | .np = 2, |
| 10540 | .tap = { 4064, 36 }, |
| 10541 | }, |
| 10542 | }; |
| 10543 | |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 10544 | static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10545 | { /* From RFC 3686 */ |
| 10546 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 10547 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 10548 | "\x00\x00\x00\x30", |
| 10549 | .klen = 20, |
| 10550 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10551 | .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 10552 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 10553 | .ilen = 16, |
| 10554 | .result = "Single block msg", |
| 10555 | .rlen = 16, |
| 10556 | }, { |
| 10557 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 10558 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 10559 | "\x00\x6c\xb6\xdb", |
| 10560 | .klen = 20, |
| 10561 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 10562 | .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 10563 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 10564 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 10565 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 10566 | .ilen = 32, |
| 10567 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10568 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10569 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10570 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 10571 | .rlen = 32, |
| 10572 | }, { |
| 10573 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 10574 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 10575 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 10576 | "\x00\x00\x00\x48", |
| 10577 | .klen = 28, |
| 10578 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 10579 | .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 10580 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 10581 | .ilen = 16, |
| 10582 | .result = "Single block msg", |
| 10583 | .rlen = 16, |
| 10584 | }, { |
| 10585 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 10586 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 10587 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 10588 | "\x00\x96\xb0\x3b", |
| 10589 | .klen = 28, |
| 10590 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 10591 | .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 10592 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 10593 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 10594 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 10595 | .ilen = 32, |
| 10596 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10597 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10598 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10599 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 10600 | .rlen = 32, |
| 10601 | }, { |
| 10602 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 10603 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 10604 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 10605 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 10606 | "\x00\x00\x00\x60", |
| 10607 | .klen = 36, |
| 10608 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 10609 | .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 10610 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 10611 | .ilen = 16, |
| 10612 | .result = "Single block msg", |
| 10613 | .rlen = 16, |
| 10614 | }, { |
| 10615 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 10616 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 10617 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 10618 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 10619 | "\x00\xfa\xac\x24", |
| 10620 | .klen = 36, |
| 10621 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 10622 | .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 10623 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 10624 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 10625 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 10626 | .ilen = 32, |
| 10627 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10628 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10629 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10630 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 10631 | .rlen = 32, |
| 10632 | }, |
| 10633 | }; |
| 10634 | |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 10635 | static struct cipher_testvec aes_ofb_enc_tv_template[] = { |
| 10636 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 10637 | { |
| 10638 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 10639 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 10640 | .klen = 16, |
| 10641 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 10642 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10643 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 10644 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 10645 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 10646 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 10647 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 10648 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 10649 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 10650 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 10651 | .ilen = 64, |
| 10652 | .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 10653 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 10654 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 10655 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 10656 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 10657 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 10658 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 10659 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 10660 | .rlen = 64, |
| 10661 | } |
| 10662 | }; |
| 10663 | |
| 10664 | static struct cipher_testvec aes_ofb_dec_tv_template[] = { |
| 10665 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 10666 | { |
| 10667 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 10668 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 10669 | .klen = 16, |
| 10670 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 10671 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10672 | .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 10673 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 10674 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 10675 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 10676 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 10677 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 10678 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 10679 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 10680 | .ilen = 64, |
| 10681 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 10682 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 10683 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 10684 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 10685 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 10686 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 10687 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 10688 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 10689 | .rlen = 64, |
| 10690 | } |
| 10691 | }; |
| 10692 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10693 | static struct aead_testvec aes_gcm_enc_tv_template[] = { |
| 10694 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 10695 | .key = zeroed_string, |
| 10696 | .klen = 16, |
| 10697 | .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61" |
| 10698 | "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a", |
| 10699 | .rlen = 16, |
| 10700 | }, { |
| 10701 | .key = zeroed_string, |
| 10702 | .klen = 16, |
| 10703 | .input = zeroed_string, |
| 10704 | .ilen = 16, |
| 10705 | .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92" |
| 10706 | "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78" |
| 10707 | "\xab\x6e\x47\xd4\x2c\xec\x13\xbd" |
| 10708 | "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf", |
| 10709 | .rlen = 32, |
| 10710 | }, { |
| 10711 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10712 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 10713 | .klen = 16, |
| 10714 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10715 | "\xde\xca\xf8\x88", |
| 10716 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10717 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10718 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10719 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10720 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10721 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10722 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10723 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 10724 | .ilen = 64, |
| 10725 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 10726 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 10727 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 10728 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 10729 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 10730 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 10731 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 10732 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 10733 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 10734 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 10735 | .rlen = 80, |
| 10736 | }, { |
| 10737 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10738 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 10739 | .klen = 16, |
| 10740 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10741 | "\xde\xca\xf8\x88", |
| 10742 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10743 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10744 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10745 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10746 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10747 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10748 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10749 | "\xba\x63\x7b\x39", |
| 10750 | .ilen = 60, |
| 10751 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10752 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10753 | "\xab\xad\xda\xd2", |
| 10754 | .alen = 20, |
| 10755 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 10756 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 10757 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 10758 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 10759 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 10760 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 10761 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 10762 | "\x3d\x58\xe0\x91" |
| 10763 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 10764 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 10765 | .rlen = 76, |
| 10766 | }, { |
| 10767 | .key = zeroed_string, |
| 10768 | .klen = 24, |
| 10769 | .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b" |
| 10770 | "\xa0\x0e\xd1\xf3\x12\x57\x24\x35", |
| 10771 | .rlen = 16, |
| 10772 | }, { |
| 10773 | .key = zeroed_string, |
| 10774 | .klen = 24, |
| 10775 | .input = zeroed_string, |
| 10776 | .ilen = 16, |
| 10777 | .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 10778 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 10779 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 10780 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 10781 | .rlen = 32, |
| 10782 | }, { |
| 10783 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10784 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 10785 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 10786 | .klen = 24, |
| 10787 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10788 | "\xde\xca\xf8\x88", |
| 10789 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10790 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10791 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10792 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10793 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10794 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10795 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10796 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 10797 | .ilen = 64, |
| 10798 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 10799 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 10800 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 10801 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 10802 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 10803 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 10804 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 10805 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 10806 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 10807 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 10808 | .rlen = 80, |
| 10809 | }, { |
| 10810 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10811 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 10812 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 10813 | .klen = 24, |
| 10814 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10815 | "\xde\xca\xf8\x88", |
| 10816 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10817 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10818 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10819 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10820 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10821 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10822 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10823 | "\xba\x63\x7b\x39", |
| 10824 | .ilen = 60, |
| 10825 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10826 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10827 | "\xab\xad\xda\xd2", |
| 10828 | .alen = 20, |
| 10829 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 10830 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 10831 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 10832 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 10833 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 10834 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 10835 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 10836 | "\xcc\xda\x27\x10" |
| 10837 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 10838 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 10839 | .rlen = 76, |
| 10840 | .np = 2, |
| 10841 | .tap = { 32, 28 }, |
| 10842 | .anp = 2, |
| 10843 | .atap = { 8, 12 } |
| 10844 | }, { |
| 10845 | .key = zeroed_string, |
| 10846 | .klen = 32, |
| 10847 | .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9" |
| 10848 | "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b", |
| 10849 | .rlen = 16, |
| 10850 | } |
| 10851 | }; |
| 10852 | |
| 10853 | static struct aead_testvec aes_gcm_dec_tv_template[] = { |
| 10854 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 10855 | .key = zeroed_string, |
| 10856 | .klen = 32, |
| 10857 | .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e" |
| 10858 | "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18" |
| 10859 | "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0" |
| 10860 | "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19", |
| 10861 | .ilen = 32, |
| 10862 | .result = zeroed_string, |
| 10863 | .rlen = 16, |
| 10864 | }, { |
| 10865 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10866 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 10867 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10868 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 10869 | .klen = 32, |
| 10870 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10871 | "\xde\xca\xf8\x88", |
| 10872 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 10873 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 10874 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 10875 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 10876 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 10877 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 10878 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 10879 | "\xbc\xc9\xf6\x62\x89\x80\x15\xad" |
| 10880 | "\xb0\x94\xda\xc5\xd9\x34\x71\xbd" |
| 10881 | "\xec\x1a\x50\x22\x70\xe3\xcc\x6c", |
| 10882 | .ilen = 80, |
| 10883 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10884 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10885 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10886 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10887 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10888 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10889 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10890 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 10891 | .rlen = 64, |
| 10892 | }, { |
| 10893 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10894 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 10895 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10896 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 10897 | .klen = 32, |
| 10898 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10899 | "\xde\xca\xf8\x88", |
| 10900 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 10901 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 10902 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 10903 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 10904 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 10905 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 10906 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 10907 | "\xbc\xc9\xf6\x62" |
| 10908 | "\x76\xfc\x6e\xce\x0f\x4e\x17\x68" |
| 10909 | "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b", |
| 10910 | .ilen = 76, |
| 10911 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10912 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10913 | "\xab\xad\xda\xd2", |
| 10914 | .alen = 20, |
| 10915 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10916 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10917 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10918 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10919 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10920 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10921 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10922 | "\xba\x63\x7b\x39", |
| 10923 | .rlen = 60, |
| 10924 | .np = 2, |
| 10925 | .tap = { 48, 28 }, |
| 10926 | .anp = 3, |
| 10927 | .atap = { 8, 8, 4 } |
| 10928 | }, { |
| 10929 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10930 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 10931 | .klen = 16, |
| 10932 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10933 | "\xde\xca\xf8\x88", |
| 10934 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 10935 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 10936 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 10937 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 10938 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 10939 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 10940 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 10941 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 10942 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 10943 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 10944 | .ilen = 80, |
| 10945 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10946 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10947 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10948 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10949 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10950 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10951 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10952 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 10953 | .rlen = 64, |
| 10954 | }, { |
| 10955 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10956 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 10957 | .klen = 16, |
| 10958 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 10959 | "\xde\xca\xf8\x88", |
| 10960 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 10961 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 10962 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 10963 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 10964 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 10965 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 10966 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 10967 | "\x3d\x58\xe0\x91" |
| 10968 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 10969 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 10970 | .ilen = 76, |
| 10971 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10972 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 10973 | "\xab\xad\xda\xd2", |
| 10974 | .alen = 20, |
| 10975 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 10976 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 10977 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 10978 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 10979 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 10980 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 10981 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 10982 | "\xba\x63\x7b\x39", |
| 10983 | .rlen = 60, |
| 10984 | }, { |
| 10985 | .key = zeroed_string, |
| 10986 | .klen = 24, |
| 10987 | .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 10988 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 10989 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 10990 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 10991 | .ilen = 32, |
| 10992 | .result = zeroed_string, |
| 10993 | .rlen = 16, |
| 10994 | }, { |
| 10995 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 10996 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 10997 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 10998 | .klen = 24, |
| 10999 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 11000 | "\xde\xca\xf8\x88", |
| 11001 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 11002 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 11003 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 11004 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 11005 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 11006 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 11007 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 11008 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 11009 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 11010 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 11011 | .ilen = 80, |
| 11012 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 11013 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 11014 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 11015 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 11016 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 11017 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 11018 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 11019 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 11020 | .rlen = 64, |
| 11021 | }, { |
| 11022 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11023 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11024 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 11025 | .klen = 24, |
| 11026 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 11027 | "\xde\xca\xf8\x88", |
| 11028 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 11029 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 11030 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 11031 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 11032 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 11033 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 11034 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 11035 | "\xcc\xda\x27\x10" |
| 11036 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 11037 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 11038 | .ilen = 76, |
| 11039 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 11040 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 11041 | "\xab\xad\xda\xd2", |
| 11042 | .alen = 20, |
| 11043 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 11044 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 11045 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 11046 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 11047 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 11048 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 11049 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 11050 | "\xba\x63\x7b\x39", |
| 11051 | .rlen = 60, |
| 11052 | } |
| 11053 | }; |
| 11054 | |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 11055 | static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = { |
| 11056 | { /* Generated using Crypto++ */ |
| 11057 | .key = zeroed_string, |
| 11058 | .klen = 20, |
| 11059 | .iv = zeroed_string, |
| 11060 | .input = zeroed_string, |
| 11061 | .ilen = 16, |
| 11062 | .assoc = zeroed_string, |
| 11063 | .alen = 8, |
| 11064 | .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
| 11065 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 11066 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 11067 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
| 11068 | .rlen = 32, |
| 11069 | },{ |
| 11070 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11071 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11072 | "\x00\x00\x00\x00", |
| 11073 | .klen = 20, |
| 11074 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 11075 | "\x00\x00\x00\x00", |
| 11076 | .input = zeroed_string, |
| 11077 | .ilen = 16, |
| 11078 | .assoc = zeroed_string, |
| 11079 | .alen = 8, |
| 11080 | .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
| 11081 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 11082 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 11083 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
| 11084 | .rlen = 32, |
| 11085 | |
| 11086 | }, { |
| 11087 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11088 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11089 | "\x00\x00\x00\x00", |
| 11090 | .klen = 20, |
| 11091 | .iv = zeroed_string, |
| 11092 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11093 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11094 | .ilen = 16, |
| 11095 | .assoc = zeroed_string, |
| 11096 | .alen = 8, |
| 11097 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 11098 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 11099 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 11100 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
| 11101 | .rlen = 32, |
| 11102 | }, { |
| 11103 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11104 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11105 | "\x00\x00\x00\x00", |
| 11106 | .klen = 20, |
| 11107 | .iv = zeroed_string, |
| 11108 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11109 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11110 | .ilen = 16, |
| 11111 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11112 | .alen = 8, |
| 11113 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 11114 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 11115 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 11116 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
| 11117 | .rlen = 32, |
| 11118 | }, { |
| 11119 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11120 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11121 | "\x00\x00\x00\x00", |
| 11122 | .klen = 20, |
| 11123 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 11124 | "\x00\x00\x00\x00", |
| 11125 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11126 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11127 | .ilen = 16, |
| 11128 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11129 | .alen = 8, |
| 11130 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 11131 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 11132 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 11133 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
| 11134 | .rlen = 32, |
| 11135 | }, { |
| 11136 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11137 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11138 | "\x00\x00\x00\x00", |
| 11139 | .klen = 20, |
| 11140 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 11141 | "\x00\x00\x00\x00", |
| 11142 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11143 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11144 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11145 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11146 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11147 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11148 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11149 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11150 | .ilen = 64, |
| 11151 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11152 | .alen = 8, |
| 11153 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 11154 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 11155 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 11156 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 11157 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 11158 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 11159 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 11160 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 11161 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 11162 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
| 11163 | .rlen = 80, |
| 11164 | }, { |
| 11165 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11166 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11167 | "\x00\x00\x00\x00", |
| 11168 | .klen = 20, |
| 11169 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef" |
| 11170 | "\x00\x00\x00\x00", |
| 11171 | .input = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11172 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11173 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11174 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11175 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11176 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11177 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11178 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11179 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11180 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11181 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11182 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11183 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11184 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11185 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11186 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11187 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11188 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11189 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11190 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11191 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11192 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11193 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11194 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 11195 | .ilen = 192, |
| 11196 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 11197 | "\xaa\xaa\xaa\xaa", |
| 11198 | .alen = 12, |
| 11199 | .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 11200 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 11201 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 11202 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 11203 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 11204 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 11205 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 11206 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 11207 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 11208 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 11209 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 11210 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 11211 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 11212 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 11213 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 11214 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 11215 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 11216 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 11217 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 11218 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 11219 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 11220 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 11221 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 11222 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 11223 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 11224 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 11225 | .rlen = 208, |
| 11226 | } |
| 11227 | }; |
| 11228 | |
| 11229 | static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = { |
| 11230 | { /* Generated using Crypto++ */ |
| 11231 | .key = zeroed_string, |
| 11232 | .klen = 20, |
| 11233 | .iv = zeroed_string, |
| 11234 | .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
| 11235 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 11236 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 11237 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
| 11238 | .ilen = 32, |
| 11239 | .assoc = zeroed_string, |
| 11240 | .alen = 8, |
| 11241 | .result = zeroed_string, |
| 11242 | .rlen = 16, |
| 11243 | |
| 11244 | },{ |
| 11245 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11246 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11247 | "\x00\x00\x00\x00", |
| 11248 | .klen = 20, |
| 11249 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 11250 | "\x00\x00\x00\x00", |
| 11251 | .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
| 11252 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 11253 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 11254 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
| 11255 | .ilen = 32, |
| 11256 | .assoc = zeroed_string, |
| 11257 | .alen = 8, |
| 11258 | .result = zeroed_string, |
| 11259 | .rlen = 16, |
| 11260 | }, { |
| 11261 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11262 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11263 | "\x00\x00\x00\x00", |
| 11264 | .klen = 20, |
| 11265 | .iv = zeroed_string, |
| 11266 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 11267 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 11268 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 11269 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
| 11270 | .ilen = 32, |
| 11271 | .assoc = zeroed_string, |
| 11272 | .alen = 8, |
| 11273 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11274 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11275 | .rlen = 16, |
| 11276 | }, { |
| 11277 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11278 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11279 | "\x00\x00\x00\x00", |
| 11280 | .klen = 20, |
| 11281 | .iv = zeroed_string, |
| 11282 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
| 11283 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 11284 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 11285 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
| 11286 | .ilen = 32, |
| 11287 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11288 | .alen = 8, |
| 11289 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11290 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11291 | .rlen = 16, |
| 11292 | |
| 11293 | }, { |
| 11294 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11295 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11296 | "\x00\x00\x00\x00", |
| 11297 | .klen = 20, |
| 11298 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 11299 | "\x00\x00\x00\x00", |
| 11300 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 11301 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 11302 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 11303 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
| 11304 | .ilen = 32, |
| 11305 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11306 | .alen = 8, |
| 11307 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11308 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11309 | .rlen = 16, |
| 11310 | }, { |
| 11311 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 11312 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 11313 | "\x00\x00\x00\x00", |
| 11314 | .klen = 20, |
| 11315 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 11316 | "\x00\x00\x00\x00", |
| 11317 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
| 11318 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 11319 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 11320 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 11321 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 11322 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 11323 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 11324 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 11325 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 11326 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
| 11327 | .ilen = 80, |
| 11328 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11329 | .alen = 8, |
| 11330 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11331 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11332 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11333 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11334 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11335 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11336 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 11337 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 11338 | .rlen = 64, |
| 11339 | }, { |
| 11340 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11341 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11342 | "\x00\x00\x00\x00", |
| 11343 | .klen = 20, |
| 11344 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef" |
| 11345 | "\x00\x00\x00\x00", |
| 11346 | .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 11347 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 11348 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 11349 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 11350 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 11351 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 11352 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 11353 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 11354 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 11355 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 11356 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 11357 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 11358 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 11359 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 11360 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 11361 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 11362 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 11363 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 11364 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 11365 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 11366 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 11367 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 11368 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 11369 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 11370 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 11371 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 11372 | .ilen = 208, |
| 11373 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 11374 | "\xaa\xaa\xaa\xaa", |
| 11375 | .alen = 12, |
| 11376 | .result = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11377 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11378 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11379 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11380 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11381 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11382 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11383 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11384 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11385 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11386 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11387 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11388 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11389 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11390 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11391 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11392 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11393 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11394 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11395 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11396 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11397 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11398 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 11399 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 11400 | .rlen = 192, |
| 11401 | |
| 11402 | } |
| 11403 | }; |
| 11404 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 11405 | static struct aead_testvec aes_ccm_enc_tv_template[] = { |
| 11406 | { /* From RFC 3610 */ |
| 11407 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11408 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11409 | .klen = 16, |
| 11410 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 11411 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11412 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 11413 | .alen = 8, |
| 11414 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11415 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11416 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 11417 | .ilen = 23, |
| 11418 | .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 11419 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 11420 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 11421 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 11422 | .rlen = 31, |
| 11423 | }, { |
| 11424 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11425 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11426 | .klen = 16, |
| 11427 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 11428 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11429 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11430 | "\x08\x09\x0a\x0b", |
| 11431 | .alen = 12, |
| 11432 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 11433 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 11434 | "\x1c\x1d\x1e\x1f", |
| 11435 | .ilen = 20, |
| 11436 | .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 11437 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 11438 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 11439 | "\x7d\x9c\x2d\x93", |
| 11440 | .rlen = 28, |
| 11441 | }, { |
| 11442 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11443 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11444 | .klen = 16, |
| 11445 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 11446 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11447 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 11448 | .alen = 8, |
| 11449 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11450 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11451 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11452 | "\x20", |
| 11453 | .ilen = 25, |
| 11454 | .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 11455 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 11456 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 11457 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 11458 | "\x7e\x5f\x4e", |
| 11459 | .rlen = 35, |
| 11460 | }, { |
| 11461 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11462 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11463 | .klen = 16, |
| 11464 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 11465 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11466 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11467 | "\x08\x09\x0a\x0b", |
| 11468 | .alen = 12, |
| 11469 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 11470 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 11471 | "\x1c\x1d\x1e", |
| 11472 | .ilen = 19, |
| 11473 | .result = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 11474 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 11475 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 11476 | "\x4d\x99\x99\x88\xdd", |
| 11477 | .rlen = 29, |
| 11478 | }, { |
| 11479 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 11480 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 11481 | .klen = 16, |
| 11482 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 11483 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 11484 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 11485 | .alen = 8, |
| 11486 | .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 11487 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 11488 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 11489 | .ilen = 24, |
| 11490 | .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 11491 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 11492 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 11493 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 11494 | .rlen = 32, |
| 11495 | }, { |
| 11496 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 11497 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 11498 | .klen = 16, |
| 11499 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 11500 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 11501 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 11502 | "\x20\xea\x60\xc0", |
| 11503 | .alen = 12, |
| 11504 | .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 11505 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 11506 | "\x3a\x80\x3b\xa8\x7f", |
| 11507 | .ilen = 21, |
| 11508 | .result = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 11509 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 11510 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 11511 | "\x5a\xe0\x70\x45\x51", |
| 11512 | .rlen = 29, |
| 11513 | }, { |
| 11514 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 11515 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 11516 | .klen = 16, |
| 11517 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 11518 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 11519 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 11520 | .alen = 8, |
| 11521 | .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 11522 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 11523 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 11524 | .ilen = 23, |
| 11525 | .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 11526 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 11527 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 11528 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 11529 | "\xba", |
| 11530 | .rlen = 33, |
| 11531 | }, |
| 11532 | }; |
| 11533 | |
| 11534 | static struct aead_testvec aes_ccm_dec_tv_template[] = { |
| 11535 | { /* From RFC 3610 */ |
| 11536 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11537 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11538 | .klen = 16, |
| 11539 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 11540 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11541 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 11542 | .alen = 8, |
| 11543 | .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 11544 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 11545 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 11546 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 11547 | .ilen = 31, |
| 11548 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11549 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11550 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 11551 | .rlen = 23, |
| 11552 | }, { |
| 11553 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11554 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11555 | .klen = 16, |
| 11556 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 11557 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11558 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11559 | "\x08\x09\x0a\x0b", |
| 11560 | .alen = 12, |
| 11561 | .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 11562 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 11563 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 11564 | "\x7d\x9c\x2d\x93", |
| 11565 | .ilen = 28, |
| 11566 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 11567 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 11568 | "\x1c\x1d\x1e\x1f", |
| 11569 | .rlen = 20, |
| 11570 | }, { |
| 11571 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11572 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11573 | .klen = 16, |
| 11574 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 11575 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11576 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 11577 | .alen = 8, |
| 11578 | .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 11579 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 11580 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 11581 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 11582 | "\x7e\x5f\x4e", |
| 11583 | .ilen = 35, |
| 11584 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11585 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11586 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11587 | "\x20", |
| 11588 | .rlen = 25, |
| 11589 | }, { |
| 11590 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11591 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 11592 | .klen = 16, |
| 11593 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 11594 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 11595 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11596 | "\x08\x09\x0a\x0b", |
| 11597 | .alen = 12, |
| 11598 | .input = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 11599 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 11600 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 11601 | "\x4d\x99\x99\x88\xdd", |
| 11602 | .ilen = 29, |
| 11603 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 11604 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 11605 | "\x1c\x1d\x1e", |
| 11606 | .rlen = 19, |
| 11607 | }, { |
| 11608 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 11609 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 11610 | .klen = 16, |
| 11611 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 11612 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 11613 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 11614 | .alen = 8, |
| 11615 | .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 11616 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 11617 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 11618 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 11619 | .ilen = 32, |
| 11620 | .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 11621 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 11622 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 11623 | .rlen = 24, |
| 11624 | }, { |
| 11625 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 11626 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 11627 | .klen = 16, |
| 11628 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 11629 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 11630 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 11631 | "\x20\xea\x60\xc0", |
| 11632 | .alen = 12, |
| 11633 | .input = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 11634 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 11635 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 11636 | "\x5a\xe0\x70\x45\x51", |
| 11637 | .ilen = 29, |
| 11638 | .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 11639 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 11640 | "\x3a\x80\x3b\xa8\x7f", |
| 11641 | .rlen = 21, |
| 11642 | }, { |
| 11643 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 11644 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 11645 | .klen = 16, |
| 11646 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 11647 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 11648 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 11649 | .alen = 8, |
| 11650 | .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 11651 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 11652 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 11653 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 11654 | "\xba", |
| 11655 | .ilen = 33, |
| 11656 | .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 11657 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 11658 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 11659 | .rlen = 23, |
| 11660 | }, |
| 11661 | }; |
| 11662 | |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 11663 | /* |
| 11664 | * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all |
| 11665 | * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of |
| 11666 | * Special Publication 800-38C's test vectors also use nonce lengths our |
| 11667 | * implementation doesn't support. The following are taken from fips cavs |
| 11668 | * fax files on hand at Red Hat. |
| 11669 | * |
| 11670 | * nb: actual key lengths are (klen - 3), the last 3 bytes are actually |
| 11671 | * part of the nonce which combine w/the iv, but need to be input this way. |
| 11672 | */ |
| 11673 | static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = { |
| 11674 | { |
| 11675 | .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05" |
| 11676 | "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e" |
| 11677 | "\x96\xac\x59", |
| 11678 | .klen = 19, |
| 11679 | .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24", |
| 11680 | .alen = 0, |
| 11681 | .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93" |
| 11682 | "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e" |
| 11683 | "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c" |
| 11684 | "\x35\x2e\xad\xe0\x62\xf9\x91\xa1", |
| 11685 | .ilen = 32, |
| 11686 | .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8" |
| 11687 | "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1" |
| 11688 | "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a" |
| 11689 | "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32" |
| 11690 | "\xda\x24\xea\xd9\xa1\x39\x98\xfd" |
| 11691 | "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8", |
| 11692 | .rlen = 48, |
| 11693 | }, { |
| 11694 | .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0" |
| 11695 | "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3" |
| 11696 | "\x4f\xa3\x19", |
| 11697 | .klen = 19, |
| 11698 | .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56", |
| 11699 | .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63" |
| 11700 | "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7" |
| 11701 | "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1" |
| 11702 | "\x0a\x63\x09\x78\xbc\x2c\x55\xde", |
| 11703 | .alen = 32, |
| 11704 | .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78" |
| 11705 | "\xa9\x28\x63\xba\x12\xa3\x14\x85" |
| 11706 | "\x57\x1e\x06\xc9\x7b\x21\xef\x76" |
| 11707 | "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e", |
| 11708 | .ilen = 32, |
| 11709 | .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19" |
| 11710 | "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab" |
| 11711 | "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff" |
| 11712 | "\x3b\xb5\xce\x53\xef\xde\xbb\x02" |
| 11713 | "\xa9\x86\x15\x6c\x13\xfe\xda\x0a" |
| 11714 | "\x22\xb8\x29\x3d\xd8\x39\x9a\x23", |
| 11715 | .rlen = 48, |
| 11716 | }, { |
| 11717 | .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1" |
| 11718 | "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75" |
| 11719 | "\x53\x14\x73\x66\x8d\x88\xf6\x80" |
| 11720 | "\xa0\x20\x35", |
| 11721 | .klen = 27, |
| 11722 | .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2", |
| 11723 | .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1" |
| 11724 | "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47" |
| 11725 | "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d" |
| 11726 | "\xd8\x9e\x2b\x56\x10\x23\x56\xe7", |
| 11727 | .alen = 32, |
| 11728 | .ilen = 0, |
| 11729 | .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc" |
| 11730 | "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b", |
| 11731 | .rlen = 16, |
| 11732 | }, { |
| 11733 | .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42" |
| 11734 | "\xef\x7a\xd3\xce\xfc\x84\x60\x62" |
| 11735 | "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01" |
| 11736 | "\xd6\x3c\x8c", |
| 11737 | .klen = 27, |
| 11738 | .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94", |
| 11739 | .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91" |
| 11740 | "\xb1\xb9\xda\x76\x9a\x78\x6d\x95" |
| 11741 | "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c" |
| 11742 | "\xe3\x00\x73\x69\x84\x69\x87\x79", |
| 11743 | .alen = 32, |
| 11744 | .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c" |
| 11745 | "\x43\x69\x3a\x2d\x8e\x70\xad\x7e" |
| 11746 | "\xe0\xe5\x46\x09\x80\x89\x13\xb2" |
| 11747 | "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b", |
| 11748 | .ilen = 32, |
| 11749 | .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62" |
| 11750 | "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f" |
| 11751 | "\x9b\x6a\x09\x70\xc1\x51\x83\xc2" |
| 11752 | "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e" |
| 11753 | "\xc7\x79\x11\x58\xe5\x6b\x20\x40" |
| 11754 | "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1", |
| 11755 | .rlen = 48, |
| 11756 | }, { |
| 11757 | .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a" |
| 11758 | "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a" |
| 11759 | "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e" |
| 11760 | "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b" |
| 11761 | "\x1e\x29\x91", |
| 11762 | .klen = 35, |
| 11763 | .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe", |
| 11764 | .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b" |
| 11765 | "\x78\x2b\x94\x02\x29\x0f\x42\x27" |
| 11766 | "\x6b\x75\xcb\x98\x34\x08\x7e\x79" |
| 11767 | "\xe4\x3e\x49\x0d\x84\x8b\x22\x87", |
| 11768 | .alen = 32, |
| 11769 | .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f" |
| 11770 | "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66" |
| 11771 | "\xbf\x17\x99\x62\x4a\x39\x27\x1f" |
| 11772 | "\x1d\xdc\x24\xae\x19\x2f\x98\x4c", |
| 11773 | .ilen = 32, |
| 11774 | .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96" |
| 11775 | "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6" |
| 11776 | "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f" |
| 11777 | "\xf0\x62\x17\x34\xf2\x1e\x8d\x75" |
| 11778 | "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d", |
| 11779 | .rlen = 40, |
| 11780 | }, { |
| 11781 | .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c" |
| 11782 | "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32" |
| 11783 | "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c" |
| 11784 | "\x09\x75\x9a\x9b\x3c\x9b\x27\x39" |
| 11785 | "\xf9\xd9\x4e", |
| 11786 | .klen = 35, |
| 11787 | .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50", |
| 11788 | .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b" |
| 11789 | "\x13\x02\x01\x0c\x83\x4c\x96\x35" |
| 11790 | "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94" |
| 11791 | "\xb0\x39\x36\xe6\x8f\x57\xe0\x13", |
| 11792 | .alen = 32, |
| 11793 | .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6" |
| 11794 | "\x83\x72\x07\x4f\xcf\xfa\x66\x89" |
| 11795 | "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27" |
| 11796 | "\x30\xdb\x75\x09\x93\xd4\x65\xe4", |
| 11797 | .ilen = 32, |
| 11798 | .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d" |
| 11799 | "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d" |
| 11800 | "\xcc\x63\x44\x25\x07\x78\x4f\x9e" |
| 11801 | "\x96\xb8\x88\xeb\xbc\x48\x1f\x06" |
| 11802 | "\x39\xaf\x39\xac\xd8\x4a\x80\x39" |
| 11803 | "\x7b\x72\x8a\xf7", |
| 11804 | .rlen = 44, |
| 11805 | }, { |
| 11806 | .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83" |
| 11807 | "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46" |
| 11808 | "\xf9\x8f\xad\xe3\x02\x13\x83\x77" |
| 11809 | "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b" |
| 11810 | "\x24\xa7\x8b", |
| 11811 | .klen = 35, |
| 11812 | .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5", |
| 11813 | .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f" |
| 11814 | "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d" |
| 11815 | "\xab\x90\x65\x8d\x8e\xca\x4d\x4f" |
| 11816 | "\x16\x0c\x40\x90\x4b\xc7\x36\x73", |
| 11817 | .alen = 32, |
| 11818 | .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92" |
| 11819 | "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d" |
| 11820 | "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2" |
| 11821 | "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a", |
| 11822 | .ilen = 32, |
| 11823 | .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13" |
| 11824 | "\xef\xbb\x80\x21\x04\x6c\x58\x09" |
| 11825 | "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7" |
| 11826 | "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf" |
| 11827 | "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d" |
| 11828 | "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8", |
| 11829 | .rlen = 48, |
| 11830 | }, |
| 11831 | }; |
| 11832 | |
| 11833 | static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = { |
| 11834 | { |
| 11835 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
| 11836 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9" |
| 11837 | "\xc6\xfb\x7d", |
| 11838 | .klen = 19, |
| 11839 | .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8", |
| 11840 | .alen = 0, |
| 11841 | .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b", |
| 11842 | .ilen = 8, |
| 11843 | .result = "\x00", |
| 11844 | .rlen = 0, |
| 11845 | .novrfy = 1, |
| 11846 | }, { |
| 11847 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
| 11848 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9" |
| 11849 | "\xaf\x94\x87", |
| 11850 | .klen = 19, |
| 11851 | .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68", |
| 11852 | .alen = 0, |
| 11853 | .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3", |
| 11854 | .ilen = 8, |
| 11855 | .result = "\x00", |
| 11856 | .rlen = 0, |
| 11857 | }, { |
| 11858 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
| 11859 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8" |
| 11860 | "\xc6\xfb\x7d", |
| 11861 | .klen = 19, |
| 11862 | .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8", |
| 11863 | .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f" |
| 11864 | "\x88\x94\x68\xb1\x78\x6b\x2b\xd6" |
| 11865 | "\x04\x1f\x4e\xed\x78\xd5\x33\x66" |
| 11866 | "\xd8\x94\x99\x91\x81\x54\x62\x57", |
| 11867 | .alen = 32, |
| 11868 | .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55" |
| 11869 | "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a" |
| 11870 | "\x86\xb0\x87\x6b\x62\x33\x8c\x34" |
| 11871 | "\xce\xab\x57\xcc\x79\x0b\xe0\x6f" |
| 11872 | "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51" |
| 11873 | "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5", |
| 11874 | .ilen = 48, |
| 11875 | .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb" |
| 11876 | "\x33\xe4\x73\xce\xd2\xfb\x95\x79" |
| 11877 | "\xe8\xb4\xb5\x77\x11\x10\x62\x6f" |
| 11878 | "\x6a\x82\xd1\x13\xec\xf5\xd0\x48", |
| 11879 | .rlen = 32, |
| 11880 | .novrfy = 1, |
| 11881 | }, { |
| 11882 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
| 11883 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8" |
| 11884 | "\x05\xe0\xc9", |
| 11885 | .klen = 19, |
| 11886 | .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf", |
| 11887 | .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81" |
| 11888 | "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1" |
| 11889 | "\xd8\x5c\x42\x68\xe0\x6c\xda\x89" |
| 11890 | "\x05\xac\x56\xac\x1b\x2a\xd3\x86", |
| 11891 | .alen = 32, |
| 11892 | .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c" |
| 11893 | "\xad\x83\x52\x6d\x71\x03\x25\x1c" |
| 11894 | "\xed\x81\x3a\x9a\x16\x7d\x19\x80" |
| 11895 | "\x72\x04\x72\xd0\xf6\xff\x05\x0f" |
| 11896 | "\xb7\x14\x30\x00\x32\x9e\xa0\xa6" |
| 11897 | "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3", |
| 11898 | .ilen = 48, |
| 11899 | .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60" |
| 11900 | "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7" |
| 11901 | "\xf2\xae\x61\x05\x8f\x82\x24\x3f" |
| 11902 | "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c", |
| 11903 | .rlen = 32, |
| 11904 | }, { |
| 11905 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 11906 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
| 11907 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6" |
| 11908 | "\xee\x49\x83", |
| 11909 | .klen = 27, |
| 11910 | .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", |
| 11911 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 11912 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 11913 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 11914 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 11915 | .alen = 32, |
| 11916 | .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b", |
| 11917 | .ilen = 8, |
| 11918 | .result = "\x00", |
| 11919 | .rlen = 0, |
| 11920 | }, { |
| 11921 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 11922 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 11923 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
| 11924 | "\xee\x49\x83", |
| 11925 | .klen = 27, |
| 11926 | .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", |
| 11927 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 11928 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 11929 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 11930 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 11931 | .alen = 32, |
| 11932 | .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7" |
| 11933 | "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2" |
| 11934 | "\x66\xca\x61\x1e\x96\x7a\x61\xb3" |
| 11935 | "\x1c\x16\x45\x52\xba\x04\x9c\x9f" |
| 11936 | "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1", |
| 11937 | .ilen = 40, |
| 11938 | .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36" |
| 11939 | "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb" |
| 11940 | "\x0a\x85\xcc\x02\xad\x7a\x96\xe9" |
| 11941 | "\x65\x43\xa4\xc3\x0f\xdc\x55\x81", |
| 11942 | .rlen = 32, |
| 11943 | }, { |
| 11944 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 11945 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 11946 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
| 11947 | "\xd1\xfc\x57", |
| 11948 | .klen = 27, |
| 11949 | .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f", |
| 11950 | .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6" |
| 11951 | "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3" |
| 11952 | "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7" |
| 11953 | "\x3c\xa1\x52\x13\x03\x8a\x23\x3a", |
| 11954 | .alen = 32, |
| 11955 | .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00" |
| 11956 | "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37" |
| 11957 | "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa" |
| 11958 | "\x64\x19\xc0\x30\xd7\xfc\x14\x6b" |
| 11959 | "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f" |
| 11960 | "\xa9\xb4\x2d\x68\x03\xa3\x44\xef", |
| 11961 | .ilen = 48, |
| 11962 | .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed" |
| 11963 | "\x99\x2a\xa8\xca\x04\x25\x45\x90" |
| 11964 | "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c" |
| 11965 | "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b", |
| 11966 | .rlen = 32, |
| 11967 | .novrfy = 1, |
| 11968 | }, { |
| 11969 | .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01" |
| 11970 | "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c" |
| 11971 | "\x20\x2c\xad\x30\xc2\x2b\x41\xfb" |
| 11972 | "\x0e\x85\xbc\x33\xad\x0f\x2b\xff" |
| 11973 | "\xee\x49\x83", |
| 11974 | .klen = 35, |
| 11975 | .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", |
| 11976 | .alen = 0, |
| 11977 | .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2", |
| 11978 | .ilen = 8, |
| 11979 | .result = "\x00", |
| 11980 | .rlen = 0, |
| 11981 | }, { |
| 11982 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 11983 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
| 11984 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6" |
| 11985 | "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb" |
| 11986 | "\x85\x34\x66", |
| 11987 | .klen = 35, |
| 11988 | .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b", |
| 11989 | .alen = 0, |
| 11990 | .input = "\x48\x01\x5e\x02\x24\x04\x66\x47" |
| 11991 | "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd" |
| 11992 | "\xa5\xa9\x87\x8d\x84\xee\x2e\x77" |
| 11993 | "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6" |
| 11994 | "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07" |
| 11995 | "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a", |
| 11996 | .ilen = 48, |
| 11997 | .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c" |
| 11998 | "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99" |
| 11999 | "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39" |
| 12000 | "\x89\xd4\x75\x7a\x63\xb1\xda\x93", |
| 12001 | .rlen = 32, |
| 12002 | .novrfy = 1, |
| 12003 | }, { |
| 12004 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 12005 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 12006 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
| 12007 | "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b" |
| 12008 | "\xcf\x76\x3f", |
| 12009 | .klen = 35, |
| 12010 | .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b", |
| 12011 | .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88" |
| 12012 | "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b" |
| 12013 | "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b" |
| 12014 | "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe", |
| 12015 | .alen = 32, |
| 12016 | .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf" |
| 12017 | "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4" |
| 12018 | "\x78\x5c\x4c\x67\x71\x89\x94\xbf" |
| 12019 | "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5" |
| 12020 | "\x7f\x44\x0a\x0c\x01\x18\x07\x92" |
| 12021 | "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b", |
| 12022 | .ilen = 48, |
| 12023 | .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40" |
| 12024 | "\x49\x71\xe4\xb7\xe7\xcb\x76\x61" |
| 12025 | "\x0a\x41\xb9\xe9\xc0\x76\x54\xab" |
| 12026 | "\x04\x49\x3b\x19\x93\x57\x25\x5d", |
| 12027 | .rlen = 32, |
| 12028 | }, |
| 12029 | }; |
| 12030 | |
Jarod Wilson | e08ca2d | 2009-05-04 19:46:29 +0800 | [diff] [blame] | 12031 | /* |
| 12032 | * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode) |
| 12033 | * test vectors, taken from Appendix B.2.9 and B.2.10: |
| 12034 | * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf |
| 12035 | * Only AES-128 is supported at this time. |
| 12036 | */ |
| 12037 | #define ANSI_CPRNG_AES_TEST_VECTORS 6 |
| 12038 | |
| 12039 | static struct cprng_testvec ansi_cprng_aes_tv_template[] = { |
| 12040 | { |
| 12041 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 12042 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 12043 | .klen = 16, |
| 12044 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 12045 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9", |
| 12046 | .dtlen = 16, |
| 12047 | .v = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 12048 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12049 | .vlen = 16, |
| 12050 | .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55" |
| 12051 | "\x84\x79\x66\x85\xc1\x2f\x76\x41", |
| 12052 | .rlen = 16, |
| 12053 | .loops = 1, |
| 12054 | }, { |
| 12055 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 12056 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 12057 | .klen = 16, |
| 12058 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 12059 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa", |
| 12060 | .dtlen = 16, |
| 12061 | .v = "\xc0\x00\x00\x00\x00\x00\x00\x00" |
| 12062 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12063 | .vlen = 16, |
| 12064 | .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c" |
| 12065 | "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d", |
| 12066 | .rlen = 16, |
| 12067 | .loops = 1, |
| 12068 | }, { |
| 12069 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 12070 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 12071 | .klen = 16, |
| 12072 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 12073 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb", |
| 12074 | .dtlen = 16, |
| 12075 | .v = "\xe0\x00\x00\x00\x00\x00\x00\x00" |
| 12076 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12077 | .vlen = 16, |
| 12078 | .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5" |
| 12079 | "\x29\x14\x28\x81\xa9\x4d\x4e\xc7", |
| 12080 | .rlen = 16, |
| 12081 | .loops = 1, |
| 12082 | }, { |
| 12083 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 12084 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 12085 | .klen = 16, |
| 12086 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 12087 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc", |
| 12088 | .dtlen = 16, |
| 12089 | .v = "\xf0\x00\x00\x00\x00\x00\x00\x00" |
| 12090 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12091 | .vlen = 16, |
| 12092 | .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5" |
| 12093 | "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a", |
| 12094 | .rlen = 16, |
| 12095 | .loops = 1, |
| 12096 | }, { |
| 12097 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 12098 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 12099 | .klen = 16, |
| 12100 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 12101 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd", |
| 12102 | .dtlen = 16, |
| 12103 | .v = "\xf8\x00\x00\x00\x00\x00\x00\x00" |
| 12104 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12105 | .vlen = 16, |
| 12106 | .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb" |
| 12107 | "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8", |
| 12108 | .rlen = 16, |
| 12109 | .loops = 1, |
| 12110 | }, { /* Monte Carlo Test */ |
| 12111 | .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5" |
| 12112 | "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48", |
| 12113 | .klen = 16, |
| 12114 | .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b" |
| 12115 | "\x67\xc9\x25\xfa\x70\x1f\x11\xac", |
| 12116 | .dtlen = 16, |
| 12117 | .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97" |
| 12118 | "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1", |
| 12119 | .vlen = 16, |
| 12120 | .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb" |
| 12121 | "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73", |
| 12122 | .rlen = 16, |
| 12123 | .loops = 10000, |
| 12124 | }, |
| 12125 | }; |
| 12126 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12127 | /* Cast5 test vectors from RFC 2144 */ |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 12128 | #define CAST5_ENC_TEST_VECTORS 4 |
| 12129 | #define CAST5_DEC_TEST_VECTORS 4 |
| 12130 | #define CAST5_CBC_ENC_TEST_VECTORS 1 |
| 12131 | #define CAST5_CBC_DEC_TEST_VECTORS 1 |
| 12132 | #define CAST5_CTR_ENC_TEST_VECTORS 1 |
| 12133 | #define CAST5_CTR_DEC_TEST_VECTORS 1 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12134 | |
| 12135 | static struct cipher_testvec cast5_enc_tv_template[] = { |
| 12136 | { |
| 12137 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 12138 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 12139 | .klen = 16, |
| 12140 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 12141 | .ilen = 8, |
| 12142 | .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 12143 | .rlen = 8, |
| 12144 | }, { |
| 12145 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 12146 | "\x23\x45", |
| 12147 | .klen = 10, |
| 12148 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 12149 | .ilen = 8, |
| 12150 | .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 12151 | .rlen = 8, |
| 12152 | }, { |
| 12153 | .key = "\x01\x23\x45\x67\x12", |
| 12154 | .klen = 5, |
| 12155 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 12156 | .ilen = 8, |
| 12157 | .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 12158 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 12159 | }, { /* Generated from TF test vectors */ |
| 12160 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12161 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 12162 | .klen = 16, |
| 12163 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 12164 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12165 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12166 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12167 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12168 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12169 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12170 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12171 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12172 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12173 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12174 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12175 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12176 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12177 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12178 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12179 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12180 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12181 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12182 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12183 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12184 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12185 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12186 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12187 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12188 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12189 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12190 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12191 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12192 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12193 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12194 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12195 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12196 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12197 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12198 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12199 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12200 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12201 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12202 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12203 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12204 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12205 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12206 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12207 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12208 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12209 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12210 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12211 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12212 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12213 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12214 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12215 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12216 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12217 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12218 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12219 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12220 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12221 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12222 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12223 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12224 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12225 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12226 | .ilen = 496, |
| 12227 | .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 12228 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 12229 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 12230 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 12231 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 12232 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 12233 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 12234 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 12235 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 12236 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 12237 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 12238 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 12239 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 12240 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 12241 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 12242 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 12243 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 12244 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 12245 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 12246 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 12247 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 12248 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 12249 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 12250 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 12251 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 12252 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 12253 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 12254 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 12255 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 12256 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 12257 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 12258 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 12259 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 12260 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 12261 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 12262 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 12263 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 12264 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 12265 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 12266 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 12267 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 12268 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 12269 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 12270 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 12271 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 12272 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 12273 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 12274 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 12275 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 12276 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 12277 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 12278 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 12279 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 12280 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 12281 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 12282 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 12283 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 12284 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 12285 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 12286 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 12287 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 12288 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 12289 | .rlen = 496, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12290 | }, |
| 12291 | }; |
| 12292 | |
| 12293 | static struct cipher_testvec cast5_dec_tv_template[] = { |
| 12294 | { |
| 12295 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 12296 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 12297 | .klen = 16, |
| 12298 | .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 12299 | .ilen = 8, |
| 12300 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 12301 | .rlen = 8, |
| 12302 | }, { |
| 12303 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 12304 | "\x23\x45", |
| 12305 | .klen = 10, |
| 12306 | .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 12307 | .ilen = 8, |
| 12308 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 12309 | .rlen = 8, |
| 12310 | }, { |
| 12311 | .key = "\x01\x23\x45\x67\x12", |
| 12312 | .klen = 5, |
| 12313 | .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 12314 | .ilen = 8, |
| 12315 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 12316 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 12317 | }, { /* Generated from TF test vectors */ |
| 12318 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12319 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 12320 | .klen = 16, |
| 12321 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 12322 | .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 12323 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 12324 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 12325 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 12326 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 12327 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 12328 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 12329 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 12330 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 12331 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 12332 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 12333 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 12334 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 12335 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 12336 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 12337 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 12338 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 12339 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 12340 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 12341 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 12342 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 12343 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 12344 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 12345 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 12346 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 12347 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 12348 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 12349 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 12350 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 12351 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 12352 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 12353 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 12354 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 12355 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 12356 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 12357 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 12358 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 12359 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 12360 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 12361 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 12362 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 12363 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 12364 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 12365 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 12366 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 12367 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 12368 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 12369 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 12370 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 12371 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 12372 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 12373 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 12374 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 12375 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 12376 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 12377 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 12378 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 12379 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 12380 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 12381 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 12382 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 12383 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 12384 | .ilen = 496, |
| 12385 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12386 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12387 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12388 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12389 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12390 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12391 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12392 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12393 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12394 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12395 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12396 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12397 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12398 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12399 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12400 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12401 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12402 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12403 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12404 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12405 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12406 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12407 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12408 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12409 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12410 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12411 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12412 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12413 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12414 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12415 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12416 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12417 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12418 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12419 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12420 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12421 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12422 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12423 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12424 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12425 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12426 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12427 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12428 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12429 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12430 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12431 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12432 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12433 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12434 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12435 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12436 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12437 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12438 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12439 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12440 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12441 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12442 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12443 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12444 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12445 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12446 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12447 | .rlen = 496, |
| 12448 | }, |
| 12449 | }; |
| 12450 | |
| 12451 | static struct cipher_testvec cast5_cbc_enc_tv_template[] = { |
| 12452 | { /* Generated from TF test vectors */ |
| 12453 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12454 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 12455 | .klen = 16, |
| 12456 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 12457 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12458 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12459 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12460 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12461 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12462 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12463 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12464 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12465 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12466 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12467 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12468 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12469 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12470 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12471 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12472 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12473 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12474 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12475 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12476 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12477 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12478 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12479 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12480 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12481 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12482 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12483 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12484 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12485 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12486 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12487 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12488 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12489 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12490 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12491 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12492 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12493 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12494 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12495 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12496 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12497 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12498 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12499 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12500 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12501 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12502 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12503 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12504 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12505 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12506 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12507 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12508 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12509 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12510 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12511 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12512 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12513 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12514 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12515 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12516 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12517 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12518 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12519 | .ilen = 496, |
| 12520 | .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 12521 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 12522 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 12523 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 12524 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 12525 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 12526 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 12527 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 12528 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 12529 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 12530 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 12531 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 12532 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 12533 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 12534 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 12535 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 12536 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 12537 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 12538 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 12539 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 12540 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 12541 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 12542 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 12543 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 12544 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 12545 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 12546 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 12547 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 12548 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 12549 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 12550 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 12551 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 12552 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 12553 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 12554 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 12555 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 12556 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 12557 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 12558 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 12559 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 12560 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 12561 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 12562 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 12563 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 12564 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 12565 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 12566 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 12567 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 12568 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 12569 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 12570 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 12571 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 12572 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 12573 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 12574 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 12575 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 12576 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 12577 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 12578 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 12579 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 12580 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 12581 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 12582 | .rlen = 496, |
| 12583 | }, |
| 12584 | }; |
| 12585 | |
| 12586 | static struct cipher_testvec cast5_cbc_dec_tv_template[] = { |
| 12587 | { /* Generated from TF test vectors */ |
| 12588 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12589 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 12590 | .klen = 16, |
| 12591 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 12592 | .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 12593 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 12594 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 12595 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 12596 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 12597 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 12598 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 12599 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 12600 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 12601 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 12602 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 12603 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 12604 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 12605 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 12606 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 12607 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 12608 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 12609 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 12610 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 12611 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 12612 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 12613 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 12614 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 12615 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 12616 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 12617 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 12618 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 12619 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 12620 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 12621 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 12622 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 12623 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 12624 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 12625 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 12626 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 12627 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 12628 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 12629 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 12630 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 12631 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 12632 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 12633 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 12634 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 12635 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 12636 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 12637 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 12638 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 12639 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 12640 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 12641 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 12642 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 12643 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 12644 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 12645 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 12646 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 12647 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 12648 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 12649 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 12650 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 12651 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 12652 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 12653 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 12654 | .ilen = 496, |
| 12655 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12656 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12657 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12658 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12659 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12660 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12661 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12662 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12663 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12664 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12665 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12666 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12667 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12668 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12669 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12670 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12671 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12672 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12673 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12674 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12675 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12676 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12677 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12678 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12679 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12680 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12681 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12682 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12683 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12684 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12685 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12686 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12687 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12688 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12689 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12690 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12691 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12692 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12693 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12694 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12695 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12696 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12697 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12698 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12699 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12700 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12701 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12702 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12703 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12704 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12705 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12706 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12707 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12708 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12709 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12710 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12711 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12712 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12713 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12714 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12715 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12716 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12717 | .rlen = 496, |
| 12718 | }, |
| 12719 | }; |
| 12720 | |
| 12721 | static struct cipher_testvec cast5_ctr_enc_tv_template[] = { |
| 12722 | { /* Generated from TF test vectors */ |
| 12723 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12724 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 12725 | .klen = 16, |
| 12726 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 12727 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12728 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12729 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12730 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12731 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12732 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12733 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12734 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12735 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12736 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12737 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12738 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12739 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12740 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12741 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12742 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12743 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12744 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12745 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12746 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12747 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12748 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12749 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12750 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12751 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12752 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12753 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12754 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12755 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12756 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12757 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12758 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12759 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12760 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12761 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12762 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12763 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12764 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12765 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12766 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12767 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12768 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12769 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12770 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12771 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12772 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12773 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12774 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12775 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12776 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12777 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12778 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12779 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12780 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12781 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12782 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12783 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12784 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12785 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12786 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12787 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12788 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12789 | .ilen = 496, |
| 12790 | .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 12791 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 12792 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 12793 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 12794 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 12795 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 12796 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 12797 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 12798 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 12799 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 12800 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 12801 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 12802 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 12803 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 12804 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 12805 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 12806 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 12807 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 12808 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 12809 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 12810 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 12811 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 12812 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 12813 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 12814 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 12815 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 12816 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 12817 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 12818 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 12819 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 12820 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 12821 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 12822 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 12823 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 12824 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 12825 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 12826 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 12827 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 12828 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 12829 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 12830 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 12831 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 12832 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 12833 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 12834 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 12835 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 12836 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 12837 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 12838 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 12839 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 12840 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 12841 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 12842 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 12843 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 12844 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 12845 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 12846 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 12847 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 12848 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 12849 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 12850 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 12851 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 12852 | .rlen = 496, |
| 12853 | }, |
| 12854 | }; |
| 12855 | |
| 12856 | static struct cipher_testvec cast5_ctr_dec_tv_template[] = { |
| 12857 | { /* Generated from TF test vectors */ |
| 12858 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12859 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 12860 | .klen = 16, |
| 12861 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 12862 | .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 12863 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 12864 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 12865 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 12866 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 12867 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 12868 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 12869 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 12870 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 12871 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 12872 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 12873 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 12874 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 12875 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 12876 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 12877 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 12878 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 12879 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 12880 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 12881 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 12882 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 12883 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 12884 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 12885 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 12886 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 12887 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 12888 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 12889 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 12890 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 12891 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 12892 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 12893 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 12894 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 12895 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 12896 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 12897 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 12898 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 12899 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 12900 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 12901 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 12902 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 12903 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 12904 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 12905 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 12906 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 12907 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 12908 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 12909 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 12910 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 12911 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 12912 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 12913 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 12914 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 12915 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 12916 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 12917 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 12918 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 12919 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 12920 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 12921 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 12922 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 12923 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 12924 | .ilen = 496, |
| 12925 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12926 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12927 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12928 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12929 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12930 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12931 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12932 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12933 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12934 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12935 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12936 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12937 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12938 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12939 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12940 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12941 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12942 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12943 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12944 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12945 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12946 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12947 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12948 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12949 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12950 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12951 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12952 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12953 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12954 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12955 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12956 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12957 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12958 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12959 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12960 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12961 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12962 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12963 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12964 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12965 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12966 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12967 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12968 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12969 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12970 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12971 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12972 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12973 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12974 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12975 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12976 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12977 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12978 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12979 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12980 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12981 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12982 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12983 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12984 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12985 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12986 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12987 | .rlen = 496, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12988 | }, |
| 12989 | }; |
| 12990 | |
| 12991 | /* |
| 12992 | * ARC4 test vectors from OpenSSL |
| 12993 | */ |
| 12994 | #define ARC4_ENC_TEST_VECTORS 7 |
| 12995 | #define ARC4_DEC_TEST_VECTORS 7 |
| 12996 | |
| 12997 | static struct cipher_testvec arc4_enc_tv_template[] = { |
| 12998 | { |
| 12999 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13000 | .klen = 8, |
| 13001 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13002 | .ilen = 8, |
| 13003 | .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 13004 | .rlen = 8, |
| 13005 | }, { |
| 13006 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13007 | .klen = 8, |
| 13008 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13009 | .ilen = 8, |
| 13010 | .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 13011 | .rlen = 8, |
| 13012 | }, { |
| 13013 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13014 | .klen = 8, |
| 13015 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13016 | .ilen = 8, |
| 13017 | .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 13018 | .rlen = 8, |
| 13019 | }, { |
| 13020 | .key = "\xef\x01\x23\x45", |
| 13021 | .klen = 4, |
| 13022 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13023 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13024 | "\x00\x00\x00\x00", |
| 13025 | .ilen = 20, |
| 13026 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 13027 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 13028 | "\x36\xb6\x78\x58", |
| 13029 | .rlen = 20, |
| 13030 | }, { |
| 13031 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13032 | .klen = 8, |
| 13033 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 13034 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 13035 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 13036 | "\x12\x34\x56\x78", |
| 13037 | .ilen = 28, |
| 13038 | .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 13039 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 13040 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 13041 | "\x40\x01\x1e\xcf", |
| 13042 | .rlen = 28, |
| 13043 | }, { |
| 13044 | .key = "\xef\x01\x23\x45", |
| 13045 | .klen = 4, |
| 13046 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13047 | "\x00\x00", |
| 13048 | .ilen = 10, |
| 13049 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 13050 | "\xbd\x61", |
| 13051 | .rlen = 10, |
| 13052 | }, { |
| 13053 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 13054 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13055 | .klen = 16, |
| 13056 | .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 13057 | .ilen = 8, |
| 13058 | .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 13059 | .rlen = 8, |
| 13060 | }, |
| 13061 | }; |
| 13062 | |
| 13063 | static struct cipher_testvec arc4_dec_tv_template[] = { |
| 13064 | { |
| 13065 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13066 | .klen = 8, |
| 13067 | .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 13068 | .ilen = 8, |
| 13069 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13070 | .rlen = 8, |
| 13071 | }, { |
| 13072 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13073 | .klen = 8, |
| 13074 | .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 13075 | .ilen = 8, |
| 13076 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13077 | .rlen = 8, |
| 13078 | }, { |
| 13079 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13080 | .klen = 8, |
| 13081 | .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 13082 | .ilen = 8, |
| 13083 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13084 | .rlen = 8, |
| 13085 | }, { |
| 13086 | .key = "\xef\x01\x23\x45", |
| 13087 | .klen = 4, |
| 13088 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 13089 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 13090 | "\x36\xb6\x78\x58", |
| 13091 | .ilen = 20, |
| 13092 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13093 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13094 | "\x00\x00\x00\x00", |
| 13095 | .rlen = 20, |
| 13096 | }, { |
| 13097 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 13098 | .klen = 8, |
| 13099 | .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 13100 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 13101 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 13102 | "\x40\x01\x1e\xcf", |
| 13103 | .ilen = 28, |
| 13104 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 13105 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 13106 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 13107 | "\x12\x34\x56\x78", |
| 13108 | .rlen = 28, |
| 13109 | }, { |
| 13110 | .key = "\xef\x01\x23\x45", |
| 13111 | .klen = 4, |
| 13112 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 13113 | "\xbd\x61", |
| 13114 | .ilen = 10, |
| 13115 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13116 | "\x00\x00", |
| 13117 | .rlen = 10, |
| 13118 | }, { |
| 13119 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 13120 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13121 | .klen = 16, |
| 13122 | .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 13123 | .ilen = 8, |
| 13124 | .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 13125 | .rlen = 8, |
| 13126 | }, |
| 13127 | }; |
| 13128 | |
| 13129 | /* |
| 13130 | * TEA test vectors |
| 13131 | */ |
| 13132 | #define TEA_ENC_TEST_VECTORS 4 |
| 13133 | #define TEA_DEC_TEST_VECTORS 4 |
| 13134 | |
| 13135 | static struct cipher_testvec tea_enc_tv_template[] = { |
| 13136 | { |
| 13137 | .key = zeroed_string, |
| 13138 | .klen = 16, |
| 13139 | .input = zeroed_string, |
| 13140 | .ilen = 8, |
| 13141 | .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 13142 | .rlen = 8, |
| 13143 | }, { |
| 13144 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 13145 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 13146 | .klen = 16, |
| 13147 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 13148 | .ilen = 8, |
| 13149 | .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 13150 | .rlen = 8, |
| 13151 | }, { |
| 13152 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 13153 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 13154 | .klen = 16, |
| 13155 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 13156 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 13157 | .ilen = 16, |
| 13158 | .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 13159 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 13160 | .rlen = 16, |
| 13161 | }, { |
| 13162 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 13163 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 13164 | .klen = 16, |
| 13165 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 13166 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 13167 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 13168 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 13169 | .ilen = 32, |
| 13170 | .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 13171 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 13172 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 13173 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 13174 | .rlen = 32, |
| 13175 | } |
| 13176 | }; |
| 13177 | |
| 13178 | static struct cipher_testvec tea_dec_tv_template[] = { |
| 13179 | { |
| 13180 | .key = zeroed_string, |
| 13181 | .klen = 16, |
| 13182 | .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 13183 | .ilen = 8, |
| 13184 | .result = zeroed_string, |
| 13185 | .rlen = 8, |
| 13186 | }, { |
| 13187 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 13188 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 13189 | .klen = 16, |
| 13190 | .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 13191 | .ilen = 8, |
| 13192 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 13193 | .rlen = 8, |
| 13194 | }, { |
| 13195 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 13196 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 13197 | .klen = 16, |
| 13198 | .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 13199 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 13200 | .ilen = 16, |
| 13201 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 13202 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 13203 | .rlen = 16, |
| 13204 | }, { |
| 13205 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 13206 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 13207 | .klen = 16, |
| 13208 | .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 13209 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 13210 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 13211 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 13212 | .ilen = 32, |
| 13213 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 13214 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 13215 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 13216 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 13217 | .rlen = 32, |
| 13218 | } |
| 13219 | }; |
| 13220 | |
| 13221 | /* |
| 13222 | * XTEA test vectors |
| 13223 | */ |
| 13224 | #define XTEA_ENC_TEST_VECTORS 4 |
| 13225 | #define XTEA_DEC_TEST_VECTORS 4 |
| 13226 | |
| 13227 | static struct cipher_testvec xtea_enc_tv_template[] = { |
| 13228 | { |
| 13229 | .key = zeroed_string, |
| 13230 | .klen = 16, |
| 13231 | .input = zeroed_string, |
| 13232 | .ilen = 8, |
| 13233 | .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 13234 | .rlen = 8, |
| 13235 | }, { |
| 13236 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 13237 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 13238 | .klen = 16, |
| 13239 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 13240 | .ilen = 8, |
| 13241 | .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 13242 | .rlen = 8, |
| 13243 | }, { |
| 13244 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 13245 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 13246 | .klen = 16, |
| 13247 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 13248 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 13249 | .ilen = 16, |
| 13250 | .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 13251 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 13252 | .rlen = 16, |
| 13253 | }, { |
| 13254 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 13255 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 13256 | .klen = 16, |
| 13257 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 13258 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 13259 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 13260 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 13261 | .ilen = 32, |
| 13262 | .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 13263 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 13264 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 13265 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 13266 | .rlen = 32, |
| 13267 | } |
| 13268 | }; |
| 13269 | |
| 13270 | static struct cipher_testvec xtea_dec_tv_template[] = { |
| 13271 | { |
| 13272 | .key = zeroed_string, |
| 13273 | .klen = 16, |
| 13274 | .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 13275 | .ilen = 8, |
| 13276 | .result = zeroed_string, |
| 13277 | .rlen = 8, |
| 13278 | }, { |
| 13279 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 13280 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 13281 | .klen = 16, |
| 13282 | .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 13283 | .ilen = 8, |
| 13284 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 13285 | .rlen = 8, |
| 13286 | }, { |
| 13287 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 13288 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 13289 | .klen = 16, |
| 13290 | .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 13291 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 13292 | .ilen = 16, |
| 13293 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 13294 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 13295 | .rlen = 16, |
| 13296 | }, { |
| 13297 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 13298 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 13299 | .klen = 16, |
| 13300 | .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 13301 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 13302 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 13303 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 13304 | .ilen = 32, |
| 13305 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 13306 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 13307 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 13308 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 13309 | .rlen = 32, |
| 13310 | } |
| 13311 | }; |
| 13312 | |
| 13313 | /* |
| 13314 | * KHAZAD test vectors. |
| 13315 | */ |
| 13316 | #define KHAZAD_ENC_TEST_VECTORS 5 |
| 13317 | #define KHAZAD_DEC_TEST_VECTORS 5 |
| 13318 | |
| 13319 | static struct cipher_testvec khazad_enc_tv_template[] = { |
| 13320 | { |
| 13321 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 13322 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13323 | .klen = 16, |
| 13324 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13325 | .ilen = 8, |
| 13326 | .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 13327 | .rlen = 8, |
| 13328 | }, { |
| 13329 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 13330 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 13331 | .klen = 16, |
| 13332 | .input = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 13333 | .ilen = 8, |
| 13334 | .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 13335 | .rlen = 8, |
| 13336 | }, { |
| 13337 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 13338 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 13339 | .klen = 16, |
| 13340 | .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 13341 | .ilen = 8, |
| 13342 | .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 13343 | .rlen = 8, |
| 13344 | }, { |
| 13345 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 13346 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13347 | .klen = 16, |
| 13348 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13349 | .ilen = 8, |
| 13350 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 13351 | .rlen = 8, |
| 13352 | }, { |
| 13353 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 13354 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13355 | .klen = 16, |
| 13356 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 13357 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13358 | .ilen = 16, |
| 13359 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 13360 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 13361 | .rlen = 16, |
| 13362 | }, |
| 13363 | }; |
| 13364 | |
| 13365 | static struct cipher_testvec khazad_dec_tv_template[] = { |
| 13366 | { |
| 13367 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 13368 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13369 | .klen = 16, |
| 13370 | .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 13371 | .ilen = 8, |
| 13372 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13373 | .rlen = 8, |
| 13374 | }, { |
| 13375 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 13376 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 13377 | .klen = 16, |
| 13378 | .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 13379 | .ilen = 8, |
| 13380 | .result = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 13381 | .rlen = 8, |
| 13382 | }, { |
| 13383 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 13384 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 13385 | .klen = 16, |
| 13386 | .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 13387 | .ilen = 8, |
| 13388 | .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 13389 | .rlen = 8, |
| 13390 | }, { |
| 13391 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 13392 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13393 | .klen = 16, |
| 13394 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 13395 | .ilen = 8, |
| 13396 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13397 | .rlen = 8, |
| 13398 | }, { |
| 13399 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 13400 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13401 | .klen = 16, |
| 13402 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 13403 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 13404 | .ilen = 16, |
| 13405 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 13406 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 13407 | .rlen = 16, |
| 13408 | }, |
| 13409 | }; |
| 13410 | |
| 13411 | /* |
| 13412 | * Anubis test vectors. |
| 13413 | */ |
| 13414 | |
| 13415 | #define ANUBIS_ENC_TEST_VECTORS 5 |
| 13416 | #define ANUBIS_DEC_TEST_VECTORS 5 |
| 13417 | #define ANUBIS_CBC_ENC_TEST_VECTORS 2 |
| 13418 | #define ANUBIS_CBC_DEC_TEST_VECTORS 2 |
| 13419 | |
| 13420 | static struct cipher_testvec anubis_enc_tv_template[] = { |
| 13421 | { |
| 13422 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13423 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13424 | .klen = 16, |
| 13425 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13426 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13427 | .ilen = 16, |
| 13428 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 13429 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 13430 | .rlen = 16, |
| 13431 | }, { |
| 13432 | |
| 13433 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 13434 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 13435 | "\x03\x03\x03\x03", |
| 13436 | .klen = 20, |
| 13437 | .input = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 13438 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 13439 | .ilen = 16, |
| 13440 | .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 13441 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 13442 | .rlen = 16, |
| 13443 | }, { |
| 13444 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13445 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13446 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13447 | "\x24\x24\x24\x24", |
| 13448 | .klen = 28, |
| 13449 | .input = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13450 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 13451 | .ilen = 16, |
| 13452 | .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 13453 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 13454 | .rlen = 16, |
| 13455 | }, { |
| 13456 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13457 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13458 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13459 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 13460 | .klen = 32, |
| 13461 | .input = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13462 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 13463 | .ilen = 16, |
| 13464 | .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 13465 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 13466 | .rlen = 16, |
| 13467 | }, { |
| 13468 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13469 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13470 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13471 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13472 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13473 | .klen = 40, |
| 13474 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13475 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13476 | .ilen = 16, |
| 13477 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 13478 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 13479 | .rlen = 16, |
| 13480 | }, |
| 13481 | }; |
| 13482 | |
| 13483 | static struct cipher_testvec anubis_dec_tv_template[] = { |
| 13484 | { |
| 13485 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13486 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13487 | .klen = 16, |
| 13488 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 13489 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 13490 | .ilen = 16, |
| 13491 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13492 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13493 | .rlen = 16, |
| 13494 | }, { |
| 13495 | |
| 13496 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 13497 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 13498 | "\x03\x03\x03\x03", |
| 13499 | .klen = 20, |
| 13500 | .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 13501 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 13502 | .ilen = 16, |
| 13503 | .result = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 13504 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 13505 | .rlen = 16, |
| 13506 | }, { |
| 13507 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13508 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13509 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13510 | "\x24\x24\x24\x24", |
| 13511 | .klen = 28, |
| 13512 | .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 13513 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 13514 | .ilen = 16, |
| 13515 | .result = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 13516 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 13517 | .rlen = 16, |
| 13518 | }, { |
| 13519 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13520 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13521 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13522 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 13523 | .klen = 32, |
| 13524 | .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 13525 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 13526 | .ilen = 16, |
| 13527 | .result = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 13528 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 13529 | .rlen = 16, |
| 13530 | }, { |
| 13531 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13532 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13533 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13534 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13535 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13536 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 13537 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 13538 | .klen = 40, |
| 13539 | .ilen = 16, |
| 13540 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13541 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13542 | .rlen = 16, |
| 13543 | }, |
| 13544 | }; |
| 13545 | |
| 13546 | static struct cipher_testvec anubis_cbc_enc_tv_template[] = { |
| 13547 | { |
| 13548 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13549 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13550 | .klen = 16, |
| 13551 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13552 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13553 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13554 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13555 | .ilen = 32, |
| 13556 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 13557 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 13558 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 13559 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 13560 | .rlen = 32, |
| 13561 | }, { |
| 13562 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13563 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13564 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13565 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13566 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13567 | .klen = 40, |
| 13568 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13569 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13570 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13571 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13572 | .ilen = 32, |
| 13573 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 13574 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 13575 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 13576 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 13577 | .rlen = 32, |
| 13578 | }, |
| 13579 | }; |
| 13580 | |
| 13581 | static struct cipher_testvec anubis_cbc_dec_tv_template[] = { |
| 13582 | { |
| 13583 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13584 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13585 | .klen = 16, |
| 13586 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 13587 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 13588 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 13589 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 13590 | .ilen = 32, |
| 13591 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13592 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13593 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 13594 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 13595 | .rlen = 32, |
| 13596 | }, { |
| 13597 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13598 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13599 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13600 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13601 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13602 | .klen = 40, |
| 13603 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 13604 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 13605 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 13606 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 13607 | .ilen = 32, |
| 13608 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13609 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13610 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 13611 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 13612 | .rlen = 32, |
| 13613 | }, |
| 13614 | }; |
| 13615 | |
| 13616 | /* |
| 13617 | * XETA test vectors |
| 13618 | */ |
| 13619 | #define XETA_ENC_TEST_VECTORS 4 |
| 13620 | #define XETA_DEC_TEST_VECTORS 4 |
| 13621 | |
| 13622 | static struct cipher_testvec xeta_enc_tv_template[] = { |
| 13623 | { |
| 13624 | .key = zeroed_string, |
| 13625 | .klen = 16, |
| 13626 | .input = zeroed_string, |
| 13627 | .ilen = 8, |
| 13628 | .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 13629 | .rlen = 8, |
| 13630 | }, { |
| 13631 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 13632 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 13633 | .klen = 16, |
| 13634 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 13635 | .ilen = 8, |
| 13636 | .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 13637 | .rlen = 8, |
| 13638 | }, { |
| 13639 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 13640 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 13641 | .klen = 16, |
| 13642 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 13643 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 13644 | .ilen = 16, |
| 13645 | .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 13646 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 13647 | .rlen = 16, |
| 13648 | }, { |
| 13649 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 13650 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 13651 | .klen = 16, |
| 13652 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 13653 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 13654 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 13655 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 13656 | .ilen = 32, |
| 13657 | .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 13658 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 13659 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 13660 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 13661 | .rlen = 32, |
| 13662 | } |
| 13663 | }; |
| 13664 | |
| 13665 | static struct cipher_testvec xeta_dec_tv_template[] = { |
| 13666 | { |
| 13667 | .key = zeroed_string, |
| 13668 | .klen = 16, |
| 13669 | .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 13670 | .ilen = 8, |
| 13671 | .result = zeroed_string, |
| 13672 | .rlen = 8, |
| 13673 | }, { |
| 13674 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 13675 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 13676 | .klen = 16, |
| 13677 | .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 13678 | .ilen = 8, |
| 13679 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 13680 | .rlen = 8, |
| 13681 | }, { |
| 13682 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 13683 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 13684 | .klen = 16, |
| 13685 | .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 13686 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 13687 | .ilen = 16, |
| 13688 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 13689 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 13690 | .rlen = 16, |
| 13691 | }, { |
| 13692 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 13693 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 13694 | .klen = 16, |
| 13695 | .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 13696 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 13697 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 13698 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 13699 | .ilen = 32, |
| 13700 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 13701 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 13702 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 13703 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 13704 | .rlen = 32, |
| 13705 | } |
| 13706 | }; |
| 13707 | |
| 13708 | /* |
| 13709 | * FCrypt test vectors |
| 13710 | */ |
| 13711 | #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template) |
| 13712 | #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template) |
| 13713 | |
| 13714 | static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = { |
| 13715 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 13716 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13717 | .klen = 8, |
| 13718 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13719 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13720 | .ilen = 8, |
| 13721 | .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 13722 | .rlen = 8, |
| 13723 | }, { |
| 13724 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 13725 | .klen = 8, |
| 13726 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13727 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 13728 | .ilen = 8, |
| 13729 | .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 13730 | .rlen = 8, |
| 13731 | }, { /* From Arla */ |
| 13732 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 13733 | .klen = 8, |
| 13734 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13735 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 13736 | .ilen = 48, |
| 13737 | .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 13738 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 13739 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 13740 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 13741 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 13742 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 13743 | .rlen = 48, |
| 13744 | }, { |
| 13745 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13746 | .klen = 8, |
| 13747 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 13748 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 13749 | .ilen = 48, |
| 13750 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 13751 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 13752 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 13753 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 13754 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 13755 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 13756 | .rlen = 48, |
| 13757 | }, { /* split-page version */ |
| 13758 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13759 | .klen = 8, |
| 13760 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 13761 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 13762 | .ilen = 48, |
| 13763 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 13764 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 13765 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 13766 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 13767 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 13768 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 13769 | .rlen = 48, |
| 13770 | .np = 2, |
| 13771 | .tap = { 20, 28 }, |
| 13772 | } |
| 13773 | }; |
| 13774 | |
| 13775 | static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = { |
| 13776 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 13777 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13778 | .klen = 8, |
| 13779 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13780 | .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 13781 | .ilen = 8, |
| 13782 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13783 | .rlen = 8, |
| 13784 | }, { |
| 13785 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 13786 | .klen = 8, |
| 13787 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13788 | .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 13789 | .ilen = 8, |
| 13790 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 13791 | .rlen = 8, |
| 13792 | }, { /* From Arla */ |
| 13793 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 13794 | .klen = 8, |
| 13795 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13796 | .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 13797 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 13798 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 13799 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 13800 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 13801 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 13802 | .ilen = 48, |
| 13803 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 13804 | .rlen = 48, |
| 13805 | }, { |
| 13806 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13807 | .klen = 8, |
| 13808 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 13809 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 13810 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 13811 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 13812 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 13813 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 13814 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 13815 | .ilen = 48, |
| 13816 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 13817 | .rlen = 48, |
| 13818 | }, { /* split-page version */ |
| 13819 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13820 | .klen = 8, |
| 13821 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 13822 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 13823 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 13824 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 13825 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 13826 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 13827 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 13828 | .ilen = 48, |
| 13829 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 13830 | .rlen = 48, |
| 13831 | .np = 2, |
| 13832 | .tap = { 20, 28 }, |
| 13833 | } |
| 13834 | }; |
| 13835 | |
| 13836 | /* |
| 13837 | * CAMELLIA test vectors. |
| 13838 | */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 13839 | #define CAMELLIA_ENC_TEST_VECTORS 4 |
| 13840 | #define CAMELLIA_DEC_TEST_VECTORS 4 |
| 13841 | #define CAMELLIA_CBC_ENC_TEST_VECTORS 3 |
| 13842 | #define CAMELLIA_CBC_DEC_TEST_VECTORS 3 |
| 13843 | #define CAMELLIA_CTR_ENC_TEST_VECTORS 2 |
| 13844 | #define CAMELLIA_CTR_DEC_TEST_VECTORS 2 |
| 13845 | #define CAMELLIA_LRW_ENC_TEST_VECTORS 8 |
| 13846 | #define CAMELLIA_LRW_DEC_TEST_VECTORS 8 |
| 13847 | #define CAMELLIA_XTS_ENC_TEST_VECTORS 5 |
| 13848 | #define CAMELLIA_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13849 | |
| 13850 | static struct cipher_testvec camellia_enc_tv_template[] = { |
| 13851 | { |
| 13852 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13853 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13854 | .klen = 16, |
| 13855 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13856 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13857 | .ilen = 16, |
| 13858 | .result = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 13859 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 13860 | .rlen = 16, |
| 13861 | }, { |
| 13862 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13863 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 13864 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 13865 | .klen = 24, |
| 13866 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13867 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13868 | .ilen = 16, |
| 13869 | .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 13870 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 13871 | .rlen = 16, |
| 13872 | }, { |
| 13873 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13874 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 13875 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13876 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13877 | .klen = 32, |
| 13878 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13879 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13880 | .ilen = 16, |
| 13881 | .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 13882 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 13883 | .rlen = 16, |
| 13884 | }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 13885 | { /* Generated with Crypto++ */ |
| 13886 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 13887 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 13888 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 13889 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 13890 | .klen = 32, |
| 13891 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 13892 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 13893 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 13894 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 13895 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 13896 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48", |
| 13897 | .ilen = 48, |
| 13898 | .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 13899 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 13900 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 13901 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 13902 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
| 13903 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A", |
| 13904 | .rlen = 48, |
| 13905 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13906 | }; |
| 13907 | |
| 13908 | static struct cipher_testvec camellia_dec_tv_template[] = { |
| 13909 | { |
| 13910 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13911 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13912 | .klen = 16, |
| 13913 | .input = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 13914 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 13915 | .ilen = 16, |
| 13916 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13917 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13918 | .rlen = 16, |
| 13919 | }, { |
| 13920 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13921 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 13922 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 13923 | .klen = 24, |
| 13924 | .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 13925 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 13926 | .ilen = 16, |
| 13927 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13928 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13929 | .rlen = 16, |
| 13930 | }, { |
| 13931 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13932 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 13933 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 13934 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 13935 | .klen = 32, |
| 13936 | .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 13937 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 13938 | .ilen = 16, |
| 13939 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 13940 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 13941 | .rlen = 16, |
| 13942 | }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 13943 | { /* Generated with Crypto++ */ |
| 13944 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 13945 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 13946 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 13947 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 13948 | .klen = 32, |
| 13949 | .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 13950 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 13951 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 13952 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 13953 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
| 13954 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A", |
| 13955 | .ilen = 48, |
| 13956 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 13957 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 13958 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 13959 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 13960 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 13961 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48", |
| 13962 | .rlen = 48, |
| 13963 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 13964 | }; |
| 13965 | |
| 13966 | static struct cipher_testvec camellia_cbc_enc_tv_template[] = { |
| 13967 | { |
| 13968 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 13969 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 13970 | .klen = 16, |
| 13971 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 13972 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 13973 | .input = "Single block msg", |
| 13974 | .ilen = 16, |
| 13975 | .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 13976 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 13977 | .rlen = 16, |
| 13978 | }, { |
| 13979 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 13980 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 13981 | .klen = 16, |
| 13982 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 13983 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 13984 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13985 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13986 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13987 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 13988 | .ilen = 32, |
| 13989 | .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 13990 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 13991 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 13992 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 13993 | .rlen = 32, |
| 13994 | }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 13995 | { /* Generated with Crypto++ */ |
| 13996 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 13997 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 13998 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 13999 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 14000 | .klen = 32, |
| 14001 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 14002 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 14003 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 14004 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 14005 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 14006 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 14007 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 14008 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48", |
| 14009 | .ilen = 48, |
| 14010 | .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 14011 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 14012 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 14013 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 14014 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
| 14015 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01", |
| 14016 | .rlen = 48, |
| 14017 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14018 | }; |
| 14019 | |
| 14020 | static struct cipher_testvec camellia_cbc_dec_tv_template[] = { |
| 14021 | { |
| 14022 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 14023 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 14024 | .klen = 16, |
| 14025 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 14026 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 14027 | .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 14028 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 14029 | .ilen = 16, |
| 14030 | .result = "Single block msg", |
| 14031 | .rlen = 16, |
| 14032 | }, { |
| 14033 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 14034 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 14035 | .klen = 16, |
| 14036 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 14037 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 14038 | .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 14039 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 14040 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 14041 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 14042 | .ilen = 32, |
| 14043 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14044 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14045 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14046 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14047 | .rlen = 32, |
| 14048 | }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 14049 | { /* Generated with Crypto++ */ |
| 14050 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 14051 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 14052 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 14053 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 14054 | .klen = 32, |
| 14055 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 14056 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 14057 | .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 14058 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 14059 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 14060 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 14061 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
| 14062 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01", |
| 14063 | .ilen = 48, |
| 14064 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 14065 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 14066 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 14067 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 14068 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 14069 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48", |
| 14070 | .rlen = 48, |
| 14071 | }, |
| 14072 | }; |
| 14073 | |
| 14074 | static struct cipher_testvec camellia_ctr_enc_tv_template[] = { |
| 14075 | { /* Generated with Crypto++ */ |
| 14076 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 14077 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 14078 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 14079 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 14080 | .klen = 32, |
| 14081 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 14082 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 14083 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 14084 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 14085 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 14086 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 14087 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 14088 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48", |
| 14089 | .ilen = 48, |
| 14090 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 14091 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 14092 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 14093 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 14094 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 14095 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C", |
| 14096 | .rlen = 48, |
| 14097 | }, |
| 14098 | { /* Generated with Crypto++ */ |
| 14099 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 14100 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 14101 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 14102 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 14103 | .klen = 32, |
| 14104 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 14105 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 14106 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 14107 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 14108 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 14109 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 14110 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 14111 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 14112 | "\xDF\x76\x0D", |
| 14113 | .ilen = 51, |
| 14114 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 14115 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 14116 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 14117 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 14118 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 14119 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 14120 | "\x1E\x43\xEF", |
| 14121 | .rlen = 51, |
| 14122 | }, |
| 14123 | }; |
| 14124 | |
| 14125 | static struct cipher_testvec camellia_ctr_dec_tv_template[] = { |
| 14126 | { /* Generated with Crypto++ */ |
| 14127 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 14128 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 14129 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 14130 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 14131 | .klen = 32, |
| 14132 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 14133 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 14134 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 14135 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 14136 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 14137 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 14138 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 14139 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C", |
| 14140 | .ilen = 48, |
| 14141 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 14142 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 14143 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 14144 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 14145 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 14146 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48", |
| 14147 | .rlen = 48, |
| 14148 | }, |
| 14149 | { /* Generated with Crypto++ */ |
| 14150 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 14151 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 14152 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 14153 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 14154 | .klen = 32, |
| 14155 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 14156 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 14157 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 14158 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 14159 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 14160 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 14161 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 14162 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 14163 | "\x1E\x43\xEF", |
| 14164 | .ilen = 51, |
| 14165 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 14166 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 14167 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 14168 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 14169 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 14170 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 14171 | "\xDF\x76\x0D", |
| 14172 | .rlen = 51, |
| 14173 | }, |
| 14174 | |
| 14175 | }; |
| 14176 | |
| 14177 | static struct cipher_testvec camellia_lrw_enc_tv_template[] = { |
| 14178 | /* Generated from AES-LRW test vectors */ |
| 14179 | { |
| 14180 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 14181 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 14182 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 14183 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 14184 | .klen = 32, |
| 14185 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14186 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14187 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14188 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14189 | .ilen = 16, |
| 14190 | .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 14191 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 14192 | .rlen = 16, |
| 14193 | }, { |
| 14194 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 14195 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 14196 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 14197 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 14198 | .klen = 32, |
| 14199 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14200 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 14201 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14202 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14203 | .ilen = 16, |
| 14204 | .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 14205 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 14206 | .rlen = 16, |
| 14207 | }, { |
| 14208 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 14209 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 14210 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 14211 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 14212 | .klen = 32, |
| 14213 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14214 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 14215 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14216 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14217 | .ilen = 16, |
| 14218 | .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 14219 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 14220 | .rlen = 16, |
| 14221 | }, { |
| 14222 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 14223 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 14224 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 14225 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 14226 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 14227 | .klen = 40, |
| 14228 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14229 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14230 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14231 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14232 | .ilen = 16, |
| 14233 | .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 14234 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 14235 | .rlen = 16, |
| 14236 | }, { |
| 14237 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 14238 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 14239 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 14240 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 14241 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 14242 | .klen = 40, |
| 14243 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14244 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 14245 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14246 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14247 | .ilen = 16, |
| 14248 | .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 14249 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 14250 | .rlen = 16, |
| 14251 | }, { |
| 14252 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 14253 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 14254 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 14255 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 14256 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 14257 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 14258 | .klen = 48, |
| 14259 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14260 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14261 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14262 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14263 | .ilen = 16, |
| 14264 | .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 14265 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 14266 | .rlen = 16, |
| 14267 | }, { |
| 14268 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 14269 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 14270 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 14271 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 14272 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 14273 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 14274 | .klen = 48, |
| 14275 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14276 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 14277 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14278 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14279 | .ilen = 16, |
| 14280 | .result = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 14281 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 14282 | .rlen = 16, |
| 14283 | }, { |
| 14284 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 14285 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 14286 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 14287 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 14288 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 14289 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 14290 | .klen = 48, |
| 14291 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14292 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14293 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 14294 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 14295 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 14296 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 14297 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 14298 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 14299 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 14300 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 14301 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 14302 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 14303 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 14304 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 14305 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 14306 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 14307 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 14308 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 14309 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 14310 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 14311 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 14312 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 14313 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 14314 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 14315 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 14316 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 14317 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 14318 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 14319 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 14320 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 14321 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 14322 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 14323 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 14324 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 14325 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 14326 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 14327 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 14328 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 14329 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 14330 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 14331 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 14332 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 14333 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 14334 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 14335 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 14336 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 14337 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 14338 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 14339 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 14340 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 14341 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 14342 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 14343 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 14344 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 14345 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 14346 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 14347 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 14348 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 14349 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 14350 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 14351 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 14352 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 14353 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 14354 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 14355 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 14356 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 14357 | .ilen = 512, |
| 14358 | .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 14359 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 14360 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 14361 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 14362 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 14363 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 14364 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 14365 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 14366 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 14367 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 14368 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 14369 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 14370 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 14371 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 14372 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 14373 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 14374 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 14375 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 14376 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 14377 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 14378 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 14379 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 14380 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 14381 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 14382 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 14383 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 14384 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 14385 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 14386 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 14387 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 14388 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 14389 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 14390 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 14391 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 14392 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 14393 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 14394 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 14395 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 14396 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 14397 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 14398 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 14399 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 14400 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 14401 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 14402 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 14403 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 14404 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 14405 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 14406 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 14407 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 14408 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 14409 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 14410 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 14411 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 14412 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 14413 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 14414 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 14415 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 14416 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 14417 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 14418 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 14419 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 14420 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 14421 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 14422 | .rlen = 512, |
| 14423 | }, |
| 14424 | }; |
| 14425 | |
| 14426 | static struct cipher_testvec camellia_lrw_dec_tv_template[] = { |
| 14427 | /* Generated from AES-LRW test vectors */ |
| 14428 | /* same as enc vectors with input and result reversed */ |
| 14429 | { |
| 14430 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 14431 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 14432 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 14433 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 14434 | .klen = 32, |
| 14435 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14436 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14437 | .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 14438 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 14439 | .ilen = 16, |
| 14440 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14441 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14442 | .rlen = 16, |
| 14443 | }, { |
| 14444 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 14445 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 14446 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 14447 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 14448 | .klen = 32, |
| 14449 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14450 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 14451 | .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 14452 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 14453 | .ilen = 16, |
| 14454 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14455 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14456 | .rlen = 16, |
| 14457 | }, { |
| 14458 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 14459 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 14460 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 14461 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 14462 | .klen = 32, |
| 14463 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14464 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 14465 | .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 14466 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 14467 | .ilen = 16, |
| 14468 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14469 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14470 | .rlen = 16, |
| 14471 | }, { |
| 14472 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 14473 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 14474 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 14475 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 14476 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 14477 | .klen = 40, |
| 14478 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14479 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14480 | .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 14481 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 14482 | .ilen = 16, |
| 14483 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14484 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14485 | .rlen = 16, |
| 14486 | }, { |
| 14487 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 14488 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 14489 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 14490 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 14491 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 14492 | .klen = 40, |
| 14493 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14494 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 14495 | .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 14496 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 14497 | .ilen = 16, |
| 14498 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14499 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14500 | .rlen = 16, |
| 14501 | }, { |
| 14502 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 14503 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 14504 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 14505 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 14506 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 14507 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 14508 | .klen = 48, |
| 14509 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14510 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14511 | .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 14512 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 14513 | .ilen = 16, |
| 14514 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14515 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14516 | .rlen = 16, |
| 14517 | }, { |
| 14518 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 14519 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 14520 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 14521 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 14522 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 14523 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 14524 | .klen = 48, |
| 14525 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14526 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 14527 | .input = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 14528 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 14529 | .ilen = 16, |
| 14530 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14531 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 14532 | .rlen = 16, |
| 14533 | }, { |
| 14534 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 14535 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 14536 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 14537 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 14538 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 14539 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 14540 | .klen = 48, |
| 14541 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14542 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 14543 | .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 14544 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 14545 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 14546 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 14547 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 14548 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 14549 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 14550 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 14551 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 14552 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 14553 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 14554 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 14555 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 14556 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 14557 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 14558 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 14559 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 14560 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 14561 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 14562 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 14563 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 14564 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 14565 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 14566 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 14567 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 14568 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 14569 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 14570 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 14571 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 14572 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 14573 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 14574 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 14575 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 14576 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 14577 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 14578 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 14579 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 14580 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 14581 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 14582 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 14583 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 14584 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 14585 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 14586 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 14587 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 14588 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 14589 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 14590 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 14591 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 14592 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 14593 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 14594 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 14595 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 14596 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 14597 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 14598 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 14599 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 14600 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 14601 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 14602 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 14603 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 14604 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 14605 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 14606 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 14607 | .ilen = 512, |
| 14608 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 14609 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 14610 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 14611 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 14612 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 14613 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 14614 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 14615 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 14616 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 14617 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 14618 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 14619 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 14620 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 14621 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 14622 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 14623 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 14624 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 14625 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 14626 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 14627 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 14628 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 14629 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 14630 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 14631 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 14632 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 14633 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 14634 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 14635 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 14636 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 14637 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 14638 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 14639 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 14640 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 14641 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 14642 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 14643 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 14644 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 14645 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 14646 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 14647 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 14648 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 14649 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 14650 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 14651 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 14652 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 14653 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 14654 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 14655 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 14656 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 14657 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 14658 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 14659 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 14660 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 14661 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 14662 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 14663 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 14664 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 14665 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 14666 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 14667 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 14668 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 14669 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 14670 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 14671 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 14672 | .rlen = 512, |
| 14673 | }, |
| 14674 | }; |
| 14675 | |
| 14676 | static struct cipher_testvec camellia_xts_enc_tv_template[] = { |
| 14677 | /* Generated from AES-XTS test vectors */ |
| 14678 | { |
| 14679 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14680 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14681 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14682 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14683 | .klen = 32, |
| 14684 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14685 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14686 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14687 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14688 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14689 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14690 | .ilen = 32, |
| 14691 | .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 14692 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 14693 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 14694 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 14695 | .rlen = 32, |
| 14696 | }, { |
| 14697 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14698 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14699 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 14700 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14701 | .klen = 32, |
| 14702 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14703 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14704 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14705 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14706 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14707 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14708 | .ilen = 32, |
| 14709 | .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 14710 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 14711 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 14712 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 14713 | .rlen = 32, |
| 14714 | }, { |
| 14715 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 14716 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 14717 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 14718 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14719 | .klen = 32, |
| 14720 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14721 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14722 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14723 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14724 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14725 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14726 | .ilen = 32, |
| 14727 | .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 14728 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 14729 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 14730 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 14731 | .rlen = 32, |
| 14732 | }, { |
| 14733 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14734 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14735 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 14736 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 14737 | .klen = 32, |
| 14738 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14739 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14740 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14741 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14742 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14743 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14744 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14745 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14746 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14747 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14748 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14749 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14750 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14751 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14752 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14753 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14754 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14755 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14756 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14757 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14758 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14759 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14760 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14761 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14762 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14763 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14764 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14765 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14766 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14767 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14768 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14769 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14770 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14771 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14772 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14773 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14774 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14775 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14776 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14777 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14778 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14779 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14780 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14781 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14782 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14783 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14784 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14785 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14786 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14787 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14788 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14789 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14790 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14791 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14792 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14793 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14794 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14795 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14796 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14797 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14798 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14799 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14800 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14801 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14802 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14803 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14804 | .ilen = 512, |
| 14805 | .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 14806 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 14807 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 14808 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 14809 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 14810 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 14811 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 14812 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 14813 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 14814 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 14815 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 14816 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 14817 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 14818 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 14819 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 14820 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 14821 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 14822 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 14823 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 14824 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 14825 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 14826 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 14827 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 14828 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 14829 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 14830 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 14831 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 14832 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 14833 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 14834 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 14835 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 14836 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 14837 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 14838 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 14839 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 14840 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 14841 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 14842 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 14843 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 14844 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 14845 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 14846 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 14847 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 14848 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 14849 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 14850 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 14851 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 14852 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 14853 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 14854 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 14855 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 14856 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 14857 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 14858 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 14859 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 14860 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 14861 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 14862 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 14863 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 14864 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 14865 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 14866 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 14867 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 14868 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 14869 | .rlen = 512, |
| 14870 | }, { |
| 14871 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14872 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14873 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 14874 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 14875 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 14876 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 14877 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 14878 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 14879 | .klen = 64, |
| 14880 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 14881 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14882 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14883 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14884 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14885 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14886 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14887 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14888 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14889 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14890 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14891 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14892 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14893 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14894 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14895 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14896 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14897 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14898 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14899 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14900 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14901 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14902 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14903 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14904 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14905 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14906 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14907 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14908 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14909 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14910 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14911 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14912 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14913 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14914 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14915 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14916 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14917 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14918 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14919 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14920 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14921 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14922 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14923 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14924 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14925 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14926 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14927 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14928 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14929 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14930 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14931 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14932 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14933 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14934 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14935 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14936 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14937 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14938 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14939 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14940 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14941 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14942 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14943 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14944 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14945 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14946 | .ilen = 512, |
| 14947 | .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 14948 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 14949 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 14950 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 14951 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 14952 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 14953 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 14954 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 14955 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 14956 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 14957 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 14958 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 14959 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 14960 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 14961 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 14962 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 14963 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 14964 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 14965 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 14966 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 14967 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 14968 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 14969 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 14970 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 14971 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 14972 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 14973 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 14974 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 14975 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 14976 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 14977 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 14978 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 14979 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 14980 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 14981 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 14982 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 14983 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 14984 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 14985 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 14986 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 14987 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 14988 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 14989 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 14990 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 14991 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 14992 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 14993 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 14994 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 14995 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 14996 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 14997 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 14998 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 14999 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 15000 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 15001 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 15002 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 15003 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 15004 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 15005 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 15006 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 15007 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 15008 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 15009 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 15010 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 15011 | .rlen = 512, |
| 15012 | }, |
| 15013 | }; |
| 15014 | |
| 15015 | static struct cipher_testvec camellia_xts_dec_tv_template[] = { |
| 15016 | /* Generated from AES-XTS test vectors */ |
| 15017 | /* same as enc vectors with input and result reversed */ |
| 15018 | { |
| 15019 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15020 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15021 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15022 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15023 | .klen = 32, |
| 15024 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15025 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15026 | .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 15027 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 15028 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 15029 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 15030 | .ilen = 32, |
| 15031 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15032 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15033 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15034 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15035 | .rlen = 32, |
| 15036 | }, { |
| 15037 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 15038 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 15039 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 15040 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 15041 | .klen = 32, |
| 15042 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 15043 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15044 | .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 15045 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 15046 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 15047 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 15048 | .ilen = 32, |
| 15049 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15050 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15051 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15052 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 15053 | .rlen = 32, |
| 15054 | }, { |
| 15055 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 15056 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 15057 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 15058 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 15059 | .klen = 32, |
| 15060 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 15061 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15062 | .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 15063 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 15064 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 15065 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 15066 | .ilen = 32, |
| 15067 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15068 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15069 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 15070 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 15071 | .rlen = 32, |
| 15072 | }, { |
| 15073 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 15074 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 15075 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 15076 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 15077 | .klen = 32, |
| 15078 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15079 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15080 | .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 15081 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 15082 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 15083 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 15084 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 15085 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 15086 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 15087 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 15088 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 15089 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 15090 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 15091 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 15092 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 15093 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 15094 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 15095 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 15096 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 15097 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 15098 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 15099 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 15100 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 15101 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 15102 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 15103 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 15104 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 15105 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 15106 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 15107 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 15108 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 15109 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 15110 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 15111 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 15112 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 15113 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 15114 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 15115 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 15116 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 15117 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 15118 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 15119 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 15120 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 15121 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 15122 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 15123 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 15124 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 15125 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 15126 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 15127 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 15128 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 15129 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 15130 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 15131 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 15132 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 15133 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 15134 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 15135 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 15136 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 15137 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 15138 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 15139 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 15140 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 15141 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 15142 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 15143 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 15144 | .ilen = 512, |
| 15145 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15146 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15147 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15148 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15149 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15150 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15151 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15152 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15153 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15154 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15155 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15156 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15157 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15158 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15159 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15160 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15161 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15162 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15163 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15164 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15165 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15166 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15167 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15168 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15169 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15170 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15171 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15172 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15173 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15174 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15175 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15176 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 15177 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15178 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15179 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15180 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15181 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15182 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15183 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15184 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15185 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15186 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15187 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15188 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15189 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15190 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15191 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15192 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15193 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15194 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15195 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15196 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15197 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15198 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15199 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15200 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15201 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15202 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15203 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15204 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15205 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15206 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15207 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15208 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 15209 | .rlen = 512, |
| 15210 | }, { |
| 15211 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 15212 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 15213 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 15214 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 15215 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 15216 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 15217 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 15218 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 15219 | .klen = 64, |
| 15220 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 15221 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15222 | .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 15223 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 15224 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 15225 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 15226 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 15227 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 15228 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 15229 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 15230 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 15231 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 15232 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 15233 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 15234 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 15235 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 15236 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 15237 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 15238 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 15239 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 15240 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 15241 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 15242 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 15243 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 15244 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 15245 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 15246 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 15247 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 15248 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 15249 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 15250 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 15251 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 15252 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 15253 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 15254 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 15255 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 15256 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 15257 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 15258 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 15259 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 15260 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 15261 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 15262 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 15263 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 15264 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 15265 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 15266 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 15267 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 15268 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 15269 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 15270 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 15271 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 15272 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 15273 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 15274 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 15275 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 15276 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 15277 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 15278 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 15279 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 15280 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 15281 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 15282 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 15283 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 15284 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 15285 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 15286 | .ilen = 512, |
| 15287 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15288 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15289 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15290 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15291 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15292 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15293 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15294 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15295 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15296 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15297 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15298 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15299 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15300 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15301 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15302 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15303 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15304 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15305 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15306 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15307 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15308 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15309 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15310 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15311 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15312 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15313 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15314 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15315 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15316 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15317 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15318 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 15319 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15320 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15321 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15322 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15323 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15324 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15325 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15326 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15327 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15328 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15329 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15330 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15331 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15332 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15333 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15334 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15335 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15336 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15337 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15338 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15339 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15340 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15341 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15342 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15343 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15344 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15345 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15346 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15347 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15348 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15349 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15350 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 15351 | .rlen = 512, |
| 15352 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 15353 | }; |
| 15354 | |
| 15355 | /* |
| 15356 | * SEED test vectors |
| 15357 | */ |
| 15358 | #define SEED_ENC_TEST_VECTORS 4 |
| 15359 | #define SEED_DEC_TEST_VECTORS 4 |
| 15360 | |
| 15361 | static struct cipher_testvec seed_enc_tv_template[] = { |
| 15362 | { |
| 15363 | .key = zeroed_string, |
| 15364 | .klen = 16, |
| 15365 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15366 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15367 | .ilen = 16, |
| 15368 | .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 15369 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 15370 | .rlen = 16, |
| 15371 | }, { |
| 15372 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15373 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15374 | .klen = 16, |
| 15375 | .input = zeroed_string, |
| 15376 | .ilen = 16, |
| 15377 | .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 15378 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 15379 | .rlen = 16, |
| 15380 | }, { |
| 15381 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 15382 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 15383 | .klen = 16, |
| 15384 | .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 15385 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 15386 | .ilen = 16, |
| 15387 | .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 15388 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 15389 | .rlen = 16, |
| 15390 | }, { |
| 15391 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 15392 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 15393 | .klen = 16, |
| 15394 | .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 15395 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 15396 | .ilen = 16, |
| 15397 | .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 15398 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 15399 | .rlen = 16, |
| 15400 | } |
| 15401 | }; |
| 15402 | |
| 15403 | static struct cipher_testvec seed_dec_tv_template[] = { |
| 15404 | { |
| 15405 | .key = zeroed_string, |
| 15406 | .klen = 16, |
| 15407 | .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 15408 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 15409 | .ilen = 16, |
| 15410 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15411 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15412 | .rlen = 16, |
| 15413 | }, { |
| 15414 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15415 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15416 | .klen = 16, |
| 15417 | .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 15418 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 15419 | .ilen = 16, |
| 15420 | .result = zeroed_string, |
| 15421 | .rlen = 16, |
| 15422 | }, { |
| 15423 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 15424 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 15425 | .klen = 16, |
| 15426 | .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 15427 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 15428 | .ilen = 16, |
| 15429 | .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 15430 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 15431 | .rlen = 16, |
| 15432 | }, { |
| 15433 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 15434 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 15435 | .klen = 16, |
| 15436 | .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 15437 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 15438 | .ilen = 16, |
| 15439 | .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 15440 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 15441 | .rlen = 16, |
| 15442 | } |
| 15443 | }; |
| 15444 | |
| 15445 | #define SALSA20_STREAM_ENC_TEST_VECTORS 5 |
| 15446 | static struct cipher_testvec salsa20_stream_enc_tv_template[] = { |
| 15447 | /* |
| 15448 | * Testvectors from verified.test-vectors submitted to ECRYPT. |
| 15449 | * They are truncated to size 39, 64, 111, 129 to test a variety |
| 15450 | * of input length. |
| 15451 | */ |
| 15452 | { /* Set 3, vector 0 */ |
| 15453 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15454 | "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", |
| 15455 | .klen = 16, |
| 15456 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15457 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15458 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15459 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15460 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15461 | "\x00\x00\x00\x00\x00\x00\x00", |
| 15462 | .ilen = 39, |
| 15463 | .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7" |
| 15464 | "\x68\x02\x41\x0C\x68\x86\x88\x89" |
| 15465 | "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1" |
| 15466 | "\x40\xFB\x9B\x90\xE2\x10\x49\xBF" |
| 15467 | "\x58\x3F\x52\x79\x70\xEB\xC1", |
| 15468 | .rlen = 39, |
| 15469 | }, { /* Set 5, vector 0 */ |
| 15470 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15471 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15472 | .klen = 16, |
| 15473 | .iv = "\x80\x00\x00\x00\x00\x00\x00\x00", |
| 15474 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15475 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15476 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15477 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15478 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15479 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15480 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15481 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15482 | .ilen = 64, |
| 15483 | .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57" |
| 15484 | "\xE5\x78\xE2\x23\xB0\xB7\x68\x01" |
| 15485 | "\x7B\x23\xB2\x67\xBB\x02\x34\xAE" |
| 15486 | "\x46\x26\xBF\x44\x3F\x21\x97\x76" |
| 15487 | "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F" |
| 15488 | "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09" |
| 15489 | "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9" |
| 15490 | "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9", |
| 15491 | .rlen = 64, |
| 15492 | }, { /* Set 3, vector 27 */ |
| 15493 | .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22" |
| 15494 | "\x23\x24\x25\x26\x27\x28\x29\x2A" |
| 15495 | "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32" |
| 15496 | "\x33\x34\x35\x36\x37\x38\x39\x3A", |
| 15497 | .klen = 32, |
| 15498 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15499 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15500 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15501 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15502 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15503 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15504 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15505 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15506 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15507 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15508 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15509 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15510 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15511 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15512 | "\x00\x00\x00\x00\x00\x00\x00", |
| 15513 | .ilen = 111, |
| 15514 | .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7" |
| 15515 | "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F" |
| 15516 | "\x87\xD9\x47\xF8\x28\x91\x35\x98" |
| 15517 | "\xDB\x72\xCC\x23\x29\x48\x56\x5E" |
| 15518 | "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B" |
| 15519 | "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23" |
| 15520 | "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B" |
| 15521 | "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59" |
| 15522 | "\x15\x14\xB4\x0E\x40\xE6\x53\xD1" |
| 15523 | "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E" |
| 15524 | "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92" |
| 15525 | "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6" |
| 15526 | "\x95\x46\x45\x54\xE9\x75\x03\x08" |
| 15527 | "\x44\xAF\xE5\x8A\x81\x12\x09", |
| 15528 | .rlen = 111, |
| 15529 | }, { /* Set 5, vector 27 */ |
| 15530 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15531 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15532 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15533 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15534 | .klen = 32, |
| 15535 | .iv = "\x00\x00\x00\x10\x00\x00\x00\x00", |
| 15536 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15537 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15538 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15539 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15540 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15541 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15542 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15543 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15544 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15545 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15546 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15547 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15548 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15549 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15550 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15551 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15552 | "\x00", |
| 15553 | .ilen = 129, |
| 15554 | .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB" |
| 15555 | "\xE8\x1A\x7A\x43\x40\xEF\x53\x43" |
| 15556 | "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D" |
| 15557 | "\x28\x3D\xCF\x85\x1D\x69\x6E\x60" |
| 15558 | "\xF2\xDE\x74\x56\x18\x1B\x84\x10" |
| 15559 | "\xD4\x62\xBA\x60\x50\xF0\x61\xF2" |
| 15560 | "\x1C\x78\x7F\xC1\x24\x34\xAF\x58" |
| 15561 | "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0" |
| 15562 | "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC" |
| 15563 | "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75" |
| 15564 | "\xA0\x95\x71\xA1\x29\x39\x94\xCA" |
| 15565 | "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F" |
| 15566 | "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7" |
| 15567 | "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD" |
| 15568 | "\x2E\x40\x48\x75\xE9\xE2\x21\x45" |
| 15569 | "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59" |
| 15570 | "\x5A", |
| 15571 | .rlen = 129, |
| 15572 | }, { /* large test vector generated using Crypto++ */ |
| 15573 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15574 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15575 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15576 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 15577 | .klen = 32, |
| 15578 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15579 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15580 | .input = |
| 15581 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15582 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15583 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15584 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15585 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15586 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15587 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15588 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15589 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15590 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15591 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15592 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15593 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15594 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15595 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15596 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15597 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15598 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15599 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15600 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15601 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15602 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15603 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15604 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15605 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15606 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15607 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15608 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15609 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15610 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15611 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15612 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 15613 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 15614 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 15615 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 15616 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 15617 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 15618 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 15619 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 15620 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 15621 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 15622 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 15623 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 15624 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 15625 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 15626 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 15627 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 15628 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 15629 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 15630 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 15631 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 15632 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 15633 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 15634 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 15635 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 15636 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 15637 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 15638 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 15639 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 15640 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 15641 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 15642 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 15643 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 15644 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 15645 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 15646 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 15647 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 15648 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 15649 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 15650 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 15651 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 15652 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 15653 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 15654 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 15655 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 15656 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 15657 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 15658 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 15659 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 15660 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 15661 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 15662 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 15663 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 15664 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 15665 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 15666 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 15667 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 15668 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 15669 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 15670 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 15671 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 15672 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 15673 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 15674 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 15675 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 15676 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 15677 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 15678 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 15679 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 15680 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 15681 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 15682 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 15683 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 15684 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 15685 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 15686 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 15687 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 15688 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 15689 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 15690 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 15691 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 15692 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 15693 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 15694 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 15695 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 15696 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 15697 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 15698 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 15699 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 15700 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 15701 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 15702 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 15703 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 15704 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 15705 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 15706 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 15707 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 15708 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 15709 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 15710 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 15711 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 15712 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 15713 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 15714 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 15715 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 15716 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 15717 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 15718 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 15719 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 15720 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 15721 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 15722 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 15723 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 15724 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 15725 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 15726 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 15727 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 15728 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 15729 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 15730 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 15731 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 15732 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 15733 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 15734 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 15735 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 15736 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 15737 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 15738 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 15739 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 15740 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 15741 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 15742 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 15743 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 15744 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 15745 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 15746 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 15747 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 15748 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 15749 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 15750 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 15751 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 15752 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 15753 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 15754 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 15755 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 15756 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 15757 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 15758 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 15759 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 15760 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 15761 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 15762 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 15763 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 15764 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 15765 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 15766 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 15767 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 15768 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 15769 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 15770 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 15771 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 15772 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 15773 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 15774 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 15775 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 15776 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 15777 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 15778 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 15779 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 15780 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 15781 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 15782 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 15783 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 15784 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 15785 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 15786 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 15787 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 15788 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 15789 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 15790 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 15791 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 15792 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 15793 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 15794 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 15795 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 15796 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 15797 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 15798 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 15799 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 15800 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 15801 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 15802 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 15803 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 15804 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 15805 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 15806 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 15807 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 15808 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 15809 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 15810 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 15811 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 15812 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 15813 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 15814 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 15815 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 15816 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 15817 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 15818 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 15819 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 15820 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 15821 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 15822 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 15823 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 15824 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 15825 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 15826 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 15827 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 15828 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 15829 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 15830 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 15831 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 15832 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 15833 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 15834 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 15835 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 15836 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 15837 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 15838 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 15839 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 15840 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 15841 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 15842 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 15843 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 15844 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 15845 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 15846 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 15847 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 15848 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 15849 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 15850 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 15851 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 15852 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 15853 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 15854 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 15855 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 15856 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 15857 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 15858 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 15859 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 15860 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 15861 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 15862 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 15863 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 15864 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 15865 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 15866 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 15867 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 15868 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 15869 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 15870 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 15871 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 15872 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 15873 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 15874 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 15875 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 15876 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 15877 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 15878 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 15879 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 15880 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 15881 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 15882 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 15883 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 15884 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 15885 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 15886 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 15887 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 15888 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 15889 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 15890 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 15891 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 15892 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 15893 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 15894 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 15895 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 15896 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 15897 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 15898 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 15899 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 15900 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 15901 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 15902 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 15903 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 15904 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 15905 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 15906 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 15907 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 15908 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 15909 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 15910 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 15911 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 15912 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 15913 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 15914 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 15915 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 15916 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 15917 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 15918 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 15919 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 15920 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 15921 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 15922 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 15923 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 15924 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 15925 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 15926 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 15927 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 15928 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 15929 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 15930 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 15931 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 15932 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 15933 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 15934 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 15935 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 15936 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 15937 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 15938 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 15939 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 15940 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 15941 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 15942 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 15943 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 15944 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 15945 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 15946 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 15947 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 15948 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 15949 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 15950 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 15951 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 15952 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 15953 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 15954 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 15955 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 15956 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 15957 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 15958 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 15959 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 15960 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 15961 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 15962 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 15963 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 15964 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 15965 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 15966 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 15967 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 15968 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 15969 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 15970 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 15971 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 15972 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 15973 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 15974 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 15975 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 15976 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 15977 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 15978 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 15979 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 15980 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 15981 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 15982 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 15983 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 15984 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 15985 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 15986 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 15987 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 15988 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 15989 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 15990 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 15991 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 15992 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 15993 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 15994 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 15995 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 15996 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 15997 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 15998 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 15999 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 16000 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 16001 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 16002 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 16003 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 16004 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 16005 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 16006 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 16007 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 16008 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 16009 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 16010 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 16011 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 16012 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 16013 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 16014 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 16015 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 16016 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 16017 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 16018 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 16019 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 16020 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 16021 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 16022 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 16023 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 16024 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 16025 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 16026 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 16027 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 16028 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 16029 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 16030 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 16031 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 16032 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 16033 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 16034 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 16035 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 16036 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 16037 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 16038 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 16039 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 16040 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 16041 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 16042 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 16043 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 16044 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 16045 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 16046 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 16047 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 16048 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 16049 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 16050 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 16051 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 16052 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 16053 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 16054 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 16055 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 16056 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 16057 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 16058 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 16059 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 16060 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 16061 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 16062 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 16063 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 16064 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 16065 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 16066 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 16067 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 16068 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 16069 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 16070 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 16071 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 16072 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 16073 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 16074 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 16075 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 16076 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 16077 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 16078 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 16079 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 16080 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 16081 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 16082 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 16083 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 16084 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 16085 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 16086 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 16087 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 16088 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 16089 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 16090 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 16091 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 16092 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 16093 | "\x00\x21\x42\x63", |
| 16094 | .ilen = 4100, |
| 16095 | .result = |
| 16096 | "\xb5\x81\xf5\x64\x18\x73\xe3\xf0" |
| 16097 | "\x4c\x13\xf2\x77\x18\x60\x65\x5e" |
| 16098 | "\x29\x01\xce\x98\x55\x53\xf9\x0c" |
| 16099 | "\x2a\x08\xd5\x09\xb3\x57\x55\x56" |
| 16100 | "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0" |
| 16101 | "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4" |
| 16102 | "\x43\xd1\xfe\x94\x7b\x88\x06\x5a" |
| 16103 | "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90" |
| 16104 | "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2" |
| 16105 | "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01" |
| 16106 | "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91" |
| 16107 | "\xbb\xde\x56\x86\xab\x65\x21\x30" |
| 16108 | "\x00\x84\x65\x24\xa5\x7d\x85\xb4" |
| 16109 | "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b" |
| 16110 | "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c" |
| 16111 | "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7" |
| 16112 | "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75" |
| 16113 | "\x77\x89\x30\x8b\x59\xdb\xa2\xb2" |
| 16114 | "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f" |
| 16115 | "\x4f\xd9\xd3\x56\x28\x97\x44\xdc" |
| 16116 | "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5" |
| 16117 | "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d" |
| 16118 | "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1" |
| 16119 | "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4" |
| 16120 | "\x5b\x9a\x96\xc5\x53\xbc\xae\x20" |
| 16121 | "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1" |
| 16122 | "\x5e\x76\x9e\x46\x99\xf6\x2a\x15" |
| 16123 | "\xc6\x97\x02\xa0\x66\x43\xd1\xa6" |
| 16124 | "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5" |
| 16125 | "\xcd\x76\x95\xb8\x7a\x82\x7f\x21" |
| 16126 | "\x45\xff\x3f\xce\x55\xf6\x95\x10" |
| 16127 | "\x08\x77\x10\x43\xc6\xf3\x09\xe5" |
| 16128 | "\x68\xe7\x3c\xad\x00\x52\x45\x0d" |
| 16129 | "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d" |
| 16130 | "\xe6\x25\xae\x98\x12\x8e\x19\x9c" |
| 16131 | "\x81\x68\xb1\x11\xf6\x69\xda\xe3" |
| 16132 | "\x62\x08\x18\x7a\x25\x49\x28\xac" |
| 16133 | "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7" |
| 16134 | "\x5d\x8e\xec\x49\x40\x21\xbf\x5a" |
| 16135 | "\x98\xf3\x02\x68\x55\x03\x7f\x8a" |
| 16136 | "\xe5\x94\x0c\x32\x5c\x07\x82\x63" |
| 16137 | "\xaf\x6f\x91\x40\x84\x8e\x52\x25" |
| 16138 | "\xd0\xb0\x29\x53\x05\xe2\x50\x7a" |
| 16139 | "\x34\xeb\xc9\x46\x20\xa8\x3d\xde" |
| 16140 | "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1" |
| 16141 | "\x15\x47\xc7\x50\x40\x6d\x91\xc5" |
| 16142 | "\xe7\x93\x95\x1a\xd3\x57\xbc\x52" |
| 16143 | "\x33\xee\x14\x19\x22\x52\x89\xa7" |
| 16144 | "\x4a\x25\x56\x77\x4b\xca\xcf\x0a" |
| 16145 | "\xe1\xf5\x35\x85\x30\x7e\x59\x4a" |
| 16146 | "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac" |
| 16147 | "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99" |
| 16148 | "\xca\x88\x63\x3d\x02\x58\x6b\xa9" |
| 16149 | "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74" |
| 16150 | "\x1c\xbf\x46\xab\x97\xcc\xf8\x54" |
| 16151 | "\x04\x07\x08\x52\xe6\xc0\xda\x93" |
| 16152 | "\x74\x7d\x93\x99\x5d\x78\x68\xa6" |
| 16153 | "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b" |
| 16154 | "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04" |
| 16155 | "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1" |
| 16156 | "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4" |
| 16157 | "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4" |
| 16158 | "\x54\x26\x72\x9e\x61\xfa\x86\xcf" |
| 16159 | "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae" |
| 16160 | "\x5a\x90\xae\x75\x0a\x74\x18\x89" |
| 16161 | "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6" |
| 16162 | "\x62\x07\x25\x01\xc7\xc2\x4f\xf9" |
| 16163 | "\xe8\xfe\x63\x95\x80\x07\xb4\x26" |
| 16164 | "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb" |
| 16165 | "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a" |
| 16166 | "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f" |
| 16167 | "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec" |
| 16168 | "\x33\xe6\x69\xf4\x45\x25\x86\x3a" |
| 16169 | "\x22\x94\x4f\x00\x23\x6a\x44\xc2" |
| 16170 | "\x49\x97\x33\xab\x36\x14\x0a\x70" |
| 16171 | "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9" |
| 16172 | "\xb8\xe7\x76\x29\x22\x83\xd7\xf2" |
| 16173 | "\x94\xf4\x41\x49\xba\x5f\x7b\x07" |
| 16174 | "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c" |
| 16175 | "\xc2\x2e\x37\x40\x49\xc3\x38\x16" |
| 16176 | "\xe2\x4f\x77\x82\xb0\x68\x4c\x71" |
| 16177 | "\x1d\x57\x61\x9c\xd9\x4e\x54\x99" |
| 16178 | "\x47\x13\x28\x73\x3c\xbb\x00\x90" |
| 16179 | "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71" |
| 16180 | "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd" |
| 16181 | "\xad\x6c\x50\x69\x6c\x3e\x6d\x80" |
| 16182 | "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d" |
| 16183 | "\xad\x04\x07\xae\x22\x90\x4a\x93" |
| 16184 | "\x32\x0e\x36\x9b\x1b\x46\xba\x3b" |
| 16185 | "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b" |
| 16186 | "\x2a\x3d\x45\xfe\x03\x61\x10\x85" |
| 16187 | "\x17\x69\xa6\x78\xcc\x6c\x87\x49" |
| 16188 | "\x53\xf9\x80\x10\xde\x80\xa2\x41" |
| 16189 | "\x6a\xc3\x32\x02\xad\x6d\x3c\x56" |
| 16190 | "\x00\x71\x51\x06\xa7\xbd\xfb\xef" |
| 16191 | "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c" |
| 16192 | "\x66\xb0\x49\x23\xc4\x47\x10\x0e" |
| 16193 | "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa" |
| 16194 | "\xde\xff\x07\x44\xdd\x56\x1b\xad" |
| 16195 | "\x09\x77\xfb\x5b\x12\xb8\x0d\x38" |
| 16196 | "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4" |
| 16197 | "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22" |
| 16198 | "\xa7\x31\xa1\x20\x86\xc7\x1b\x99" |
| 16199 | "\xdb\xd1\x89\xf4\x94\xa3\x53\x69" |
| 16200 | "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6" |
| 16201 | "\x07\x37\x91\x9f\xfd\x67\x50\x3a" |
| 16202 | "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1" |
| 16203 | "\xf9\xe5\x39\xa3\x31\xac\x07\x36" |
| 16204 | "\x23\xf8\x66\x18\x14\x28\x34\x0f" |
| 16205 | "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55" |
| 16206 | "\x01\x41\xb2\x75\x8d\xcb\x96\x85" |
| 16207 | "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20" |
| 16208 | "\x44\x1f\xc0\x14\x22\x75\x61\xe8" |
| 16209 | "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7" |
| 16210 | "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a" |
| 16211 | "\x57\x50\xdb\x17\x41\x65\x4d\xa3" |
| 16212 | "\x02\xc9\x9c\x9c\x53\xfb\x39\x39" |
| 16213 | "\x9b\x1d\x72\x24\xda\xb7\x39\xbe" |
| 16214 | "\x13\x3b\xfa\x29\xda\x9e\x54\x64" |
| 16215 | "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa" |
| 16216 | "\xcb\x47\x85\xe9\x61\x38\xbc\xbe" |
| 16217 | "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9" |
| 16218 | "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f" |
| 16219 | "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d" |
| 16220 | "\xca\x8e\x61\x87\xde\xad\x80\xd2" |
| 16221 | "\xf5\xf9\x80\xef\x15\x75\xaf\xf5" |
| 16222 | "\x80\xfb\xff\x6d\x1e\x25\xb7\x40" |
| 16223 | "\x61\x6a\x39\x5a\x6a\xb5\x31\xab" |
| 16224 | "\x97\x8a\x19\x89\x44\x40\xc0\xa6" |
| 16225 | "\xb4\x4e\x30\x32\x7b\x13\xe7\x67" |
| 16226 | "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4" |
| 16227 | "\x28\x99\xad\x2c\x76\xa3\x78\xc2" |
| 16228 | "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0" |
| 16229 | "\x62\x4b\x10\x8e\x7c\x17\x43\xb3" |
| 16230 | "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a" |
| 16231 | "\x71\xf5\x97\xdc\xd1\x45\xdd\x28" |
| 16232 | "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc" |
| 16233 | "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d" |
| 16234 | "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2" |
| 16235 | "\x13\x36\x79\x80\x53\xe8\xd3\xa6" |
| 16236 | "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e" |
| 16237 | "\x45\xce\xf8\xb0\x9e\x5c\x33\x82" |
| 16238 | "\xb0\x44\x56\xfc\x05\x09\xe9\x2a" |
| 16239 | "\xac\x26\x80\x14\x1d\xc8\x3a\x35" |
| 16240 | "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a" |
| 16241 | "\x35\x58\x79\x8e\x0f\x66\xea\xaf" |
| 16242 | "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a" |
| 16243 | "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a" |
| 16244 | "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a" |
| 16245 | "\x54\xda\x24\x6a\xc4\x41\x65\x46" |
| 16246 | "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0" |
| 16247 | "\x2c\x91\xa7\xee\xc4\x81\x07\x86" |
| 16248 | "\x75\x5e\x33\x69\x97\xe4\x2c\xa8" |
| 16249 | "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda" |
| 16250 | "\x6d\x94\x41\xda\x2c\x1e\x89\xc4" |
| 16251 | "\xc2\xaf\x1e\x00\x05\x0b\x83\x60" |
| 16252 | "\xbd\x43\xea\x15\x23\x7f\xb9\xac" |
| 16253 | "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0" |
| 16254 | "\xf3\x19\x31\xbb\x4a\x74\x84\x17" |
| 16255 | "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb" |
| 16256 | "\x80\x38\x15\x52\xcb\x6f\xea\xe5" |
| 16257 | "\x73\x9c\xd9\x24\x69\xc6\x95\x32" |
| 16258 | "\x21\xc8\x11\xe4\xdc\x36\xd7\x93" |
| 16259 | "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf" |
| 16260 | "\x31\xdd\x93\x75\x78\x8a\x2c\x94" |
| 16261 | "\x87\x1a\x58\xec\x9e\x7d\x4d\xba" |
| 16262 | "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14" |
| 16263 | "\xef\xcc\xa7\xec\xab\x43\x09\x18" |
| 16264 | "\xd3\xab\x68\xd1\x07\x99\x44\x47" |
| 16265 | "\xd6\x83\x85\x3b\x30\xea\xa9\x6b" |
| 16266 | "\x63\xea\xc4\x07\xfb\x43\x2f\xa4" |
| 16267 | "\xaa\xb0\xab\x03\x89\xce\x3f\x8c" |
| 16268 | "\x02\x7c\x86\x54\xbc\x88\xaf\x75" |
| 16269 | "\xd2\xdc\x63\x17\xd3\x26\xf6\x96" |
| 16270 | "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc" |
| 16271 | "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2" |
| 16272 | "\xe5\x35\x90\x1f\x85\x4c\x76\x5b" |
| 16273 | "\x66\xce\x44\xa4\x32\x9f\xe6\x7b" |
| 16274 | "\x71\x6e\x9f\x58\x15\x67\x72\x87" |
| 16275 | "\x64\x8e\x3a\x44\x45\xd4\x76\xfa" |
| 16276 | "\xc2\xf6\xef\x85\x05\x18\x7a\x9b" |
| 16277 | "\xba\x41\x54\xac\xf0\xfc\x59\x12" |
| 16278 | "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a" |
| 16279 | "\x62\x8d\x83\x2c\x03\xbe\x05\x76" |
| 16280 | "\x2e\x53\x49\x97\x94\x33\xae\x40" |
| 16281 | "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b" |
| 16282 | "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb" |
| 16283 | "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3" |
| 16284 | "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d" |
| 16285 | "\xce\x87\xad\xcc\x72\x05\x00\x29" |
| 16286 | "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2" |
| 16287 | "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef" |
| 16288 | "\x5c\x50\x79\x2a\x56\x56\x71\x8c" |
| 16289 | "\xac\xc0\x79\x50\x69\xca\x59\x32" |
| 16290 | "\x65\xf2\x54\xe4\x52\x38\x76\xd1" |
| 16291 | "\x5e\xde\x26\x9e\xfb\x75\x2e\x11" |
| 16292 | "\xb5\x10\xf4\x17\x73\xf5\x89\xc7" |
| 16293 | "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52" |
| 16294 | "\x24\x40\x99\xfe\x9b\x85\x0b\x6c" |
| 16295 | "\x22\x3e\x8b\xae\x86\xa1\xd2\x79" |
| 16296 | "\x05\x68\x6b\xab\xe3\x41\x49\xed" |
| 16297 | "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a" |
| 16298 | "\x59\xc9\x26\x8b\xef\x30\x4c\x88" |
| 16299 | "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b" |
| 16300 | "\xf3\xc4\x53\x0b\x89\x5d\x28\x92" |
| 16301 | "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc" |
| 16302 | "\xc0\x12\x23\x5f\x5a\x78\x86\x43" |
| 16303 | "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19" |
| 16304 | "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89" |
| 16305 | "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f" |
| 16306 | "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba" |
| 16307 | "\xec\x8b\x62\x8e\xcb\x4a\x70\x43" |
| 16308 | "\xc7\xc2\xc4\xca\x82\x03\x73\xe9" |
| 16309 | "\x11\xdf\xcf\x54\xea\xc9\xb0\x95" |
| 16310 | "\x51\xc0\x13\x3d\x92\x05\xfa\xf4" |
| 16311 | "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc" |
| 16312 | "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2" |
| 16313 | "\xaf\xf1\x85\x75\x7d\x03\x61\x68" |
| 16314 | "\x4e\x78\xc6\x92\x7d\x86\x7d\x77" |
| 16315 | "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb" |
| 16316 | "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a" |
| 16317 | "\xe2\xba\x6c\x64\x9a\x13\x28\xdf" |
| 16318 | "\x85\x75\xe6\x43\xf6\x87\x08\x68" |
| 16319 | "\x6e\xba\x6e\x79\x9f\x04\xbc\x23" |
| 16320 | "\x50\xf6\x33\x5c\x1f\x24\x25\xbe" |
| 16321 | "\x33\x47\x80\x45\x56\xa3\xa7\xd7" |
| 16322 | "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad" |
| 16323 | "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93" |
| 16324 | "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3" |
| 16325 | "\xd6\x2e\xff\x24\xd8\x71\x6c\xed" |
| 16326 | "\xaf\x55\xeb\x22\xac\x93\x68\x32" |
| 16327 | "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7" |
| 16328 | "\x10\xe1\x3c\x92\x1a\xf3\x23\x78" |
| 16329 | "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20" |
| 16330 | "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e" |
| 16331 | "\x78\xf1\x2d\x50\x12\x77\xa8\x60" |
| 16332 | "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a" |
| 16333 | "\xc0\x96\x80\x4e\x0a\xb4\x93\x35" |
| 16334 | "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90" |
| 16335 | "\x11\x16\x8f\xa2\xec\x47\xbe\xac" |
| 16336 | "\x56\x01\x26\x56\xb1\x8c\xb2\x10" |
| 16337 | "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20" |
| 16338 | "\x63\xf1\x69\x20\x4f\x13\x12\x1f" |
| 16339 | "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe" |
| 16340 | "\xf7\x26\x4d\x2b\x84\x7b\x42\xad" |
| 16341 | "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1" |
| 16342 | "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46" |
| 16343 | "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a" |
| 16344 | "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3" |
| 16345 | "\xab\xd4\x45\x43\x8c\xb6\x02\xb0" |
| 16346 | "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e" |
| 16347 | "\x44\x21\x2a\x8d\x88\x9d\x57\xf4" |
| 16348 | "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75" |
| 16349 | "\x5c\x82\x65\x3e\x03\x5c\x29\x8f" |
| 16350 | "\x38\x55\xab\x33\x26\xef\x9f\x43" |
| 16351 | "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a" |
| 16352 | "\x58\x09\x09\x1b\xc3\x65\x46\x46" |
| 16353 | "\x1d\xa7\x94\x18\x23\x50\x2c\xca" |
| 16354 | "\x2c\x55\x19\x97\x01\x9d\x93\x3b" |
| 16355 | "\x63\x86\xf2\x03\x67\x45\xd2\x72" |
| 16356 | "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11" |
| 16357 | "\x13\xf1\xeb\x21\xc7\xd9\x56\x82" |
| 16358 | "\x2b\x82\x39\xbd\x69\x54\xed\x62" |
| 16359 | "\xc3\xe2\xde\x73\xd4\x6a\x12\xae" |
| 16360 | "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8" |
| 16361 | "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1" |
| 16362 | "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac" |
| 16363 | "\x98\x65\x85\xd1\x93\x53\xd3\x7b" |
| 16364 | "\x09\xdd\x4b\x10\x6d\x84\xb0\x13" |
| 16365 | "\x65\xbd\xcf\x52\x09\xc4\x85\xe2" |
| 16366 | "\x84\x74\x15\x65\xb7\xf7\x51\xaf" |
| 16367 | "\x55\xad\xa4\xd1\x22\x54\x70\x94" |
| 16368 | "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a" |
| 16369 | "\x31\xef\xaa\x25\xd0\x7f\x4f\xea" |
| 16370 | "\x1d\x55\x42\xe5\x49\xb0\xd0\x46" |
| 16371 | "\x62\x36\x43\xb2\x82\x15\x75\x50" |
| 16372 | "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4" |
| 16373 | "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1" |
| 16374 | "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7" |
| 16375 | "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15" |
| 16376 | "\x83\xcb\x72\xd0\x33\x79\x00\x2d" |
| 16377 | "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45" |
| 16378 | "\xc0\x75\x3a\x39\xea\x68\xf7\x5d" |
| 16379 | "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47" |
| 16380 | "\xae\x35\x0a\x31\x7a\x14\x4d\x4a" |
| 16381 | "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b" |
| 16382 | "\x26\x47\xf9\xc3\xf9\xde\x70\xf5" |
| 16383 | "\x61\xab\xa9\x27\x9f\x82\xe4\x9c" |
| 16384 | "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49" |
| 16385 | "\xe9\xfd\x59\x14\x36\x49\x40\x6d" |
| 16386 | "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c" |
| 16387 | "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2" |
| 16388 | "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35" |
| 16389 | "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf" |
| 16390 | "\x9c\xcb\x94\xf3\x21\xa0\x77\x50" |
| 16391 | "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b" |
| 16392 | "\x92\x90\xd8\xe1\xd1\xed\x4b\x42" |
| 16393 | "\xd7\x37\xaf\x65\x3d\x11\x39\xb6" |
| 16394 | "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e" |
| 16395 | "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e" |
| 16396 | "\x29\x06\x9d\xa4\x51\x3a\x10\x63" |
| 16397 | "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28" |
| 16398 | "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c" |
| 16399 | "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e" |
| 16400 | "\x94\x29\x1a\xa7\x80\xfa\x0e\x33" |
| 16401 | "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18" |
| 16402 | "\x37\xa9\x64\x08\x4d\x94\x5a\x88" |
| 16403 | "\xca\x35\xce\x81\x02\xe3\x1f\x1b" |
| 16404 | "\x89\x1a\x77\x85\xe3\x41\x6d\x32" |
| 16405 | "\x42\x19\x23\x7d\xc8\x73\xee\x25" |
| 16406 | "\x85\x0d\xf8\x31\x25\x79\x1b\x6f" |
| 16407 | "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7" |
| 16408 | "\x82\x36\x6a\x0c\x46\x22\x15\xe9" |
| 16409 | "\xff\x72\x41\x91\x91\x7d\x3a\xb7" |
| 16410 | "\xdd\x65\x99\x70\xf6\x8d\x84\xf8" |
| 16411 | "\x67\x15\x20\x11\xd6\xb2\x55\x7b" |
| 16412 | "\xdb\x87\xee\xef\x55\x89\x2a\x59" |
| 16413 | "\x2b\x07\x8f\x43\x8a\x59\x3c\x01" |
| 16414 | "\x8b\x65\x54\xa1\x66\xd5\x38\xbd" |
| 16415 | "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b" |
| 16416 | "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff" |
| 16417 | "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25" |
| 16418 | "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d" |
| 16419 | "\x5c\xfd\x4b\x27\x18\xf9\x61\x76" |
| 16420 | "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5" |
| 16421 | "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a" |
| 16422 | "\xae\xab\x86\x09\x89\xc9\xc2\x40" |
| 16423 | "\x39\x2c\x81\xb3\xb8\x17\x67\xc2" |
| 16424 | "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a" |
| 16425 | "\x34\x52\xc5\xdb\x0a\xf5\x63\x39" |
| 16426 | "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35" |
| 16427 | "\xe3\xb1\x18\x45\x67\xf9\x22\x38" |
| 16428 | "\x95\xd9\x34\x34\x86\xc6\x41\x94" |
| 16429 | "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8" |
| 16430 | "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10" |
| 16431 | "\xff\xe6\xae\x69\x76\xbc\x0d\xb4" |
| 16432 | "\x09\x90\x0c\xa2\x65\x0c\xad\x74" |
| 16433 | "\xf5\xd7\xff\xda\xc1\xce\x85\xbe" |
| 16434 | "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c" |
| 16435 | "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b" |
| 16436 | "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96" |
| 16437 | "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9" |
| 16438 | "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d" |
| 16439 | "\xc9\x92\xae\xf2\xa5\x7b\x05\x49" |
| 16440 | "\xa7\x33\x34\x86\xca\xe4\x96\x23" |
| 16441 | "\x76\x5b\xf2\xc6\xf1\x51\x28\x42" |
| 16442 | "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31" |
| 16443 | "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4" |
| 16444 | "\x3f\x50\x59\xe1\x5c\x05\xb7\x27" |
| 16445 | "\x48\xbf\x07\xec\x1b\x13\xbe\x2b" |
| 16446 | "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c" |
| 16447 | "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3" |
| 16448 | "\xde\x59\xec\x71\xeb\x89\xbb\xd0" |
| 16449 | "\x09\x50\xe1\x16\x3f\xfd\x1c\x34" |
| 16450 | "\xc3\x1c\xa1\x10\x77\x53\x98\xef" |
| 16451 | "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26" |
| 16452 | "\xc7\x42\xd9\x49\xda\x58\x2b\x6e" |
| 16453 | "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e" |
| 16454 | "\x68\xc8\x7f\x51\x22\x42\xef\x49" |
| 16455 | "\xa4\x55\xb6\x36\xac\x09\xc7\x31" |
| 16456 | "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7" |
| 16457 | "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45" |
| 16458 | "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e" |
| 16459 | "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3" |
| 16460 | "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c" |
| 16461 | "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87" |
| 16462 | "\x73\x2e\x71\x79\x16\x06\x63\x28" |
| 16463 | "\x09\x15\xd8\x89\x38\x38\x3d\xb5" |
| 16464 | "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d" |
| 16465 | "\xc8\xca\xef\xf9\x27\xd8\x07\x86" |
| 16466 | "\xf7\x43\x0b\x55\x15\x3f\x9f\x83" |
| 16467 | "\xef\xdc\x49\x9d\x2a\xc1\x54\x62" |
| 16468 | "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3" |
| 16469 | "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75" |
| 16470 | "\x87\x26\xec\x61\x2c\xb4\x0f\x89" |
| 16471 | "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d" |
| 16472 | "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25" |
| 16473 | "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc" |
| 16474 | "\x2b\xa8\x67\x96\x12\x1f\x5b\x96" |
| 16475 | "\xc6\x14\x53\xaf\x44\xea\xd6\xe2" |
| 16476 | "\x94\x98\xe4\x12\x93\x4c\x92\xe0" |
| 16477 | "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47" |
| 16478 | "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf" |
| 16479 | "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03" |
| 16480 | "\x19\x07\xaf\x90\x62\x5c\x68\x98" |
| 16481 | "\x48\x16\x11\x02\x9d\xee\xb4\x9b" |
| 16482 | "\xe5\x42\x7f\x08\xfd\x16\x32\x0b" |
| 16483 | "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29" |
| 16484 | "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2" |
| 16485 | "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74" |
| 16486 | "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd" |
| 16487 | "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67" |
| 16488 | "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f" |
| 16489 | "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e" |
| 16490 | "\x14\x32\xbb\x1b\x38\x77\xd6\x7f" |
| 16491 | "\x54\x4c\xdf\x75\xf3\x07\x2d\x33" |
| 16492 | "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3" |
| 16493 | "\xef\x2f\xce\x72\xe5\x24\x60\xc1" |
| 16494 | "\x30\xe2\xab\xa1\x8e\x11\x09\xa8" |
| 16495 | "\x21\x33\x44\xfe\x7f\x35\x32\x93" |
| 16496 | "\x39\xa7\xad\x8b\x79\x06\xb2\xcb" |
| 16497 | "\x4e\xa9\x5f\xc7\xba\x74\x29\xec" |
| 16498 | "\x93\xa0\x4e\x54\x93\xc0\xbc\x55" |
| 16499 | "\x64\xf0\x48\xe5\x57\x99\xee\x75" |
| 16500 | "\xd6\x79\x0f\x66\xb7\xc6\x57\x76" |
| 16501 | "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f" |
| 16502 | "\x83\x76\xd6\x0e\xaa\xe6\x90\x39" |
| 16503 | "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8" |
| 16504 | "\x58\xa0\x58\x7d\x33\xe0\x22\x39" |
| 16505 | "\x44\x64\x87\x86\x5a\x2f\xa7\x7e" |
| 16506 | "\x0f\x38\xea\xb0\x30\xcc\x61\xa5" |
| 16507 | "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9" |
| 16508 | "\x0c\x32\x4b\xb5\x49\x28\xab\x85" |
| 16509 | "\x2f\x8e\x01\x36\x38\x52\xd0\xba" |
| 16510 | "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b" |
| 16511 | "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1" |
| 16512 | "\x5c\x94\x04\xe1\xf5\x18\x6d\x51" |
| 16513 | "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42" |
| 16514 | "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03" |
| 16515 | "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f" |
| 16516 | "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11" |
| 16517 | "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54" |
| 16518 | "\xea\xa4\x98\x66\xd4\x22\x3b\xd3" |
| 16519 | "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b" |
| 16520 | "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a" |
| 16521 | "\x81\xe1\x86\x89\x3e\x56\x10\x3c" |
| 16522 | "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2" |
| 16523 | "\x53\xec\xa7\x89\xee\xc8\x56\xb5" |
| 16524 | "\x36\x2c\xb2\x03\xba\x99\xdd\x7c" |
| 16525 | "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8" |
| 16526 | "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2" |
| 16527 | "\x56\xf5\x4e\x01\x35\x27\x45\x77" |
| 16528 | "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97" |
| 16529 | "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad" |
| 16530 | "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5" |
| 16531 | "\x99\x20\x43\x85\x9d\xa5\xe2\x8b" |
| 16532 | "\xb8\xae\xeb\xd0\x32\x0d\x52\x78" |
| 16533 | "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc" |
| 16534 | "\x37\xfb\x6f\x04\xfc\xfa\x92\x10" |
| 16535 | "\xac\xf8\x3e\x21\xdc\x8c\x21\x16" |
| 16536 | "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98" |
| 16537 | "\x23\xab\x23\x3c\xb2\x10\xa0\x53" |
| 16538 | "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4" |
| 16539 | "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e" |
| 16540 | "\x0f\xd2\x98\x88\x81\x8b\x45\x67" |
| 16541 | "\xea\x33\xf1\xeb\xe9\x97\x55\x2e" |
| 16542 | "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68" |
| 16543 | "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62" |
| 16544 | "\x87\x8f\x03\x21\x28\x95\x0c\x89" |
| 16545 | "\x25\x22\x4a\xb0\x93\xa9\x50\xa2" |
| 16546 | "\x2f\x57\x6e\x18\x42\x19\x54\x0c" |
| 16547 | "\x55\x67\xc6\x11\x49\xf4\x5c\xd2" |
| 16548 | "\xe9\x3d\xdd\x8b\x48\x71\x21\x00" |
| 16549 | "\xc3\x9a\x6c\x85\x74\x28\x83\x4a" |
| 16550 | "\x1b\x31\x05\xe1\x06\x92\xe7\xda" |
| 16551 | "\x85\x73\x78\x45\x20\x7f\xae\x13" |
| 16552 | "\x7c\x33\x06\x22\xf4\x83\xf9\x35" |
| 16553 | "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b" |
| 16554 | "\xce\x8a\xba\xda\xbe\x28\x08\xf7" |
| 16555 | "\xe2\x14\x8c\x71\xea\x72\xf9\x33" |
| 16556 | "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29" |
| 16557 | "\x19\xdc\x84\xce\x1f\x12\x4f\xc8" |
| 16558 | "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9" |
| 16559 | "\x14\x1f\x6c\x68\x98\x39\x89\x7a" |
| 16560 | "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25" |
| 16561 | "\xe2\xfb\x33\xf4\x59\x78\xe1\x68" |
| 16562 | "\x85\xcf\xfe\x59\x20\xd4\x05\x1d" |
| 16563 | "\x80\x99\xae\xbc\xca\xae\x0f\x2f" |
| 16564 | "\x65\x43\x34\x8e\x7e\xac\xd3\x93" |
| 16565 | "\x2f\xac\x6d\x14\x3d\x02\x07\x70" |
| 16566 | "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01" |
| 16567 | "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd" |
| 16568 | "\x3f\xdf\xee\xf5\xd9\xba\x56\xef" |
| 16569 | "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d" |
| 16570 | "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b" |
| 16571 | "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70" |
| 16572 | "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d" |
| 16573 | "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3" |
| 16574 | "\x14\x89\x5e\x70\x5a\x99\x92\xcd" |
| 16575 | "\x01\x84\xc8\xd2\xab\xe5\x4f\x58" |
| 16576 | "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd" |
| 16577 | "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8" |
| 16578 | "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f" |
| 16579 | "\xe1\x9e\x49\x20\x23\x24\x4d\x7e" |
| 16580 | "\x29\x65\xff\xf4\xb6\xfd\x1a\x85" |
| 16581 | "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c" |
| 16582 | "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd" |
| 16583 | "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c" |
| 16584 | "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30" |
| 16585 | "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff" |
| 16586 | "\x30\xbc\x22\x81\x7d\x93\x12\xe4" |
| 16587 | "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e" |
| 16588 | "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb" |
| 16589 | "\x37\x09\x4b\x91\x6f\x92\x4f\xaf" |
| 16590 | "\x52\xee\xdf\xef\x09\x6f\xf7\x5c" |
| 16591 | "\x6e\x12\x17\x72\x63\x57\xc7\xba" |
| 16592 | "\x3b\x6b\x38\x32\x73\x1b\x9c\x80" |
| 16593 | "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b" |
| 16594 | "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f" |
| 16595 | "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2" |
| 16596 | "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd" |
| 16597 | "\x13\x3d\x64\xfd\x06\xce\xe6\xdc" |
| 16598 | "\x0c\x24\x43\x31\x40\x57\xf1\x72" |
| 16599 | "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d" |
| 16600 | "\x97\x40\x59\xdd\xf7\x3c\x02\xf7" |
| 16601 | "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1" |
| 16602 | "\x8e\xc0\x30\xa9\x53\x24\xc9\x89" |
| 16603 | "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d" |
| 16604 | "\x91\xb0\x89\xe2\xbf\x83\x44\xaa" |
| 16605 | "\x28\x72\x23\xa0\xc2\xad\xad\x1c" |
| 16606 | "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b" |
| 16607 | "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8" |
| 16608 | "\xaf\xdf\x11\x95", |
| 16609 | .rlen = 4100, |
| 16610 | .np = 2, |
| 16611 | .tap = { 4064, 36 }, |
| 16612 | }, |
| 16613 | }; |
| 16614 | |
| 16615 | /* |
| 16616 | * CTS (Cipher Text Stealing) mode tests |
| 16617 | */ |
| 16618 | #define CTS_MODE_ENC_TEST_VECTORS 6 |
| 16619 | #define CTS_MODE_DEC_TEST_VECTORS 6 |
| 16620 | static struct cipher_testvec cts_mode_enc_tv_template[] = { |
| 16621 | { /* from rfc3962 */ |
| 16622 | .klen = 16, |
| 16623 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16624 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16625 | .ilen = 17, |
| 16626 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16627 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16628 | "\x20", |
| 16629 | .rlen = 17, |
| 16630 | .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 16631 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 16632 | "\x97", |
| 16633 | }, { |
| 16634 | .klen = 16, |
| 16635 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16636 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16637 | .ilen = 31, |
| 16638 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16639 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16640 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16641 | "\x20\x47\x61\x75\x27\x73\x20", |
| 16642 | .rlen = 31, |
| 16643 | .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 16644 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 16645 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16646 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 16647 | }, { |
| 16648 | .klen = 16, |
| 16649 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16650 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16651 | .ilen = 32, |
| 16652 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16653 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16654 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16655 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 16656 | .rlen = 32, |
| 16657 | .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16658 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 16659 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16660 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 16661 | }, { |
| 16662 | .klen = 16, |
| 16663 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16664 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16665 | .ilen = 47, |
| 16666 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16667 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16668 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16669 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 16670 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 16671 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 16672 | .rlen = 47, |
| 16673 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16674 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 16675 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 16676 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 16677 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16678 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 16679 | }, { |
| 16680 | .klen = 16, |
| 16681 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16682 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16683 | .ilen = 48, |
| 16684 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16685 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16686 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16687 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 16688 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 16689 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 16690 | .rlen = 48, |
| 16691 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16692 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 16693 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 16694 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 16695 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16696 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 16697 | }, { |
| 16698 | .klen = 16, |
| 16699 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16700 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16701 | .ilen = 64, |
| 16702 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16703 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16704 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16705 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 16706 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 16707 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 16708 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 16709 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 16710 | .rlen = 64, |
| 16711 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16712 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 16713 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16714 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 16715 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 16716 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 16717 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 16718 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 16719 | } |
| 16720 | }; |
| 16721 | |
| 16722 | static struct cipher_testvec cts_mode_dec_tv_template[] = { |
| 16723 | { /* from rfc3962 */ |
| 16724 | .klen = 16, |
| 16725 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16726 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16727 | .rlen = 17, |
| 16728 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16729 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16730 | "\x20", |
| 16731 | .ilen = 17, |
| 16732 | .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 16733 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 16734 | "\x97", |
| 16735 | }, { |
| 16736 | .klen = 16, |
| 16737 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16738 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16739 | .rlen = 31, |
| 16740 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16741 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16742 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16743 | "\x20\x47\x61\x75\x27\x73\x20", |
| 16744 | .ilen = 31, |
| 16745 | .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 16746 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 16747 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16748 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 16749 | }, { |
| 16750 | .klen = 16, |
| 16751 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16752 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16753 | .rlen = 32, |
| 16754 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16755 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16756 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16757 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 16758 | .ilen = 32, |
| 16759 | .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16760 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 16761 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16762 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 16763 | }, { |
| 16764 | .klen = 16, |
| 16765 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16766 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16767 | .rlen = 47, |
| 16768 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16769 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16770 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16771 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 16772 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 16773 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 16774 | .ilen = 47, |
| 16775 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16776 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 16777 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 16778 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 16779 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16780 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 16781 | }, { |
| 16782 | .klen = 16, |
| 16783 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16784 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16785 | .rlen = 48, |
| 16786 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16787 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16788 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16789 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 16790 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 16791 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 16792 | .ilen = 48, |
| 16793 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16794 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 16795 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 16796 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 16797 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16798 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 16799 | }, { |
| 16800 | .klen = 16, |
| 16801 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 16802 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 16803 | .rlen = 64, |
| 16804 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 16805 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 16806 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 16807 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 16808 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 16809 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 16810 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 16811 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 16812 | .ilen = 64, |
| 16813 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 16814 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 16815 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 16816 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 16817 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 16818 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 16819 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 16820 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 16821 | } |
| 16822 | }; |
| 16823 | |
| 16824 | /* |
| 16825 | * Compression stuff. |
| 16826 | */ |
| 16827 | #define COMP_BUF_SIZE 512 |
| 16828 | |
| 16829 | struct comp_testvec { |
| 16830 | int inlen, outlen; |
| 16831 | char input[COMP_BUF_SIZE]; |
| 16832 | char output[COMP_BUF_SIZE]; |
| 16833 | }; |
| 16834 | |
Geert Uytterhoeven | 8064efb | 2009-03-04 15:08:03 +0800 | [diff] [blame] | 16835 | struct pcomp_testvec { |
| 16836 | void *params; |
| 16837 | unsigned int paramsize; |
| 16838 | int inlen, outlen; |
| 16839 | char input[COMP_BUF_SIZE]; |
| 16840 | char output[COMP_BUF_SIZE]; |
| 16841 | }; |
| 16842 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16843 | /* |
| 16844 | * Deflate test vectors (null-terminated strings). |
Geert Uytterhoeven | bcf84a3 | 2008-12-18 17:17:46 +1100 | [diff] [blame] | 16845 | * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL. |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16846 | */ |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 16847 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16848 | #define DEFLATE_COMP_TEST_VECTORS 2 |
| 16849 | #define DEFLATE_DECOMP_TEST_VECTORS 2 |
| 16850 | |
| 16851 | static struct comp_testvec deflate_comp_tv_template[] = { |
| 16852 | { |
| 16853 | .inlen = 70, |
| 16854 | .outlen = 38, |
| 16855 | .input = "Join us now and share the software " |
| 16856 | "Join us now and share the software ", |
| 16857 | .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 16858 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 16859 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 16860 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 16861 | "\x71\xbc\x08\x2b\x01\x00", |
| 16862 | }, { |
| 16863 | .inlen = 191, |
| 16864 | .outlen = 122, |
| 16865 | .input = "This document describes a compression method based on the DEFLATE" |
| 16866 | "compression algorithm. This document defines the application of " |
| 16867 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 16868 | .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 16869 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 16870 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 16871 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 16872 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 16873 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 16874 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 16875 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 16876 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 16877 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 16878 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 16879 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 16880 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 16881 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 16882 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 16883 | "\xfa\x02", |
| 16884 | }, |
| 16885 | }; |
| 16886 | |
| 16887 | static struct comp_testvec deflate_decomp_tv_template[] = { |
| 16888 | { |
| 16889 | .inlen = 122, |
| 16890 | .outlen = 191, |
| 16891 | .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 16892 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 16893 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 16894 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 16895 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 16896 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 16897 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 16898 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 16899 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 16900 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 16901 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 16902 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 16903 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 16904 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 16905 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 16906 | "\xfa\x02", |
| 16907 | .output = "This document describes a compression method based on the DEFLATE" |
| 16908 | "compression algorithm. This document defines the application of " |
| 16909 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 16910 | }, { |
| 16911 | .inlen = 38, |
| 16912 | .outlen = 70, |
| 16913 | .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 16914 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 16915 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 16916 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 16917 | "\x71\xbc\x08\x2b\x01\x00", |
| 16918 | .output = "Join us now and share the software " |
| 16919 | "Join us now and share the software ", |
| 16920 | }, |
| 16921 | }; |
| 16922 | |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 16923 | #define ZLIB_COMP_TEST_VECTORS 2 |
| 16924 | #define ZLIB_DECOMP_TEST_VECTORS 2 |
| 16925 | |
| 16926 | static const struct { |
| 16927 | struct nlattr nla; |
| 16928 | int val; |
| 16929 | } deflate_comp_params[] = { |
| 16930 | { |
| 16931 | .nla = { |
| 16932 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 16933 | .nla_type = ZLIB_COMP_LEVEL, |
| 16934 | }, |
| 16935 | .val = Z_DEFAULT_COMPRESSION, |
| 16936 | }, { |
| 16937 | .nla = { |
| 16938 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 16939 | .nla_type = ZLIB_COMP_METHOD, |
| 16940 | }, |
| 16941 | .val = Z_DEFLATED, |
| 16942 | }, { |
| 16943 | .nla = { |
| 16944 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 16945 | .nla_type = ZLIB_COMP_WINDOWBITS, |
| 16946 | }, |
| 16947 | .val = -11, |
| 16948 | }, { |
| 16949 | .nla = { |
| 16950 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 16951 | .nla_type = ZLIB_COMP_MEMLEVEL, |
| 16952 | }, |
| 16953 | .val = MAX_MEM_LEVEL, |
| 16954 | }, { |
| 16955 | .nla = { |
| 16956 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 16957 | .nla_type = ZLIB_COMP_STRATEGY, |
| 16958 | }, |
| 16959 | .val = Z_DEFAULT_STRATEGY, |
| 16960 | } |
| 16961 | }; |
| 16962 | |
| 16963 | static const struct { |
| 16964 | struct nlattr nla; |
| 16965 | int val; |
| 16966 | } deflate_decomp_params[] = { |
| 16967 | { |
| 16968 | .nla = { |
| 16969 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 16970 | .nla_type = ZLIB_DECOMP_WINDOWBITS, |
| 16971 | }, |
| 16972 | .val = -11, |
| 16973 | } |
| 16974 | }; |
| 16975 | |
| 16976 | static struct pcomp_testvec zlib_comp_tv_template[] = { |
| 16977 | { |
| 16978 | .params = &deflate_comp_params, |
| 16979 | .paramsize = sizeof(deflate_comp_params), |
| 16980 | .inlen = 70, |
| 16981 | .outlen = 38, |
| 16982 | .input = "Join us now and share the software " |
| 16983 | "Join us now and share the software ", |
| 16984 | .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 16985 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 16986 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 16987 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 16988 | "\x71\xbc\x08\x2b\x01\x00", |
| 16989 | }, { |
| 16990 | .params = &deflate_comp_params, |
| 16991 | .paramsize = sizeof(deflate_comp_params), |
| 16992 | .inlen = 191, |
| 16993 | .outlen = 122, |
| 16994 | .input = "This document describes a compression method based on the DEFLATE" |
| 16995 | "compression algorithm. This document defines the application of " |
| 16996 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 16997 | .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 16998 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 16999 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 17000 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 17001 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 17002 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 17003 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 17004 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 17005 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 17006 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 17007 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 17008 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 17009 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 17010 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 17011 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 17012 | "\xfa\x02", |
| 17013 | }, |
| 17014 | }; |
| 17015 | |
| 17016 | static struct pcomp_testvec zlib_decomp_tv_template[] = { |
| 17017 | { |
| 17018 | .params = &deflate_decomp_params, |
| 17019 | .paramsize = sizeof(deflate_decomp_params), |
| 17020 | .inlen = 122, |
| 17021 | .outlen = 191, |
| 17022 | .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 17023 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 17024 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 17025 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 17026 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 17027 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 17028 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 17029 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 17030 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 17031 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 17032 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 17033 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 17034 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 17035 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 17036 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 17037 | "\xfa\x02", |
| 17038 | .output = "This document describes a compression method based on the DEFLATE" |
| 17039 | "compression algorithm. This document defines the application of " |
| 17040 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 17041 | }, { |
| 17042 | .params = &deflate_decomp_params, |
| 17043 | .paramsize = sizeof(deflate_decomp_params), |
| 17044 | .inlen = 38, |
| 17045 | .outlen = 70, |
| 17046 | .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 17047 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 17048 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 17049 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 17050 | "\x71\xbc\x08\x2b\x01\x00", |
| 17051 | .output = "Join us now and share the software " |
| 17052 | "Join us now and share the software ", |
| 17053 | }, |
| 17054 | }; |
| 17055 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17056 | /* |
| 17057 | * LZO test vectors (null-terminated strings). |
| 17058 | */ |
| 17059 | #define LZO_COMP_TEST_VECTORS 2 |
| 17060 | #define LZO_DECOMP_TEST_VECTORS 2 |
| 17061 | |
| 17062 | static struct comp_testvec lzo_comp_tv_template[] = { |
| 17063 | { |
| 17064 | .inlen = 70, |
| 17065 | .outlen = 46, |
| 17066 | .input = "Join us now and share the software " |
| 17067 | "Join us now and share the software ", |
| 17068 | .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
| 17069 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 17070 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 17071 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 17072 | "\x77\x70\x01\x01\x4a\x6f\x69\x6e" |
| 17073 | "\x3d\x88\x00\x11\x00\x00", |
| 17074 | }, { |
| 17075 | .inlen = 159, |
| 17076 | .outlen = 133, |
| 17077 | .input = "This document describes a compression method based on the LZO " |
| 17078 | "compression algorithm. This document defines the application of " |
| 17079 | "the LZO algorithm used in UBIFS.", |
| 17080 | .output = "\x00\x2b\x54\x68\x69\x73\x20\x64" |
| 17081 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 17082 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 17083 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 17084 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 17085 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 17086 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
| 17087 | "\x74\x68\x65\x20\x4c\x5a\x4f\x2b" |
| 17088 | "\x8c\x00\x0d\x61\x6c\x67\x6f\x72" |
| 17089 | "\x69\x74\x68\x6d\x2e\x20\x20\x54" |
| 17090 | "\x68\x69\x73\x2a\x54\x01\x02\x66" |
| 17091 | "\x69\x6e\x65\x73\x94\x06\x05\x61" |
| 17092 | "\x70\x70\x6c\x69\x63\x61\x74\x76" |
| 17093 | "\x0a\x6f\x66\x88\x02\x60\x09\x27" |
| 17094 | "\xf0\x00\x0c\x20\x75\x73\x65\x64" |
| 17095 | "\x20\x69\x6e\x20\x55\x42\x49\x46" |
| 17096 | "\x53\x2e\x11\x00\x00", |
| 17097 | }, |
| 17098 | }; |
| 17099 | |
| 17100 | static struct comp_testvec lzo_decomp_tv_template[] = { |
| 17101 | { |
| 17102 | .inlen = 133, |
| 17103 | .outlen = 159, |
| 17104 | .input = "\x00\x2b\x54\x68\x69\x73\x20\x64" |
| 17105 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 17106 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 17107 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 17108 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 17109 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 17110 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
| 17111 | "\x74\x68\x65\x20\x4c\x5a\x4f\x2b" |
| 17112 | "\x8c\x00\x0d\x61\x6c\x67\x6f\x72" |
| 17113 | "\x69\x74\x68\x6d\x2e\x20\x20\x54" |
| 17114 | "\x68\x69\x73\x2a\x54\x01\x02\x66" |
| 17115 | "\x69\x6e\x65\x73\x94\x06\x05\x61" |
| 17116 | "\x70\x70\x6c\x69\x63\x61\x74\x76" |
| 17117 | "\x0a\x6f\x66\x88\x02\x60\x09\x27" |
| 17118 | "\xf0\x00\x0c\x20\x75\x73\x65\x64" |
| 17119 | "\x20\x69\x6e\x20\x55\x42\x49\x46" |
| 17120 | "\x53\x2e\x11\x00\x00", |
| 17121 | .output = "This document describes a compression method based on the LZO " |
| 17122 | "compression algorithm. This document defines the application of " |
| 17123 | "the LZO algorithm used in UBIFS.", |
| 17124 | }, { |
| 17125 | .inlen = 46, |
| 17126 | .outlen = 70, |
| 17127 | .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
| 17128 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 17129 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 17130 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 17131 | "\x77\x70\x01\x01\x4a\x6f\x69\x6e" |
| 17132 | "\x3d\x88\x00\x11\x00\x00", |
| 17133 | .output = "Join us now and share the software " |
| 17134 | "Join us now and share the software ", |
| 17135 | }, |
| 17136 | }; |
| 17137 | |
| 17138 | /* |
| 17139 | * Michael MIC test vectors from IEEE 802.11i |
| 17140 | */ |
| 17141 | #define MICHAEL_MIC_TEST_VECTORS 6 |
| 17142 | |
| 17143 | static struct hash_testvec michael_mic_tv_template[] = { |
| 17144 | { |
| 17145 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17146 | .ksize = 8, |
| 17147 | .plaintext = zeroed_string, |
| 17148 | .psize = 0, |
| 17149 | .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 17150 | }, |
| 17151 | { |
| 17152 | .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 17153 | .ksize = 8, |
| 17154 | .plaintext = "M", |
| 17155 | .psize = 1, |
| 17156 | .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 17157 | }, |
| 17158 | { |
| 17159 | .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 17160 | .ksize = 8, |
| 17161 | .plaintext = "Mi", |
| 17162 | .psize = 2, |
| 17163 | .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 17164 | }, |
| 17165 | { |
| 17166 | .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 17167 | .ksize = 8, |
| 17168 | .plaintext = "Mic", |
| 17169 | .psize = 3, |
| 17170 | .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 17171 | }, |
| 17172 | { |
| 17173 | .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 17174 | .ksize = 8, |
| 17175 | .plaintext = "Mich", |
| 17176 | .psize = 4, |
| 17177 | .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 17178 | }, |
| 17179 | { |
| 17180 | .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 17181 | .ksize = 8, |
| 17182 | .plaintext = "Michael", |
| 17183 | .psize = 7, |
| 17184 | .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46", |
| 17185 | } |
| 17186 | }; |
| 17187 | |
| 17188 | /* |
| 17189 | * CRC32C test vectors |
| 17190 | */ |
| 17191 | #define CRC32C_TEST_VECTORS 14 |
| 17192 | |
| 17193 | static struct hash_testvec crc32c_tv_template[] = { |
| 17194 | { |
| 17195 | .psize = 0, |
| 17196 | .digest = "\x00\x00\x00\x00", |
| 17197 | }, |
| 17198 | { |
| 17199 | .key = "\x87\xa9\xcb\xed", |
| 17200 | .ksize = 4, |
| 17201 | .psize = 0, |
| 17202 | .digest = "\x78\x56\x34\x12", |
| 17203 | }, |
| 17204 | { |
| 17205 | .key = "\xff\xff\xff\xff", |
| 17206 | .ksize = 4, |
| 17207 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 17208 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 17209 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 17210 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 17211 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 17212 | .psize = 40, |
| 17213 | .digest = "\x7f\x15\x2c\x0e", |
| 17214 | }, |
| 17215 | { |
| 17216 | .key = "\xff\xff\xff\xff", |
| 17217 | .ksize = 4, |
| 17218 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 17219 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 17220 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 17221 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 17222 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 17223 | .psize = 40, |
| 17224 | .digest = "\xf6\xeb\x80\xe9", |
| 17225 | }, |
| 17226 | { |
| 17227 | .key = "\xff\xff\xff\xff", |
| 17228 | .ksize = 4, |
| 17229 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 17230 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 17231 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 17232 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 17233 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 17234 | .psize = 40, |
| 17235 | .digest = "\xed\xbd\x74\xde", |
| 17236 | }, |
| 17237 | { |
| 17238 | .key = "\xff\xff\xff\xff", |
| 17239 | .ksize = 4, |
| 17240 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 17241 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 17242 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 17243 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 17244 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 17245 | .psize = 40, |
| 17246 | .digest = "\x62\xc8\x79\xd5", |
| 17247 | }, |
| 17248 | { |
| 17249 | .key = "\xff\xff\xff\xff", |
| 17250 | .ksize = 4, |
| 17251 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 17252 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 17253 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 17254 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 17255 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 17256 | .psize = 40, |
| 17257 | .digest = "\xd0\x9a\x97\xba", |
| 17258 | }, |
| 17259 | { |
| 17260 | .key = "\xff\xff\xff\xff", |
| 17261 | .ksize = 4, |
| 17262 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 17263 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 17264 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 17265 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 17266 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 17267 | .psize = 40, |
| 17268 | .digest = "\x13\xd9\x29\x2b", |
| 17269 | }, |
| 17270 | { |
| 17271 | .key = "\x80\xea\xd3\xf1", |
| 17272 | .ksize = 4, |
| 17273 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 17274 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 17275 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 17276 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 17277 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 17278 | .psize = 40, |
| 17279 | .digest = "\x0c\xb5\xe2\xa2", |
| 17280 | }, |
| 17281 | { |
| 17282 | .key = "\xf3\x4a\x1d\x5d", |
| 17283 | .ksize = 4, |
| 17284 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 17285 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 17286 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 17287 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 17288 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 17289 | .psize = 40, |
| 17290 | .digest = "\xd1\x7f\xfb\xa6", |
| 17291 | }, |
| 17292 | { |
| 17293 | .key = "\x2e\x80\x04\x59", |
| 17294 | .ksize = 4, |
| 17295 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 17296 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 17297 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 17298 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 17299 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 17300 | .psize = 40, |
| 17301 | .digest = "\x59\x33\xe6\x7a", |
| 17302 | }, |
| 17303 | { |
| 17304 | .key = "\xa6\xcc\x19\x85", |
| 17305 | .ksize = 4, |
| 17306 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 17307 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 17308 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 17309 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 17310 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 17311 | .psize = 40, |
| 17312 | .digest = "\xbe\x03\x01\xd2", |
| 17313 | }, |
| 17314 | { |
| 17315 | .key = "\x41\xfc\xfe\x2d", |
| 17316 | .ksize = 4, |
| 17317 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 17318 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 17319 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 17320 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 17321 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 17322 | .psize = 40, |
| 17323 | .digest = "\x75\xd3\xc5\x24", |
| 17324 | }, |
| 17325 | { |
| 17326 | .key = "\xff\xff\xff\xff", |
| 17327 | .ksize = 4, |
| 17328 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 17329 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 17330 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 17331 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 17332 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 17333 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 17334 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 17335 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 17336 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 17337 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 17338 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 17339 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 17340 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 17341 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 17342 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 17343 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 17344 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 17345 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 17346 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 17347 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 17348 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 17349 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 17350 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 17351 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 17352 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 17353 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 17354 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 17355 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 17356 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 17357 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 17358 | .psize = 240, |
| 17359 | .digest = "\x75\xd3\xc5\x24", |
| 17360 | .np = 2, |
| 17361 | .tap = { 31, 209 } |
| 17362 | }, |
| 17363 | }; |
| 17364 | |
Sonic Zhang | a482b08 | 2012-05-25 17:54:13 +0800 | [diff] [blame] | 17365 | /* |
| 17366 | * Blakcifn CRC test vectors |
| 17367 | */ |
| 17368 | #define BFIN_CRC_TEST_VECTORS 6 |
| 17369 | |
| 17370 | static struct hash_testvec bfin_crc_tv_template[] = { |
| 17371 | { |
| 17372 | .psize = 0, |
| 17373 | .digest = "\x00\x00\x00\x00", |
| 17374 | }, |
| 17375 | { |
| 17376 | .key = "\x87\xa9\xcb\xed", |
| 17377 | .ksize = 4, |
| 17378 | .psize = 0, |
| 17379 | .digest = "\x87\xa9\xcb\xed", |
| 17380 | }, |
| 17381 | { |
| 17382 | .key = "\xff\xff\xff\xff", |
| 17383 | .ksize = 4, |
| 17384 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 17385 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 17386 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 17387 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 17388 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 17389 | .psize = 40, |
| 17390 | .digest = "\x84\x0c\x8d\xa2", |
| 17391 | }, |
| 17392 | { |
| 17393 | .key = "\xff\xff\xff\xff", |
| 17394 | .ksize = 4, |
| 17395 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 17396 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 17397 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 17398 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 17399 | "\x21\x22\x23\x24\x25\x26", |
| 17400 | .psize = 38, |
| 17401 | .digest = "\x8c\x58\xec\xb7", |
| 17402 | }, |
| 17403 | { |
| 17404 | .key = "\xff\xff\xff\xff", |
| 17405 | .ksize = 4, |
| 17406 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 17407 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 17408 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 17409 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 17410 | "\x21\x22\x23\x24\x25\x26\x27", |
| 17411 | .psize = 39, |
| 17412 | .digest = "\xdc\x50\x28\x7b", |
| 17413 | }, |
| 17414 | { |
| 17415 | .key = "\xff\xff\xff\xff", |
| 17416 | .ksize = 4, |
| 17417 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 17418 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 17419 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 17420 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 17421 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 17422 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 17423 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 17424 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 17425 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 17426 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 17427 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 17428 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 17429 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 17430 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 17431 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 17432 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 17433 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 17434 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 17435 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 17436 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 17437 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 17438 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 17439 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 17440 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 17441 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 17442 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 17443 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 17444 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 17445 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 17446 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 17447 | .psize = 240, |
| 17448 | .digest = "\x10\x19\x4a\x5c", |
| 17449 | .np = 2, |
| 17450 | .tap = { 31, 209 } |
| 17451 | }, |
| 17452 | |
| 17453 | }; |
| 17454 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17455 | #endif /* _CRYPTO_TESTMGR_H */ |