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 * 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 * 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 27 #include <linux/netlink.h> 28 #include <linux/zlib.h> 29 30 #include <crypto/compress.h> 31 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; 74 unsigned char novrfy; /* ccm dec verification failure expected */ 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 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 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 454 * Long vector from CAVS 5.0 455 */ 456 #define SHA1_TEST_VECTORS 3 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 } 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 } 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 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 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 1709 #define VMAC_AES_TEST_VECTORS 8 1710 static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01', 1711 '\x02', '\x03', '\x02', '\x02', 1712 '\x02', '\x04', '\x01', '\x07', 1713 '\x04', '\x01', '\x04', '\x03',}; 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 1725 static struct hash_testvec aes_vmac128_tv_template[] = { 1726 { 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 }, { 1734 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 1735 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 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", 1776 .psize = 128, 1777 .ksize = 16, 1778 }, 1779 }; 1780 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 */ 2394 #define BF_ENC_TEST_VECTORS 6 2395 #define BF_DEC_TEST_VECTORS 6 2396 #define BF_CBC_ENC_TEST_VECTORS 1 2397 #define BF_CBC_DEC_TEST_VECTORS 1 2398 2399 static struct cipher_testvec bf_enc_tv_template[] = { 2400 { /* DES test vectors from OpenSSL */ 2401 .key = "\x00\x00\x00\x00\x00\x00\x00\x00", 2402 .klen = 8, 2403 .input = "\x00\x00\x00\x00\x00\x00\x00\x00", 2404 .ilen = 8, 2405 .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", 2406 .rlen = 8, 2407 }, { 2408 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", 2409 .klen = 8, 2410 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", 2411 .ilen = 8, 2412 .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae", 2413 .rlen = 8, 2414 }, { 2415 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 2416 .klen = 8, 2417 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2418 .ilen = 8, 2419 .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", 2420 .rlen = 8, 2421 }, { /* Vary the keylength... */ 2422 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" 2423 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", 2424 .klen = 16, 2425 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2426 .ilen = 8, 2427 .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", 2428 .rlen = 8, 2429 }, { 2430 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" 2431 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" 2432 "\x00\x11\x22\x33\x44", 2433 .klen = 21, 2434 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2435 .ilen = 8, 2436 .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", 2437 .rlen = 8, 2438 }, { /* Generated with bf488 */ 2439 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" 2440 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" 2441 "\x00\x11\x22\x33\x44\x55\x66\x77" 2442 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" 2443 "\x58\x40\x23\x64\x1a\xba\x61\x76" 2444 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" 2445 "\xff\xff\xff\xff\xff\xff\xff\xff", 2446 .klen = 56, 2447 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2448 .ilen = 8, 2449 .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", 2450 .rlen = 8, 2451 }, 2452 }; 2453 2454 static struct cipher_testvec bf_dec_tv_template[] = { 2455 { /* DES test vectors from OpenSSL */ 2456 .key = "\x00\x00\x00\x00\x00\x00\x00\x00", 2457 .klen = 8, 2458 .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", 2459 .ilen = 8, 2460 .result = "\x00\x00\x00\x00\x00\x00\x00\x00", 2461 .rlen = 8, 2462 }, { 2463 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", 2464 .klen = 8, 2465 .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae", 2466 .ilen = 8, 2467 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", 2468 .rlen = 8, 2469 }, { 2470 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 2471 .klen = 8, 2472 .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", 2473 .ilen = 8, 2474 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2475 .rlen = 8, 2476 }, { /* Vary the keylength... */ 2477 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" 2478 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", 2479 .klen = 16, 2480 .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", 2481 .ilen = 8, 2482 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2483 .rlen = 8, 2484 }, { 2485 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" 2486 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" 2487 "\x00\x11\x22\x33\x44", 2488 .klen = 21, 2489 .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", 2490 .ilen = 8, 2491 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2492 .rlen = 8, 2493 }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */ 2494 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" 2495 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" 2496 "\x00\x11\x22\x33\x44\x55\x66\x77" 2497 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" 2498 "\x58\x40\x23\x64\x1a\xba\x61\x76" 2499 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" 2500 "\xff\xff\xff\xff\xff\xff\xff\xff", 2501 .klen = 56, 2502 .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", 2503 .ilen = 8, 2504 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2505 .rlen = 8, 2506 }, 2507 }; 2508 2509 static struct cipher_testvec bf_cbc_enc_tv_template[] = { 2510 { /* From OpenSSL */ 2511 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 2512 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 2513 .klen = 16, 2514 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2515 .input = "\x37\x36\x35\x34\x33\x32\x31\x20" 2516 "\x4e\x6f\x77\x20\x69\x73\x20\x74" 2517 "\x68\x65\x20\x74\x69\x6d\x65\x20" 2518 "\x66\x6f\x72\x20\x00\x00\x00\x00", 2519 .ilen = 32, 2520 .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" 2521 "\x05\xb1\x56\xe2\x74\x03\x97\x93" 2522 "\x58\xde\xb9\xe7\x15\x46\x16\xd9" 2523 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", 2524 .rlen = 32, 2525 }, 2526 }; 2527 2528 static struct cipher_testvec bf_cbc_dec_tv_template[] = { 2529 { /* From OpenSSL */ 2530 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 2531 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 2532 .klen = 16, 2533 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 2534 .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" 2535 "\x05\xb1\x56\xe2\x74\x03\x97\x93" 2536 "\x58\xde\xb9\xe7\x15\x46\x16\xd9" 2537 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", 2538 .ilen = 32, 2539 .result = "\x37\x36\x35\x34\x33\x32\x31\x20" 2540 "\x4e\x6f\x77\x20\x69\x73\x20\x74" 2541 "\x68\x65\x20\x74\x69\x6d\x65\x20" 2542 "\x66\x6f\x72\x20\x00\x00\x00\x00", 2543 .rlen = 32, 2544 }, 2545 }; 2546 2547 /* 2548 * Twofish test vectors. 2549 */ 2550 #define TF_ENC_TEST_VECTORS 3 2551 #define TF_DEC_TEST_VECTORS 3 2552 #define TF_CBC_ENC_TEST_VECTORS 4 2553 #define TF_CBC_DEC_TEST_VECTORS 4 2554 2555 static struct cipher_testvec tf_enc_tv_template[] = { 2556 { 2557 .key = zeroed_string, 2558 .klen = 16, 2559 .input = zeroed_string, 2560 .ilen = 16, 2561 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2562 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", 2563 .rlen = 16, 2564 }, { 2565 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 2566 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 2567 "\x00\x11\x22\x33\x44\x55\x66\x77", 2568 .klen = 24, 2569 .input = zeroed_string, 2570 .ilen = 16, 2571 .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" 2572 "\x50\x1f\x13\xb8\x92\xbd\x22\x48", 2573 .rlen = 16, 2574 }, { 2575 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 2576 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 2577 "\x00\x11\x22\x33\x44\x55\x66\x77" 2578 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 2579 .klen = 32, 2580 .input = zeroed_string, 2581 .ilen = 16, 2582 .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" 2583 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", 2584 .rlen = 16, 2585 }, 2586 }; 2587 2588 static struct cipher_testvec tf_dec_tv_template[] = { 2589 { 2590 .key = zeroed_string, 2591 .klen = 16, 2592 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2593 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", 2594 .ilen = 16, 2595 .result = zeroed_string, 2596 .rlen = 16, 2597 }, { 2598 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 2599 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 2600 "\x00\x11\x22\x33\x44\x55\x66\x77", 2601 .klen = 24, 2602 .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" 2603 "\x50\x1f\x13\xb8\x92\xbd\x22\x48", 2604 .ilen = 16, 2605 .result = zeroed_string, 2606 .rlen = 16, 2607 }, { 2608 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 2609 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 2610 "\x00\x11\x22\x33\x44\x55\x66\x77" 2611 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 2612 .klen = 32, 2613 .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" 2614 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", 2615 .ilen = 16, 2616 .result = zeroed_string, 2617 .rlen = 16, 2618 }, 2619 }; 2620 2621 static struct cipher_testvec tf_cbc_enc_tv_template[] = { 2622 { /* Generated with Nettle */ 2623 .key = zeroed_string, 2624 .klen = 16, 2625 .iv = zeroed_string, 2626 .input = zeroed_string, 2627 .ilen = 16, 2628 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2629 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", 2630 .rlen = 16, 2631 }, { 2632 .key = zeroed_string, 2633 .klen = 16, 2634 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2635 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", 2636 .input = zeroed_string, 2637 .ilen = 16, 2638 .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" 2639 "\x86\xcb\x08\x6b\x78\x9f\x54\x19", 2640 .rlen = 16, 2641 }, { 2642 .key = zeroed_string, 2643 .klen = 16, 2644 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" 2645 "\x86\xcb\x08\x6b\x78\x9f\x54\x19", 2646 .input = zeroed_string, 2647 .ilen = 16, 2648 .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26" 2649 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", 2650 .rlen = 16, 2651 }, { 2652 .key = zeroed_string, 2653 .klen = 16, 2654 .iv = zeroed_string, 2655 .input = zeroed_string, 2656 .ilen = 48, 2657 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2658 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" 2659 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" 2660 "\x86\xcb\x08\x6b\x78\x9f\x54\x19" 2661 "\x05\xef\x8c\x61\xa8\x11\x58\x26" 2662 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", 2663 .rlen = 48, 2664 }, 2665 }; 2666 2667 static struct cipher_testvec tf_cbc_dec_tv_template[] = { 2668 { /* Reverse of the first four above */ 2669 .key = zeroed_string, 2670 .klen = 16, 2671 .iv = zeroed_string, 2672 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2673 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", 2674 .ilen = 16, 2675 .result = zeroed_string, 2676 .rlen = 16, 2677 }, { 2678 .key = zeroed_string, 2679 .klen = 16, 2680 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2681 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", 2682 .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" 2683 "\x86\xcb\x08\x6b\x78\x9f\x54\x19", 2684 .ilen = 16, 2685 .result = zeroed_string, 2686 .rlen = 16, 2687 }, { 2688 .key = zeroed_string, 2689 .klen = 16, 2690 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" 2691 "\x86\xcb\x08\x6b\x78\x9f\x54\x19", 2692 .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26" 2693 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", 2694 .ilen = 16, 2695 .result = zeroed_string, 2696 .rlen = 16, 2697 }, { 2698 .key = zeroed_string, 2699 .klen = 16, 2700 .iv = zeroed_string, 2701 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" 2702 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" 2703 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" 2704 "\x86\xcb\x08\x6b\x78\x9f\x54\x19" 2705 "\x05\xef\x8c\x61\xa8\x11\x58\x26" 2706 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", 2707 .ilen = 48, 2708 .result = zeroed_string, 2709 .rlen = 48, 2710 }, 2711 }; 2712 2713 /* 2714 * Serpent test vectors. These are backwards because Serpent writes 2715 * octet sequences in right-to-left mode. 2716 */ 2717 #define SERPENT_ENC_TEST_VECTORS 4 2718 #define SERPENT_DEC_TEST_VECTORS 4 2719 2720 #define TNEPRES_ENC_TEST_VECTORS 4 2721 #define TNEPRES_DEC_TEST_VECTORS 4 2722 2723 static struct cipher_testvec serpent_enc_tv_template[] = { 2724 { 2725 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 2726 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2727 .ilen = 16, 2728 .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" 2729 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", 2730 .rlen = 16, 2731 }, { 2732 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 2733 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2734 .klen = 16, 2735 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 2736 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2737 .ilen = 16, 2738 .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" 2739 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", 2740 .rlen = 16, 2741 }, { 2742 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 2743 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 2744 "\x10\x11\x12\x13\x14\x15\x16\x17" 2745 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 2746 .klen = 32, 2747 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 2748 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2749 .ilen = 16, 2750 .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" 2751 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", 2752 .rlen = 16, 2753 }, { 2754 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", 2755 .klen = 16, 2756 .input = zeroed_string, 2757 .ilen = 16, 2758 .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" 2759 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", 2760 .rlen = 16, 2761 }, 2762 }; 2763 2764 static struct cipher_testvec tnepres_enc_tv_template[] = { 2765 { /* KeySize=128, PT=0, I=1 */ 2766 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 2767 "\x00\x00\x00\x00\x00\x00\x00\x00", 2768 .key = "\x80\x00\x00\x00\x00\x00\x00\x00" 2769 "\x00\x00\x00\x00\x00\x00\x00\x00", 2770 .klen = 16, 2771 .ilen = 16, 2772 .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05" 2773 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd", 2774 .rlen = 16, 2775 }, { /* KeySize=192, PT=0, I=1 */ 2776 .key = "\x80\x00\x00\x00\x00\x00\x00\x00" 2777 "\x00\x00\x00\x00\x00\x00\x00\x00" 2778 "\x00\x00\x00\x00\x00\x00\x00\x00", 2779 .klen = 24, 2780 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 2781 "\x00\x00\x00\x00\x00\x00\x00\x00", 2782 .ilen = 16, 2783 .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68" 2784 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66", 2785 .rlen = 16, 2786 }, { /* KeySize=256, PT=0, I=1 */ 2787 .key = "\x80\x00\x00\x00\x00\x00\x00\x00" 2788 "\x00\x00\x00\x00\x00\x00\x00\x00" 2789 "\x00\x00\x00\x00\x00\x00\x00\x00" 2790 "\x00\x00\x00\x00\x00\x00\x00\x00", 2791 .klen = 32, 2792 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 2793 "\x00\x00\x00\x00\x00\x00\x00\x00", 2794 .ilen = 16, 2795 .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb" 2796 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19", 2797 .rlen = 16, 2798 }, { /* KeySize=256, I=257 */ 2799 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18" 2800 "\x17\x16\x15\x14\x13\x12\x11\x10" 2801 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" 2802 "\x07\x06\x05\x04\x03\x02\x01\x00", 2803 .klen = 32, 2804 .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" 2805 "\x07\x06\x05\x04\x03\x02\x01\x00", 2806 .ilen = 16, 2807 .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b" 2808 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde", 2809 .rlen = 16, 2810 }, 2811 }; 2812 2813 2814 static struct cipher_testvec serpent_dec_tv_template[] = { 2815 { 2816 .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" 2817 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", 2818 .ilen = 16, 2819 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 2820 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2821 .rlen = 16, 2822 }, { 2823 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 2824 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2825 .klen = 16, 2826 .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" 2827 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", 2828 .ilen = 16, 2829 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 2830 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2831 .rlen = 16, 2832 }, { 2833 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 2834 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 2835 "\x10\x11\x12\x13\x14\x15\x16\x17" 2836 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 2837 .klen = 32, 2838 .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" 2839 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", 2840 .ilen = 16, 2841 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 2842 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2843 .rlen = 16, 2844 }, { 2845 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", 2846 .klen = 16, 2847 .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" 2848 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", 2849 .ilen = 16, 2850 .result = zeroed_string, 2851 .rlen = 16, 2852 }, 2853 }; 2854 2855 static struct cipher_testvec tnepres_dec_tv_template[] = { 2856 { 2857 .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97" 2858 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28", 2859 .ilen = 16, 2860 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 2861 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2862 .rlen = 16, 2863 }, { 2864 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 2865 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2866 .klen = 16, 2867 .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47" 2868 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e", 2869 .ilen = 16, 2870 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 2871 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2872 .rlen = 16, 2873 }, { 2874 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 2875 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 2876 "\x10\x11\x12\x13\x14\x15\x16\x17" 2877 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 2878 .klen = 32, 2879 .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49" 2880 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee", 2881 .ilen = 16, 2882 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 2883 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 2884 .rlen = 16, 2885 }, { /* KeySize=128, I=121 */ 2886 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", 2887 .klen = 16, 2888 .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06" 2889 "\x46\x2a\xf4\xef\x81\x54\x4e\x26", 2890 .ilen = 16, 2891 .result = zeroed_string, 2892 .rlen = 16, 2893 }, 2894 }; 2895 2896 2897 /* Cast6 test vectors from RFC 2612 */ 2898 #define CAST6_ENC_TEST_VECTORS 3 2899 #define CAST6_DEC_TEST_VECTORS 3 2900 2901 static struct cipher_testvec cast6_enc_tv_template[] = { 2902 { 2903 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" 2904 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", 2905 .klen = 16, 2906 .input = zeroed_string, 2907 .ilen = 16, 2908 .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" 2909 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", 2910 .rlen = 16, 2911 }, { 2912 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" 2913 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" 2914 "\xba\xc7\x7a\x77\x17\x94\x28\x63", 2915 .klen = 24, 2916 .input = zeroed_string, 2917 .ilen = 16, 2918 .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" 2919 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", 2920 .rlen = 16, 2921 }, { 2922 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" 2923 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" 2924 "\x8d\x7c\x47\xce\x26\x49\x08\x46" 2925 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", 2926 .klen = 32, 2927 .input = zeroed_string, 2928 .ilen = 16, 2929 .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" 2930 "\xc9\x87\x01\x36\x55\x33\x17\xfa", 2931 .rlen = 16, 2932 }, 2933 }; 2934 2935 static struct cipher_testvec cast6_dec_tv_template[] = { 2936 { 2937 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" 2938 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", 2939 .klen = 16, 2940 .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" 2941 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", 2942 .ilen = 16, 2943 .result = zeroed_string, 2944 .rlen = 16, 2945 }, { 2946 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" 2947 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" 2948 "\xba\xc7\x7a\x77\x17\x94\x28\x63", 2949 .klen = 24, 2950 .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" 2951 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", 2952 .ilen = 16, 2953 .result = zeroed_string, 2954 .rlen = 16, 2955 }, { 2956 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" 2957 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" 2958 "\x8d\x7c\x47\xce\x26\x49\x08\x46" 2959 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", 2960 .klen = 32, 2961 .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" 2962 "\xc9\x87\x01\x36\x55\x33\x17\xfa", 2963 .ilen = 16, 2964 .result = zeroed_string, 2965 .rlen = 16, 2966 }, 2967 }; 2968 2969 2970 /* 2971 * AES test vectors. 2972 */ 2973 #define AES_ENC_TEST_VECTORS 3 2974 #define AES_DEC_TEST_VECTORS 3 2975 #define AES_CBC_ENC_TEST_VECTORS 4 2976 #define AES_CBC_DEC_TEST_VECTORS 4 2977 #define AES_LRW_ENC_TEST_VECTORS 8 2978 #define AES_LRW_DEC_TEST_VECTORS 8 2979 #define AES_XTS_ENC_TEST_VECTORS 5 2980 #define AES_XTS_DEC_TEST_VECTORS 5 2981 #define AES_CTR_ENC_TEST_VECTORS 3 2982 #define AES_CTR_DEC_TEST_VECTORS 3 2983 #define AES_OFB_ENC_TEST_VECTORS 1 2984 #define AES_OFB_DEC_TEST_VECTORS 1 2985 #define AES_CTR_3686_ENC_TEST_VECTORS 7 2986 #define AES_CTR_3686_DEC_TEST_VECTORS 6 2987 #define AES_GCM_ENC_TEST_VECTORS 9 2988 #define AES_GCM_DEC_TEST_VECTORS 8 2989 #define AES_GCM_4106_ENC_TEST_VECTORS 7 2990 #define AES_GCM_4106_DEC_TEST_VECTORS 7 2991 #define AES_CCM_ENC_TEST_VECTORS 7 2992 #define AES_CCM_DEC_TEST_VECTORS 7 2993 #define AES_CCM_4309_ENC_TEST_VECTORS 7 2994 #define AES_CCM_4309_DEC_TEST_VECTORS 10 2995 2996 static struct cipher_testvec aes_enc_tv_template[] = { 2997 { /* From FIPS-197 */ 2998 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 2999 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 3000 .klen = 16, 3001 .input = "\x00\x11\x22\x33\x44\x55\x66\x77" 3002 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 3003 .ilen = 16, 3004 .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" 3005 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", 3006 .rlen = 16, 3007 }, { 3008 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 3009 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3010 "\x10\x11\x12\x13\x14\x15\x16\x17", 3011 .klen = 24, 3012 .input = "\x00\x11\x22\x33\x44\x55\x66\x77" 3013 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 3014 .ilen = 16, 3015 .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" 3016 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", 3017 .rlen = 16, 3018 }, { 3019 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 3020 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3021 "\x10\x11\x12\x13\x14\x15\x16\x17" 3022 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 3023 .klen = 32, 3024 .input = "\x00\x11\x22\x33\x44\x55\x66\x77" 3025 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 3026 .ilen = 16, 3027 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" 3028 "\xea\xfc\x49\x90\x4b\x49\x60\x89", 3029 .rlen = 16, 3030 }, 3031 }; 3032 3033 static struct cipher_testvec aes_dec_tv_template[] = { 3034 { /* From FIPS-197 */ 3035 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 3036 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 3037 .klen = 16, 3038 .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" 3039 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", 3040 .ilen = 16, 3041 .result = "\x00\x11\x22\x33\x44\x55\x66\x77" 3042 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 3043 .rlen = 16, 3044 }, { 3045 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 3046 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3047 "\x10\x11\x12\x13\x14\x15\x16\x17", 3048 .klen = 24, 3049 .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" 3050 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", 3051 .ilen = 16, 3052 .result = "\x00\x11\x22\x33\x44\x55\x66\x77" 3053 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 3054 .rlen = 16, 3055 }, { 3056 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 3057 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3058 "\x10\x11\x12\x13\x14\x15\x16\x17" 3059 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 3060 .klen = 32, 3061 .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" 3062 "\xea\xfc\x49\x90\x4b\x49\x60\x89", 3063 .ilen = 16, 3064 .result = "\x00\x11\x22\x33\x44\x55\x66\x77" 3065 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 3066 .rlen = 16, 3067 }, 3068 }; 3069 3070 static struct cipher_testvec aes_cbc_enc_tv_template[] = { 3071 { /* From RFC 3602 */ 3072 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" 3073 "\x51\x2e\x03\xd5\x34\x12\x00\x06", 3074 .klen = 16, 3075 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" 3076 "\xb4\x22\xda\x80\x2c\x9f\xac\x41", 3077 .input = "Single block msg", 3078 .ilen = 16, 3079 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" 3080 "\x27\x08\x94\x2d\xbe\x77\x18\x1a", 3081 .rlen = 16, 3082 }, { 3083 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" 3084 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", 3085 .klen = 16, 3086 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" 3087 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", 3088 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 3089 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3090 "\x10\x11\x12\x13\x14\x15\x16\x17" 3091 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 3092 .ilen = 32, 3093 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" 3094 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" 3095 "\x75\x86\x60\x2d\x25\x3c\xff\xf9" 3096 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", 3097 .rlen = 32, 3098 }, { /* From NIST SP800-38A */ 3099 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" 3100 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" 3101 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", 3102 .klen = 24, 3103 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" 3104 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 3105 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 3106 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 3107 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 3108 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 3109 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 3110 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 3111 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 3112 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 3113 .ilen = 64, 3114 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" 3115 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" 3116 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" 3117 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" 3118 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" 3119 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" 3120 "\x08\xb0\xe2\x79\x88\x59\x88\x81" 3121 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", 3122 .rlen = 64, 3123 }, { 3124 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" 3125 "\x2b\x73\xae\xf0\x85\x7d\x77\x81" 3126 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" 3127 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", 3128 .klen = 32, 3129 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" 3130 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 3131 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 3132 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 3133 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 3134 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 3135 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 3136 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 3137 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 3138 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 3139 .ilen = 64, 3140 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" 3141 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" 3142 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" 3143 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" 3144 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" 3145 "\xa5\x30\xe2\x63\x04\x23\x14\x61" 3146 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" 3147 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", 3148 .rlen = 64, 3149 }, 3150 }; 3151 3152 static struct cipher_testvec aes_cbc_dec_tv_template[] = { 3153 { /* From RFC 3602 */ 3154 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" 3155 "\x51\x2e\x03\xd5\x34\x12\x00\x06", 3156 .klen = 16, 3157 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" 3158 "\xb4\x22\xda\x80\x2c\x9f\xac\x41", 3159 .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" 3160 "\x27\x08\x94\x2d\xbe\x77\x18\x1a", 3161 .ilen = 16, 3162 .result = "Single block msg", 3163 .rlen = 16, 3164 }, { 3165 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" 3166 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", 3167 .klen = 16, 3168 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" 3169 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", 3170 .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" 3171 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" 3172 "\x75\x86\x60\x2d\x25\x3c\xff\xf9" 3173 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", 3174 .ilen = 32, 3175 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 3176 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3177 "\x10\x11\x12\x13\x14\x15\x16\x17" 3178 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 3179 .rlen = 32, 3180 }, { /* From NIST SP800-38A */ 3181 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" 3182 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" 3183 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", 3184 .klen = 24, 3185 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" 3186 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 3187 .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" 3188 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" 3189 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" 3190 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" 3191 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" 3192 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" 3193 "\x08\xb0\xe2\x79\x88\x59\x88\x81" 3194 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", 3195 .ilen = 64, 3196 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 3197 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 3198 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 3199 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 3200 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 3201 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 3202 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 3203 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 3204 .rlen = 64, 3205 }, { 3206 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" 3207 "\x2b\x73\xae\xf0\x85\x7d\x77\x81" 3208 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" 3209 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", 3210 .klen = 32, 3211 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" 3212 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 3213 .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" 3214 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" 3215 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" 3216 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" 3217 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" 3218 "\xa5\x30\xe2\x63\x04\x23\x14\x61" 3219 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" 3220 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", 3221 .ilen = 64, 3222 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 3223 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 3224 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 3225 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 3226 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 3227 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 3228 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 3229 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 3230 .rlen = 64, 3231 }, 3232 }; 3233 3234 static struct cipher_testvec aes_lrw_enc_tv_template[] = { 3235 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ 3236 { /* LRW-32-AES 1 */ 3237 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" 3238 "\x4c\x26\x84\x14\xb5\x68\x01\x85" 3239 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" 3240 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", 3241 .klen = 32, 3242 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3243 "\x00\x00\x00\x00\x00\x00\x00\x01", 3244 .input = "\x30\x31\x32\x33\x34\x35\x36\x37" 3245 "\x38\x39\x41\x42\x43\x44\x45\x46", 3246 .ilen = 16, 3247 .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" 3248 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", 3249 .rlen = 16, 3250 }, { /* LRW-32-AES 2 */ 3251 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" 3252 "\xd7\x79\xe8\x0f\x54\x88\x79\x44" 3253 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" 3254 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", 3255 .klen = 32, 3256 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3257 "\x00\x00\x00\x00\x00\x00\x00\x02", 3258 .input = "\x30\x31\x32\x33\x34\x35\x36\x37" 3259 "\x38\x39\x41\x42\x43\x44\x45\x46", 3260 .ilen = 16, 3261 .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" 3262 "\x27\x4f\x07\x69\xb2\x60\xe1\x36", 3263 .rlen = 16, 3264 }, { /* LRW-32-AES 3 */ 3265 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" 3266 "\x30\xfe\x69\xe2\x37\x7f\x98\x47" 3267 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" 3268 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", 3269 .klen = 32, 3270 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3271 "\x00\x00\x00\x02\x00\x00\x00\x00", 3272 .input = "\x30\x31\x32\x33\x34\x35\x36\x37" 3273 "\x38\x39\x41\x42\x43\x44\x45\x46", 3274 .ilen = 16, 3275 .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82" 3276 "\xf9\x59\x62\x03\x69\x0e\x5e\x01", 3277 .rlen = 16, 3278 }, { /* LRW-32-AES 4 */ 3279 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" 3280 "\x25\x83\xf7\x3c\x1f\x01\x28\x74" 3281 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" 3282 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" 3283 "\xad\xe4\x94\xc5\x4a\x29\xae\x70", 3284 .klen = 40, 3285 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3286 "\x00\x00\x00\x00\x00\x00\x00\x01", 3287 .input = "\x30\x31\x32\x33\x34\x35\x36\x37" 3288 "\x38\x39\x41\x42\x43\x44\x45\x46", 3289 .ilen = 16, 3290 .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" 3291 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", 3292 .rlen = 16, 3293 }, { /* LRW-32-AES 5 */ 3294 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" 3295 "\xf8\x86\xce\xac\x93\xc5\xad\xc6" 3296 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" 3297 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" 3298 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", 3299 .klen = 40, 3300 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3301 "\x00\x00\x00\x02\x00\x00\x00\x00", 3302 .input = "\x30\x31\x32\x33\x34\x35\x36\x37" 3303 "\x38\x39\x41\x42\x43\x44\x45\x46", 3304 .ilen = 16, 3305 .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" 3306 "\xc8\x60\x48\x02\x87\xe3\x34\x06", 3307 .rlen = 16, 3308 }, { /* LRW-32-AES 6 */ 3309 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" 3310 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" 3311 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" 3312 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" 3313 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" 3314 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", 3315 .klen = 48, 3316 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3317 "\x00\x00\x00\x00\x00\x00\x00\x01", 3318 .input = "\x30\x31\x32\x33\x34\x35\x36\x37" 3319 "\x38\x39\x41\x42\x43\x44\x45\x46", 3320 .ilen = 16, 3321 .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" 3322 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", 3323 .rlen = 16, 3324 }, { /* LRW-32-AES 7 */ 3325 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" 3326 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" 3327 "\xb2\xfb\x64\xce\x60\x97\x87\x8d" 3328 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" 3329 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" 3330 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", 3331 .klen = 48, 3332 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3333 "\x00\x00\x00\x02\x00\x00\x00\x00", 3334 .input = "\x30\x31\x32\x33\x34\x35\x36\x37" 3335 "\x38\x39\x41\x42\x43\x44\x45\x46", 3336 .ilen = 16, 3337 .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" 3338 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", 3339 .rlen = 16, 3340 }, { 3341 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ 3342 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" 3343 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" 3344 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" 3345 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" 3346 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" 3347 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", 3348 .klen = 48, 3349 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3350 "\x00\x00\x00\x00\x00\x00\x00\x01", 3351 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" 3352 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" 3353 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" 3354 "\x50\x38\x1f\x71\x49\xb6\x57\xd6" 3355 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" 3356 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" 3357 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" 3358 "\xda\x10\x8e\xed\xa2\xa4\x87\xab" 3359 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" 3360 "\xc9\xac\x42\x31\x95\x7c\xc9\x04" 3361 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" 3362 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" 3363 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" 3364 "\x4c\x96\x12\xed\x7c\x92\x03\x01" 3365 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" 3366 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" 3367 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" 3368 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" 3369 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" 3370 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" 3371 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" 3372 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" 3373 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" 3374 "\x76\x12\x73\x44\x1a\x56\xd7\x72" 3375 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" 3376 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" 3377 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" 3378 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" 3379 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" 3380 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" 3381 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" 3382 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" 3383 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" 3384 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" 3385 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" 3386 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" 3387 "\x8d\x23\x31\x74\x84\xeb\x88\x6e" 3388 "\xcc\xb9\xbc\x22\x83\x19\x07\x22" 3389 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" 3390 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" 3391 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" 3392 "\x3c\xce\x8f\x42\x60\x71\xa7\x75" 3393 "\x08\x40\x65\x8a\x82\xbf\xf5\x43" 3394 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" 3395 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" 3396 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" 3397 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" 3398 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" 3399 "\x62\x73\x65\xfd\x46\x63\x25\x3d" 3400 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" 3401 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" 3402 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" 3403 "\xc5\x68\x77\x84\x32\x2b\xcc\x85" 3404 "\x74\x96\xf0\x12\x77\x61\xb9\xeb" 3405 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" 3406 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" 3407 "\xda\x39\x87\x45\xc0\x2b\xbb\x01" 3408 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" 3409 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" 3410 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" 3411 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" 3412 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" 3413 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" 3414 "\x21\xc4\xc2\x75\x67\x89\x37\x0a", 3415 .ilen = 512, 3416 .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" 3417 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" 3418 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" 3419 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" 3420 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" 3421 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" 3422 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" 3423 "\xe8\x58\x46\x97\x39\x51\x07\xde" 3424 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" 3425 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" 3426 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" 3427 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" 3428 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" 3429 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" 3430 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" 3431 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" 3432 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" 3433 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" 3434 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" 3435 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" 3436 "\x18\x55\xa1\x24\x0b\x24\x24\xaf" 3437 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" 3438 "\xff\xed\x89\xce\xd5\x3d\x88\xf3" 3439 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" 3440 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" 3441 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" 3442 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" 3443 "\x41\x30\x58\xc5\x62\x74\x52\x1d" 3444 "\x45\x24\x6a\x42\x64\x4f\x97\x1c" 3445 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" 3446 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" 3447 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" 3448 "\xe4\x81\x84\x95\x36\x59\x7a\x6b" 3449 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" 3450 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" 3451 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" 3452 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" 3453 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" 3454 "\xb8\x79\x78\x97\x94\xff\x72\x13" 3455 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" 3456 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" 3457 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" 3458 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" 3459 "\xcc\xce\x51\x0c\x19\x8a\x82\x30" 3460 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" 3461 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" 3462 "\x1e\x86\x53\x11\x53\x94\x00\xee" 3463 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" 3464 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" 3465 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" 3466 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" 3467 "\x9e\xfa\x31\x18\x45\x3c\x21\x33" 3468 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" 3469 "\x03\xad\x1b\x48\xd4\x67\x27\xf0" 3470 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" 3471 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" 3472 "\xf7\x11\x90\xec\xbd\x51\x5c\x32" 3473 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" 3474 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" 3475 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" 3476 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" 3477 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" 3478 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" 3479 "\x74\x3f\x7d\x58\x88\x75\xde\x3e", 3480 .rlen = 512, 3481 } 3482 }; 3483 3484 static struct cipher_testvec aes_lrw_dec_tv_template[] = { 3485 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ 3486 /* same as enc vectors with input and result reversed */ 3487 { /* LRW-32-AES 1 */ 3488 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" 3489 "\x4c\x26\x84\x14\xb5\x68\x01\x85" 3490 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" 3491 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", 3492 .klen = 32, 3493 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3494 "\x00\x00\x00\x00\x00\x00\x00\x01", 3495 .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" 3496 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", 3497 .ilen = 16, 3498 .result = "\x30\x31\x32\x33\x34\x35\x36\x37" 3499 "\x38\x39\x41\x42\x43\x44\x45\x46", 3500 .rlen = 16, 3501 }, { /* LRW-32-AES 2 */ 3502 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" 3503 "\xd7\x79\xe8\x0f\x54\x88\x79\x44" 3504 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" 3505 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", 3506 .klen = 32, 3507 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3508 "\x00\x00\x00\x00\x00\x00\x00\x02", 3509 .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" 3510 "\x27\x4f\x07\x69\xb2\x60\xe1\x36", 3511 .ilen = 16, 3512 .result = "\x30\x31\x32\x33\x34\x35\x36\x37" 3513 "\x38\x39\x41\x42\x43\x44\x45\x46", 3514 .rlen = 16, 3515 }, { /* LRW-32-AES 3 */ 3516 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" 3517 "\x30\xfe\x69\xe2\x37\x7f\x98\x47" 3518 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" 3519 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", 3520 .klen = 32, 3521 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3522 "\x00\x00\x00\x02\x00\x00\x00\x00", 3523 .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82" 3524 "\xf9\x59\x62\x03\x69\x0e\x5e\x01", 3525 .ilen = 16, 3526 .result = "\x30\x31\x32\x33\x34\x35\x36\x37" 3527 "\x38\x39\x41\x42\x43\x44\x45\x46", 3528 .rlen = 16, 3529 }, { /* LRW-32-AES 4 */ 3530 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" 3531 "\x25\x83\xf7\x3c\x1f\x01\x28\x74" 3532 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" 3533 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" 3534 "\xad\xe4\x94\xc5\x4a\x29\xae\x70", 3535 .klen = 40, 3536 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3537 "\x00\x00\x00\x00\x00\x00\x00\x01", 3538 .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" 3539 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", 3540 .ilen = 16, 3541 .result = "\x30\x31\x32\x33\x34\x35\x36\x37" 3542 "\x38\x39\x41\x42\x43\x44\x45\x46", 3543 .rlen = 16, 3544 }, { /* LRW-32-AES 5 */ 3545 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" 3546 "\xf8\x86\xce\xac\x93\xc5\xad\xc6" 3547 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" 3548 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" 3549 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", 3550 .klen = 40, 3551 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3552 "\x00\x00\x00\x02\x00\x00\x00\x00", 3553 .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" 3554 "\xc8\x60\x48\x02\x87\xe3\x34\x06", 3555 .ilen = 16, 3556 .result = "\x30\x31\x32\x33\x34\x35\x36\x37" 3557 "\x38\x39\x41\x42\x43\x44\x45\x46", 3558 .rlen = 16, 3559 }, { /* LRW-32-AES 6 */ 3560 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" 3561 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" 3562 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" 3563 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" 3564 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" 3565 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", 3566 .klen = 48, 3567 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3568 "\x00\x00\x00\x00\x00\x00\x00\x01", 3569 .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" 3570 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", 3571 .ilen = 16, 3572 .result = "\x30\x31\x32\x33\x34\x35\x36\x37" 3573 "\x38\x39\x41\x42\x43\x44\x45\x46", 3574 .rlen = 16, 3575 }, { /* LRW-32-AES 7 */ 3576 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" 3577 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" 3578 "\xb2\xfb\x64\xce\x60\x97\x87\x8d" 3579 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" 3580 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" 3581 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", 3582 .klen = 48, 3583 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3584 "\x00\x00\x00\x02\x00\x00\x00\x00", 3585 .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" 3586 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", 3587 .ilen = 16, 3588 .result = "\x30\x31\x32\x33\x34\x35\x36\x37" 3589 "\x38\x39\x41\x42\x43\x44\x45\x46", 3590 .rlen = 16, 3591 }, { 3592 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ 3593 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" 3594 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" 3595 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" 3596 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" 3597 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" 3598 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", 3599 .klen = 48, 3600 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3601 "\x00\x00\x00\x00\x00\x00\x00\x01", 3602 .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" 3603 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" 3604 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" 3605 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" 3606 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" 3607 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" 3608 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" 3609 "\xe8\x58\x46\x97\x39\x51\x07\xde" 3610 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" 3611 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" 3612 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" 3613 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" 3614 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" 3615 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" 3616 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" 3617 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" 3618 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" 3619 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" 3620 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" 3621 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" 3622 "\x18\x55\xa1\x24\x0b\x24\x24\xaf" 3623 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" 3624 "\xff\xed\x89\xce\xd5\x3d\x88\xf3" 3625 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" 3626 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" 3627 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" 3628 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" 3629 "\x41\x30\x58\xc5\x62\x74\x52\x1d" 3630 "\x45\x24\x6a\x42\x64\x4f\x97\x1c" 3631 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" 3632 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" 3633 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" 3634 "\xe4\x81\x84\x95\x36\x59\x7a\x6b" 3635 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" 3636 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" 3637 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" 3638 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" 3639 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" 3640 "\xb8\x79\x78\x97\x94\xff\x72\x13" 3641 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" 3642 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" 3643 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" 3644 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" 3645 "\xcc\xce\x51\x0c\x19\x8a\x82\x30" 3646 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" 3647 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" 3648 "\x1e\x86\x53\x11\x53\x94\x00\xee" 3649 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" 3650 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" 3651 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" 3652 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" 3653 "\x9e\xfa\x31\x18\x45\x3c\x21\x33" 3654 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" 3655 "\x03\xad\x1b\x48\xd4\x67\x27\xf0" 3656 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" 3657 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" 3658 "\xf7\x11\x90\xec\xbd\x51\x5c\x32" 3659 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" 3660 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" 3661 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" 3662 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" 3663 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" 3664 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" 3665 "\x74\x3f\x7d\x58\x88\x75\xde\x3e", 3666 .ilen = 512, 3667 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" 3668 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" 3669 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" 3670 "\x50\x38\x1f\x71\x49\xb6\x57\xd6" 3671 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" 3672 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" 3673 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" 3674 "\xda\x10\x8e\xed\xa2\xa4\x87\xab" 3675 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" 3676 "\xc9\xac\x42\x31\x95\x7c\xc9\x04" 3677 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" 3678 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" 3679 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" 3680 "\x4c\x96\x12\xed\x7c\x92\x03\x01" 3681 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" 3682 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" 3683 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" 3684 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" 3685 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" 3686 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" 3687 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" 3688 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" 3689 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" 3690 "\x76\x12\x73\x44\x1a\x56\xd7\x72" 3691 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" 3692 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" 3693 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" 3694 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" 3695 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" 3696 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" 3697 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" 3698 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" 3699 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" 3700 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" 3701 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" 3702 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" 3703 "\x8d\x23\x31\x74\x84\xeb\x88\x6e" 3704 "\xcc\xb9\xbc\x22\x83\x19\x07\x22" 3705 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" 3706 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" 3707 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" 3708 "\x3c\xce\x8f\x42\x60\x71\xa7\x75" 3709 "\x08\x40\x65\x8a\x82\xbf\xf5\x43" 3710 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" 3711 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" 3712 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" 3713 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" 3714 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" 3715 "\x62\x73\x65\xfd\x46\x63\x25\x3d" 3716 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" 3717 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" 3718 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" 3719 "\xc5\x68\x77\x84\x32\x2b\xcc\x85" 3720 "\x74\x96\xf0\x12\x77\x61\xb9\xeb" 3721 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" 3722 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" 3723 "\xda\x39\x87\x45\xc0\x2b\xbb\x01" 3724 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" 3725 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" 3726 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" 3727 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" 3728 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" 3729 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" 3730 "\x21\xc4\xc2\x75\x67\x89\x37\x0a", 3731 .rlen = 512, 3732 } 3733 }; 3734 3735 static struct cipher_testvec aes_xts_enc_tv_template[] = { 3736 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ 3737 { /* XTS-AES 1 */ 3738 .key = "\x00\x00\x00\x00\x00\x00\x00\x00" 3739 "\x00\x00\x00\x00\x00\x00\x00\x00" 3740 "\x00\x00\x00\x00\x00\x00\x00\x00" 3741 "\x00\x00\x00\x00\x00\x00\x00\x00", 3742 .klen = 32, 3743 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3744 "\x00\x00\x00\x00\x00\x00\x00\x00", 3745 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 3746 "\x00\x00\x00\x00\x00\x00\x00\x00" 3747 "\x00\x00\x00\x00\x00\x00\x00\x00" 3748 "\x00\x00\x00\x00\x00\x00\x00\x00", 3749 .ilen = 32, 3750 .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" 3751 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" 3752 "\xcd\x43\xd2\xf5\x95\x98\xed\x85" 3753 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", 3754 .rlen = 32, 3755 }, { /* XTS-AES 2 */ 3756 .key = "\x11\x11\x11\x11\x11\x11\x11\x11" 3757 "\x11\x11\x11\x11\x11\x11\x11\x11" 3758 "\x22\x22\x22\x22\x22\x22\x22\x22" 3759 "\x22\x22\x22\x22\x22\x22\x22\x22", 3760 .klen = 32, 3761 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" 3762 "\x00\x00\x00\x00\x00\x00\x00\x00", 3763 .input = "\x44\x44\x44\x44\x44\x44\x44\x44" 3764 "\x44\x44\x44\x44\x44\x44\x44\x44" 3765 "\x44\x44\x44\x44\x44\x44\x44\x44" 3766 "\x44\x44\x44\x44\x44\x44\x44\x44", 3767 .ilen = 32, 3768 .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" 3769 "\x39\x33\x40\x38\xac\xef\x83\x8b" 3770 "\xfb\x18\x6f\xff\x74\x80\xad\xc4" 3771 "\x28\x93\x82\xec\xd6\xd3\x94\xf0", 3772 .rlen = 32, 3773 }, { /* XTS-AES 3 */ 3774 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" 3775 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" 3776 "\x22\x22\x22\x22\x22\x22\x22\x22" 3777 "\x22\x22\x22\x22\x22\x22\x22\x22", 3778 .klen = 32, 3779 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" 3780 "\x00\x00\x00\x00\x00\x00\x00\x00", 3781 .input = "\x44\x44\x44\x44\x44\x44\x44\x44" 3782 "\x44\x44\x44\x44\x44\x44\x44\x44" 3783 "\x44\x44\x44\x44\x44\x44\x44\x44" 3784 "\x44\x44\x44\x44\x44\x44\x44\x44", 3785 .ilen = 32, 3786 .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" 3787 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" 3788 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" 3789 "\x21\x86\xa5\x97\x1a\x22\x7a\x89", 3790 .rlen = 32, 3791 }, { /* XTS-AES 4 */ 3792 .key = "\x27\x18\x28\x18\x28\x45\x90\x45" 3793 "\x23\x53\x60\x28\x74\x71\x35\x26" 3794 "\x31\x41\x59\x26\x53\x58\x97\x93" 3795 "\x23\x84\x62\x64\x33\x83\x27\x95", 3796 .klen = 32, 3797 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 3798 "\x00\x00\x00\x00\x00\x00\x00\x00", 3799 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 3800 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3801 "\x10\x11\x12\x13\x14\x15\x16\x17" 3802 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 3803 "\x20\x21\x22\x23\x24\x25\x26\x27" 3804 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 3805 "\x30\x31\x32\x33\x34\x35\x36\x37" 3806 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 3807 "\x40\x41\x42\x43\x44\x45\x46\x47" 3808 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 3809 "\x50\x51\x52\x53\x54\x55\x56\x57" 3810 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 3811 "\x60\x61\x62\x63\x64\x65\x66\x67" 3812 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 3813 "\x70\x71\x72\x73\x74\x75\x76\x77" 3814 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 3815 "\x80\x81\x82\x83\x84\x85\x86\x87" 3816 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 3817 "\x90\x91\x92\x93\x94\x95\x96\x97" 3818 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 3819 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 3820 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 3821 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 3822 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 3823 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 3824 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 3825 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 3826 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 3827 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 3828 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 3829 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 3830 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" 3831 "\x00\x01\x02\x03\x04\x05\x06\x07" 3832 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3833 "\x10\x11\x12\x13\x14\x15\x16\x17" 3834 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 3835 "\x20\x21\x22\x23\x24\x25\x26\x27" 3836 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 3837 "\x30\x31\x32\x33\x34\x35\x36\x37" 3838 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 3839 "\x40\x41\x42\x43\x44\x45\x46\x47" 3840 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 3841 "\x50\x51\x52\x53\x54\x55\x56\x57" 3842 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 3843 "\x60\x61\x62\x63\x64\x65\x66\x67" 3844 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 3845 "\x70\x71\x72\x73\x74\x75\x76\x77" 3846 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 3847 "\x80\x81\x82\x83\x84\x85\x86\x87" 3848 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 3849 "\x90\x91\x92\x93\x94\x95\x96\x97" 3850 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 3851 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 3852 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 3853 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 3854 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 3855 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 3856 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 3857 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 3858 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 3859 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 3860 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 3861 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 3862 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 3863 .ilen = 512, 3864 .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" 3865 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" 3866 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" 3867 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" 3868 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" 3869 "\x83\x33\xd8\xfa\x7f\x56\x00\x00" 3870 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" 3871 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" 3872 "\x32\x80\x63\xfd\x2a\xab\x53\xe5" 3873 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" 3874 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" 3875 "\x51\x2c\x88\x66\xc7\xe8\x60\xce" 3876 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" 3877 "\x22\x97\x61\x46\xae\x20\xce\x84" 3878 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" 3879 "\xae\xf2\x0c\x0d\x61\xad\x02\x65" 3880 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" 3881 "\x52\xc6\x51\xd3\x31\x74\xbe\x51" 3882 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" 3883 "\x88\xed\xe8\x21\x03\xa2\x52\xd8" 3884 "\xa7\x50\xe8\x76\x8d\xef\xff\xed" 3885 "\x91\x22\x81\x0a\xae\xb9\x9f\x91" 3886 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" 3887 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" 3888 "\x13\x32\xe4\xca\x60\x48\x2a\x4b" 3889 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" 3890 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" 3891 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" 3892 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" 3893 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" 3894 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" 3895 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" 3896 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" 3897 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" 3898 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" 3899 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" 3900 "\x1e\x08\x29\x85\x16\xe2\xc9\xed" 3901 "\x03\xff\x3c\x1b\x78\x60\xf6\xde" 3902 "\x76\xd4\xce\xcd\x94\xc8\x11\x98" 3903 "\x55\xef\x52\x97\xca\x67\xe9\xf3" 3904 "\xe7\xff\x72\xb1\xe9\x97\x85\xca" 3905 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" 3906 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" 3907 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" 3908 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" 3909 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" 3910 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" 3911 "\x99\x02\x7a\x78\x57\x2a\xee\xbd" 3912 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" 3913 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" 3914 "\x18\x84\x69\x77\xae\x11\x9f\x7a" 3915 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" 3916 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" 3917 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" 3918 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" 3919 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" 3920 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" 3921 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" 3922 "\x44\x92\x77\xdb\xd4\x77\xef\x2c" 3923 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" 3924 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" 3925 "\xf2\x62\x73\x57\x79\xa4\x18\xf2" 3926 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" 3927 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", 3928 .rlen = 512, 3929 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ 3930 .key = "\x27\x18\x28\x18\x28\x45\x90\x45" 3931 "\x23\x53\x60\x28\x74\x71\x35\x26" 3932 "\x62\x49\x77\x57\x24\x70\x93\x69" 3933 "\x99\x59\x57\x49\x66\x96\x76\x27" 3934 "\x31\x41\x59\x26\x53\x58\x97\x93" 3935 "\x23\x84\x62\x64\x33\x83\x27\x95" 3936 "\x02\x88\x41\x97\x16\x93\x99\x37" 3937 "\x51\x05\x82\x09\x74\x94\x45\x92", 3938 .klen = 64, 3939 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" 3940 "\x00\x00\x00\x00\x00\x00\x00\x00", 3941 "\x00\x00\x00\x00\x00\x00\x00\x00", 3942 "\x00\x00\x00\x00\x00\x00\x00\x00", 3943 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 3944 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3945 "\x10\x11\x12\x13\x14\x15\x16\x17" 3946 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 3947 "\x20\x21\x22\x23\x24\x25\x26\x27" 3948 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 3949 "\x30\x31\x32\x33\x34\x35\x36\x37" 3950 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 3951 "\x40\x41\x42\x43\x44\x45\x46\x47" 3952 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 3953 "\x50\x51\x52\x53\x54\x55\x56\x57" 3954 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 3955 "\x60\x61\x62\x63\x64\x65\x66\x67" 3956 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 3957 "\x70\x71\x72\x73\x74\x75\x76\x77" 3958 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 3959 "\x80\x81\x82\x83\x84\x85\x86\x87" 3960 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 3961 "\x90\x91\x92\x93\x94\x95\x96\x97" 3962 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 3963 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 3964 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 3965 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 3966 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 3967 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 3968 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 3969 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 3970 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 3971 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 3972 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 3973 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 3974 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" 3975 "\x00\x01\x02\x03\x04\x05\x06\x07" 3976 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 3977 "\x10\x11\x12\x13\x14\x15\x16\x17" 3978 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 3979 "\x20\x21\x22\x23\x24\x25\x26\x27" 3980 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 3981 "\x30\x31\x32\x33\x34\x35\x36\x37" 3982 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 3983 "\x40\x41\x42\x43\x44\x45\x46\x47" 3984 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 3985 "\x50\x51\x52\x53\x54\x55\x56\x57" 3986 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 3987 "\x60\x61\x62\x63\x64\x65\x66\x67" 3988 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 3989 "\x70\x71\x72\x73\x74\x75\x76\x77" 3990 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 3991 "\x80\x81\x82\x83\x84\x85\x86\x87" 3992 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 3993 "\x90\x91\x92\x93\x94\x95\x96\x97" 3994 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 3995 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 3996 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 3997 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 3998 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 3999 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 4000 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 4001 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 4002 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 4003 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 4004 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 4005 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4006 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4007 .ilen = 512, 4008 .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" 4009 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" 4010 "\xea\x00\x80\x3f\x5e\x48\x23\x57" 4011 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" 4012 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" 4013 "\x66\xb3\x17\xf9\xac\x68\x3f\x44" 4014 "\x68\x0a\x86\xac\x35\xad\xfc\x33" 4015 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" 4016 "\x57\x76\x92\x6c\x49\xa3\x09\x5e" 4017 "\xb1\x08\xfd\x10\x98\xba\xec\x70" 4018 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" 4019 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" 4020 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" 4021 "\xae\xba\x12\x29\x61\xd0\x3a\x75" 4022 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" 4023 "\x00\x02\x08\x87\x89\x14\x29\xca" 4024 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" 4025 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" 4026 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" 4027 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" 4028 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" 4029 "\x21\xc7\x90\xdf\xe1\xde\x18\x34" 4030 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" 4031 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" 4032 "\x93\xec\x05\xc5\x2e\x04\x93\xef" 4033 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" 4034 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" 4035 "\x84\x14\x73\xd1\xa8\xcc\x81\xec" 4036 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" 4037 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" 4038 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" 4039 "\x17\xb6\xba\x02\x46\x9a\x02\x0a" 4040 "\x84\xe1\x8e\x8f\x84\x25\x20\x70" 4041 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" 4042 "\xbc\x48\x14\x57\x77\x8f\x61\x60" 4043 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" 4044 "\x50\x5e\xb3\x09\x32\x6d\x68\x37" 4045 "\x8f\x83\x74\x59\x5c\x84\x9d\x84" 4046 "\xf4\xc3\x33\xec\x44\x23\x88\x51" 4047 "\x43\xcb\x47\xbd\x71\xc5\xed\xae" 4048 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" 4049 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" 4050 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" 4051 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" 4052 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" 4053 "\x84\xc5\x87\x54\xcc\xe2\x94\x52" 4054 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" 4055 "\x92\x5f\xed\xc4\xae\x74\xff\xac" 4056 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" 4057 "\x79\xda\x9a\x41\x0e\x44\x50\xe0" 4058 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" 4059 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" 4060 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" 4061 "\x94\x30\x54\xff\x84\x01\x14\x93" 4062 "\xc2\x7b\x34\x29\xea\xed\xb4\xed" 4063 "\x53\x76\x44\x1a\x77\xed\x43\x85" 4064 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" 4065 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" 4066 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" 4067 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" 4068 "\x77\x3d\xad\x38\x01\x4b\xd2\x09" 4069 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" 4070 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" 4071 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", 4072 .rlen = 512, 4073 } 4074 }; 4075 4076 static struct cipher_testvec aes_xts_dec_tv_template[] = { 4077 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ 4078 { /* XTS-AES 1 */ 4079 .key = "\x00\x00\x00\x00\x00\x00\x00\x00" 4080 "\x00\x00\x00\x00\x00\x00\x00\x00" 4081 "\x00\x00\x00\x00\x00\x00\x00\x00" 4082 "\x00\x00\x00\x00\x00\x00\x00\x00", 4083 .klen = 32, 4084 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 4085 "\x00\x00\x00\x00\x00\x00\x00\x00", 4086 .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" 4087 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" 4088 "\xcd\x43\xd2\xf5\x95\x98\xed\x85" 4089 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", 4090 .ilen = 32, 4091 .result = "\x00\x00\x00\x00\x00\x00\x00\x00" 4092 "\x00\x00\x00\x00\x00\x00\x00\x00" 4093 "\x00\x00\x00\x00\x00\x00\x00\x00" 4094 "\x00\x00\x00\x00\x00\x00\x00\x00", 4095 .rlen = 32, 4096 }, { /* XTS-AES 2 */ 4097 .key = "\x11\x11\x11\x11\x11\x11\x11\x11" 4098 "\x11\x11\x11\x11\x11\x11\x11\x11" 4099 "\x22\x22\x22\x22\x22\x22\x22\x22" 4100 "\x22\x22\x22\x22\x22\x22\x22\x22", 4101 .klen = 32, 4102 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" 4103 "\x00\x00\x00\x00\x00\x00\x00\x00", 4104 .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" 4105 "\x39\x33\x40\x38\xac\xef\x83\x8b" 4106 "\xfb\x18\x6f\xff\x74\x80\xad\xc4" 4107 "\x28\x93\x82\xec\xd6\xd3\x94\xf0", 4108 .ilen = 32, 4109 .result = "\x44\x44\x44\x44\x44\x44\x44\x44" 4110 "\x44\x44\x44\x44\x44\x44\x44\x44" 4111 "\x44\x44\x44\x44\x44\x44\x44\x44" 4112 "\x44\x44\x44\x44\x44\x44\x44\x44", 4113 .rlen = 32, 4114 }, { /* XTS-AES 3 */ 4115 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" 4116 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" 4117 "\x22\x22\x22\x22\x22\x22\x22\x22" 4118 "\x22\x22\x22\x22\x22\x22\x22\x22", 4119 .klen = 32, 4120 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" 4121 "\x00\x00\x00\x00\x00\x00\x00\x00", 4122 .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" 4123 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" 4124 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" 4125 "\x21\x86\xa5\x97\x1a\x22\x7a\x89", 4126 .ilen = 32, 4127 .result = "\x44\x44\x44\x44\x44\x44\x44\x44" 4128 "\x44\x44\x44\x44\x44\x44\x44\x44" 4129 "\x44\x44\x44\x44\x44\x44\x44\x44" 4130 "\x44\x44\x44\x44\x44\x44\x44\x44", 4131 .rlen = 32, 4132 }, { /* XTS-AES 4 */ 4133 .key = "\x27\x18\x28\x18\x28\x45\x90\x45" 4134 "\x23\x53\x60\x28\x74\x71\x35\x26" 4135 "\x31\x41\x59\x26\x53\x58\x97\x93" 4136 "\x23\x84\x62\x64\x33\x83\x27\x95", 4137 .klen = 32, 4138 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 4139 "\x00\x00\x00\x00\x00\x00\x00\x00", 4140 .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" 4141 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" 4142 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" 4143 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" 4144 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" 4145 "\x83\x33\xd8\xfa\x7f\x56\x00\x00" 4146 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" 4147 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" 4148 "\x32\x80\x63\xfd\x2a\xab\x53\xe5" 4149 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" 4150 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" 4151 "\x51\x2c\x88\x66\xc7\xe8\x60\xce" 4152 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" 4153 "\x22\x97\x61\x46\xae\x20\xce\x84" 4154 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" 4155 "\xae\xf2\x0c\x0d\x61\xad\x02\x65" 4156 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" 4157 "\x52\xc6\x51\xd3\x31\x74\xbe\x51" 4158 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" 4159 "\x88\xed\xe8\x21\x03\xa2\x52\xd8" 4160 "\xa7\x50\xe8\x76\x8d\xef\xff\xed" 4161 "\x91\x22\x81\x0a\xae\xb9\x9f\x91" 4162 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" 4163 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" 4164 "\x13\x32\xe4\xca\x60\x48\x2a\x4b" 4165 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" 4166 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" 4167 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" 4168 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" 4169 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" 4170 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" 4171 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" 4172 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" 4173 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" 4174 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" 4175 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" 4176 "\x1e\x08\x29\x85\x16\xe2\xc9\xed" 4177 "\x03\xff\x3c\x1b\x78\x60\xf6\xde" 4178 "\x76\xd4\xce\xcd\x94\xc8\x11\x98" 4179 "\x55\xef\x52\x97\xca\x67\xe9\xf3" 4180 "\xe7\xff\x72\xb1\xe9\x97\x85\xca" 4181 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" 4182 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" 4183 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" 4184 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" 4185 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" 4186 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" 4187 "\x99\x02\x7a\x78\x57\x2a\xee\xbd" 4188 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" 4189 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" 4190 "\x18\x84\x69\x77\xae\x11\x9f\x7a" 4191 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" 4192 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" 4193 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" 4194 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" 4195 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" 4196 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" 4197 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" 4198 "\x44\x92\x77\xdb\xd4\x77\xef\x2c" 4199 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" 4200 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" 4201 "\xf2\x62\x73\x57\x79\xa4\x18\xf2" 4202 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" 4203 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", 4204 .ilen = 512, 4205 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 4206 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4207 "\x10\x11\x12\x13\x14\x15\x16\x17" 4208 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 4209 "\x20\x21\x22\x23\x24\x25\x26\x27" 4210 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 4211 "\x30\x31\x32\x33\x34\x35\x36\x37" 4212 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 4213 "\x40\x41\x42\x43\x44\x45\x46\x47" 4214 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 4215 "\x50\x51\x52\x53\x54\x55\x56\x57" 4216 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 4217 "\x60\x61\x62\x63\x64\x65\x66\x67" 4218 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 4219 "\x70\x71\x72\x73\x74\x75\x76\x77" 4220 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 4221 "\x80\x81\x82\x83\x84\x85\x86\x87" 4222 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 4223 "\x90\x91\x92\x93\x94\x95\x96\x97" 4224 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 4225 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 4226 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 4227 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 4228 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 4229 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 4230 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 4231 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 4232 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 4233 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 4234 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 4235 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4236 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" 4237 "\x00\x01\x02\x03\x04\x05\x06\x07" 4238 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4239 "\x10\x11\x12\x13\x14\x15\x16\x17" 4240 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 4241 "\x20\x21\x22\x23\x24\x25\x26\x27" 4242 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 4243 "\x30\x31\x32\x33\x34\x35\x36\x37" 4244 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 4245 "\x40\x41\x42\x43\x44\x45\x46\x47" 4246 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 4247 "\x50\x51\x52\x53\x54\x55\x56\x57" 4248 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 4249 "\x60\x61\x62\x63\x64\x65\x66\x67" 4250 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 4251 "\x70\x71\x72\x73\x74\x75\x76\x77" 4252 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 4253 "\x80\x81\x82\x83\x84\x85\x86\x87" 4254 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 4255 "\x90\x91\x92\x93\x94\x95\x96\x97" 4256 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 4257 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 4258 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 4259 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 4260 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 4261 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 4262 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 4263 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 4264 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 4265 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 4266 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 4267 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4268 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4269 .rlen = 512, 4270 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ 4271 .key = "\x27\x18\x28\x18\x28\x45\x90\x45" 4272 "\x23\x53\x60\x28\x74\x71\x35\x26" 4273 "\x62\x49\x77\x57\x24\x70\x93\x69" 4274 "\x99\x59\x57\x49\x66\x96\x76\x27" 4275 "\x31\x41\x59\x26\x53\x58\x97\x93" 4276 "\x23\x84\x62\x64\x33\x83\x27\x95" 4277 "\x02\x88\x41\x97\x16\x93\x99\x37" 4278 "\x51\x05\x82\x09\x74\x94\x45\x92", 4279 .klen = 64, 4280 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" 4281 "\x00\x00\x00\x00\x00\x00\x00\x00", 4282 "\x00\x00\x00\x00\x00\x00\x00\x00", 4283 "\x00\x00\x00\x00\x00\x00\x00\x00", 4284 .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" 4285 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" 4286 "\xea\x00\x80\x3f\x5e\x48\x23\x57" 4287 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" 4288 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" 4289 "\x66\xb3\x17\xf9\xac\x68\x3f\x44" 4290 "\x68\x0a\x86\xac\x35\xad\xfc\x33" 4291 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" 4292 "\x57\x76\x92\x6c\x49\xa3\x09\x5e" 4293 "\xb1\x08\xfd\x10\x98\xba\xec\x70" 4294 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" 4295 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" 4296 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" 4297 "\xae\xba\x12\x29\x61\xd0\x3a\x75" 4298 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" 4299 "\x00\x02\x08\x87\x89\x14\x29\xca" 4300 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" 4301 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" 4302 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" 4303 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" 4304 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" 4305 "\x21\xc7\x90\xdf\xe1\xde\x18\x34" 4306 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" 4307 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" 4308 "\x93\xec\x05\xc5\x2e\x04\x93\xef" 4309 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" 4310 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" 4311 "\x84\x14\x73\xd1\xa8\xcc\x81\xec" 4312 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" 4313 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" 4314 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" 4315 "\x17\xb6\xba\x02\x46\x9a\x02\x0a" 4316 "\x84\xe1\x8e\x8f\x84\x25\x20\x70" 4317 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" 4318 "\xbc\x48\x14\x57\x77\x8f\x61\x60" 4319 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" 4320 "\x50\x5e\xb3\x09\x32\x6d\x68\x37" 4321 "\x8f\x83\x74\x59\x5c\x84\x9d\x84" 4322 "\xf4\xc3\x33\xec\x44\x23\x88\x51" 4323 "\x43\xcb\x47\xbd\x71\xc5\xed\xae" 4324 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" 4325 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" 4326 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" 4327 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" 4328 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" 4329 "\x84\xc5\x87\x54\xcc\xe2\x94\x52" 4330 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" 4331 "\x92\x5f\xed\xc4\xae\x74\xff\xac" 4332 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" 4333 "\x79\xda\x9a\x41\x0e\x44\x50\xe0" 4334 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" 4335 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" 4336 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" 4337 "\x94\x30\x54\xff\x84\x01\x14\x93" 4338 "\xc2\x7b\x34\x29\xea\xed\xb4\xed" 4339 "\x53\x76\x44\x1a\x77\xed\x43\x85" 4340 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" 4341 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" 4342 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" 4343 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" 4344 "\x77\x3d\xad\x38\x01\x4b\xd2\x09" 4345 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" 4346 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" 4347 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", 4348 .ilen = 512, 4349 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 4350 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4351 "\x10\x11\x12\x13\x14\x15\x16\x17" 4352 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 4353 "\x20\x21\x22\x23\x24\x25\x26\x27" 4354 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 4355 "\x30\x31\x32\x33\x34\x35\x36\x37" 4356 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 4357 "\x40\x41\x42\x43\x44\x45\x46\x47" 4358 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 4359 "\x50\x51\x52\x53\x54\x55\x56\x57" 4360 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 4361 "\x60\x61\x62\x63\x64\x65\x66\x67" 4362 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 4363 "\x70\x71\x72\x73\x74\x75\x76\x77" 4364 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 4365 "\x80\x81\x82\x83\x84\x85\x86\x87" 4366 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 4367 "\x90\x91\x92\x93\x94\x95\x96\x97" 4368 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 4369 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 4370 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 4371 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 4372 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 4373 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 4374 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 4375 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 4376 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 4377 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 4378 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 4379 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4380 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" 4381 "\x00\x01\x02\x03\x04\x05\x06\x07" 4382 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4383 "\x10\x11\x12\x13\x14\x15\x16\x17" 4384 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 4385 "\x20\x21\x22\x23\x24\x25\x26\x27" 4386 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 4387 "\x30\x31\x32\x33\x34\x35\x36\x37" 4388 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 4389 "\x40\x41\x42\x43\x44\x45\x46\x47" 4390 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 4391 "\x50\x51\x52\x53\x54\x55\x56\x57" 4392 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 4393 "\x60\x61\x62\x63\x64\x65\x66\x67" 4394 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 4395 "\x70\x71\x72\x73\x74\x75\x76\x77" 4396 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 4397 "\x80\x81\x82\x83\x84\x85\x86\x87" 4398 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 4399 "\x90\x91\x92\x93\x94\x95\x96\x97" 4400 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 4401 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 4402 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 4403 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 4404 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 4405 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 4406 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 4407 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 4408 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 4409 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 4410 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 4411 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4412 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4413 .rlen = 512, 4414 4415 } 4416 }; 4417 4418 4419 static struct cipher_testvec aes_ctr_enc_tv_template[] = { 4420 { /* From NIST Special Publication 800-38A, Appendix F.5 */ 4421 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" 4422 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", 4423 .klen = 16, 4424 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4425 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4426 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 4427 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 4428 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 4429 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 4430 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 4431 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 4432 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 4433 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 4434 .ilen = 64, 4435 .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" 4436 "\x1b\xef\x68\x64\x99\x0d\xb6\xce" 4437 "\x98\x06\xf6\x6b\x79\x70\xfd\xff" 4438 "\x86\x17\x18\x7b\xb9\xff\xfd\xff" 4439 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" 4440 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" 4441 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" 4442 "\x79\x21\x70\xa0\xf3\x00\x9c\xee", 4443 .rlen = 64, 4444 }, { 4445 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" 4446 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" 4447 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", 4448 .klen = 24, 4449 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4450 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4451 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 4452 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 4453 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 4454 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 4455 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 4456 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 4457 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 4458 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 4459 .ilen = 64, 4460 .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" 4461 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" 4462 "\x09\x03\x39\xec\x0a\xa6\xfa\xef" 4463 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" 4464 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" 4465 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" 4466 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" 4467 "\x5a\x97\xda\xec\x58\xc6\xb0\x50", 4468 .rlen = 64, 4469 }, { 4470 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" 4471 "\x2b\x73\xae\xf0\x85\x7d\x77\x81" 4472 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" 4473 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", 4474 .klen = 32, 4475 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4476 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4477 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 4478 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 4479 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 4480 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 4481 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 4482 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 4483 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 4484 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 4485 .ilen = 64, 4486 .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" 4487 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" 4488 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" 4489 "\xca\x84\xe9\x90\xca\xca\xf5\xc5" 4490 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" 4491 "\xe8\x70\x17\xba\x2d\x84\x98\x8d" 4492 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" 4493 "\x13\xc2\xdd\x08\x45\x79\x41\xa6", 4494 .rlen = 64, 4495 } 4496 }; 4497 4498 static struct cipher_testvec aes_ctr_dec_tv_template[] = { 4499 { /* From NIST Special Publication 800-38A, Appendix F.5 */ 4500 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" 4501 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", 4502 .klen = 16, 4503 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4504 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4505 .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" 4506 "\x1b\xef\x68\x64\x99\x0d\xb6\xce" 4507 "\x98\x06\xf6\x6b\x79\x70\xfd\xff" 4508 "\x86\x17\x18\x7b\xb9\xff\xfd\xff" 4509 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" 4510 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" 4511 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" 4512 "\x79\x21\x70\xa0\xf3\x00\x9c\xee", 4513 .ilen = 64, 4514 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 4515 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 4516 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 4517 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 4518 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 4519 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 4520 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 4521 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 4522 .rlen = 64, 4523 }, { 4524 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" 4525 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" 4526 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", 4527 .klen = 24, 4528 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4529 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4530 .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" 4531 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" 4532 "\x09\x03\x39\xec\x0a\xa6\xfa\xef" 4533 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" 4534 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" 4535 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" 4536 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" 4537 "\x5a\x97\xda\xec\x58\xc6\xb0\x50", 4538 .ilen = 64, 4539 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 4540 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 4541 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 4542 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 4543 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 4544 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 4545 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 4546 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 4547 .rlen = 64, 4548 }, { 4549 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" 4550 "\x2b\x73\xae\xf0\x85\x7d\x77\x81" 4551 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" 4552 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", 4553 .klen = 32, 4554 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4555 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", 4556 .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" 4557 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" 4558 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" 4559 "\xca\x84\xe9\x90\xca\xca\xf5\xc5" 4560 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" 4561 "\xe8\x70\x17\xba\x2d\x84\x98\x8d" 4562 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" 4563 "\x13\xc2\xdd\x08\x45\x79\x41\xa6", 4564 .ilen = 64, 4565 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 4566 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 4567 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 4568 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 4569 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 4570 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 4571 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 4572 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 4573 .rlen = 64, 4574 } 4575 }; 4576 4577 static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = { 4578 { /* From RFC 3686 */ 4579 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" 4580 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" 4581 "\x00\x00\x00\x30", 4582 .klen = 20, 4583 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 4584 .input = "Single block msg", 4585 .ilen = 16, 4586 .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" 4587 "\x2d\x61\x75\xa3\x26\x13\x11\xb8", 4588 .rlen = 16, 4589 }, { 4590 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" 4591 "\x43\xd6\xce\x1f\x32\x53\x91\x63" 4592 "\x00\x6c\xb6\xdb", 4593 .klen = 20, 4594 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", 4595 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 4596 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4597 "\x10\x11\x12\x13\x14\x15\x16\x17" 4598 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 4599 .ilen = 32, 4600 .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" 4601 "\x79\x0d\x41\xee\x8e\xda\xd3\x88" 4602 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" 4603 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", 4604 .rlen = 32, 4605 }, { 4606 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" 4607 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" 4608 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" 4609 "\x00\x00\x00\x48", 4610 .klen = 28, 4611 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", 4612 .input = "Single block msg", 4613 .ilen = 16, 4614 .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" 4615 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", 4616 .rlen = 16, 4617 }, { 4618 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" 4619 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" 4620 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" 4621 "\x00\x96\xb0\x3b", 4622 .klen = 28, 4623 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", 4624 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 4625 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4626 "\x10\x11\x12\x13\x14\x15\x16\x17" 4627 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 4628 .ilen = 32, 4629 .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32" 4630 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" 4631 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" 4632 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", 4633 .rlen = 32, 4634 }, { 4635 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" 4636 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" 4637 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" 4638 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" 4639 "\x00\x00\x00\x60", 4640 .klen = 36, 4641 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", 4642 .input = "Single block msg", 4643 .ilen = 16, 4644 .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" 4645 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", 4646 .rlen = 16, 4647 }, { 4648 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" 4649 "\x07\x96\x36\x58\x79\xef\xf8\x86" 4650 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" 4651 "\x4b\x50\x59\x0c\x87\xa2\x38\x84" 4652 "\x00\xfa\xac\x24", 4653 .klen = 36, 4654 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", 4655 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 4656 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4657 "\x10\x11\x12\x13\x14\x15\x16\x17" 4658 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 4659 .ilen = 32, 4660 .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" 4661 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" 4662 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" 4663 "\x55\x30\x83\x1d\x93\x44\xaf\x1c", 4664 .rlen = 32, 4665 }, { 4666 // generated using Crypto++ 4667 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 4668 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4669 "\x10\x11\x12\x13\x14\x15\x16\x17" 4670 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 4671 "\x00\x00\x00\x00", 4672 .klen = 32 + 4, 4673 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 4674 .input = 4675 "\x00\x01\x02\x03\x04\x05\x06\x07" 4676 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 4677 "\x10\x11\x12\x13\x14\x15\x16\x17" 4678 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 4679 "\x20\x21\x22\x23\x24\x25\x26\x27" 4680 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 4681 "\x30\x31\x32\x33\x34\x35\x36\x37" 4682 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 4683 "\x40\x41\x42\x43\x44\x45\x46\x47" 4684 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 4685 "\x50\x51\x52\x53\x54\x55\x56\x57" 4686 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 4687 "\x60\x61\x62\x63\x64\x65\x66\x67" 4688 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 4689 "\x70\x71\x72\x73\x74\x75\x76\x77" 4690 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 4691 "\x80\x81\x82\x83\x84\x85\x86\x87" 4692 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 4693 "\x90\x91\x92\x93\x94\x95\x96\x97" 4694 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 4695 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 4696 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 4697 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 4698 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 4699 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 4700 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 4701 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 4702 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 4703 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 4704 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 4705 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 4706 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" 4707 "\x00\x03\x06\x09\x0c\x0f\x12\x15" 4708 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" 4709 "\x30\x33\x36\x39\x3c\x3f\x42\x45" 4710 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" 4711 "\x60\x63\x66\x69\x6c\x6f\x72\x75" 4712 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" 4713 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" 4714 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" 4715 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" 4716 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" 4717 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" 4718 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" 4719 "\x20\x23\x26\x29\x2c\x2f\x32\x35" 4720 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" 4721 "\x50\x53\x56\x59\x5c\x5f\x62\x65" 4722 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" 4723 "\x80\x83\x86\x89\x8c\x8f\x92\x95" 4724 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" 4725 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" 4726 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" 4727 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" 4728 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" 4729 "\x10\x13\x16\x19\x1c\x1f\x22\x25" 4730 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" 4731 "\x40\x43\x46\x49\x4c\x4f\x52\x55" 4732 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" 4733 "\x70\x73\x76\x79\x7c\x7f\x82\x85" 4734 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" 4735 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" 4736 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" 4737 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" 4738 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" 4739 "\x00\x05\x0a\x0f\x14\x19\x1e\x23" 4740 "\x28\x2d\x32\x37\x3c\x41\x46\x4b" 4741 "\x50\x55\x5a\x5f\x64\x69\x6e\x73" 4742 "\x78\x7d\x82\x87\x8c\x91\x96\x9b" 4743 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" 4744 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" 4745 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" 4746 "\x18\x1d\x22\x27\x2c\x31\x36\x3b" 4747 "\x40\x45\x4a\x4f\x54\x59\x5e\x63" 4748 "\x68\x6d\x72\x77\x7c\x81\x86\x8b" 4749 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" 4750 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" 4751 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" 4752 "\x08\x0d\x12\x17\x1c\x21\x26\x2b" 4753 "\x30\x35\x3a\x3f\x44\x49\x4e\x53" 4754 "\x58\x5d\x62\x67\x6c\x71\x76\x7b" 4755 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" 4756 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" 4757 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" 4758 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" 4759 "\x20\x25\x2a\x2f\x34\x39\x3e\x43" 4760 "\x48\x4d\x52\x57\x5c\x61\x66\x6b" 4761 "\x70\x75\x7a\x7f\x84\x89\x8e\x93" 4762 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" 4763 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" 4764 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" 4765 "\x10\x15\x1a\x1f\x24\x29\x2e\x33" 4766 "\x38\x3d\x42\x47\x4c\x51\x56\x5b" 4767 "\x60\x65\x6a\x6f\x74\x79\x7e\x83" 4768 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" 4769 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" 4770 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" 4771 "\x00\x07\x0e\x15\x1c\x23\x2a\x31" 4772 "\x38\x3f\x46\x4d\x54\x5b\x62\x69" 4773 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" 4774 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" 4775 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" 4776 "\x18\x1f\x26\x2d\x34\x3b\x42\x49" 4777 "\x50\x57\x5e\x65\x6c\x73\x7a\x81" 4778 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" 4779 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" 4780 "\xf8\xff\x06\x0d\x14\x1b\x22\x29" 4781 "\x30\x37\x3e\x45\x4c\x53\x5a\x61" 4782 "\x68\x6f\x76\x7d\x84\x8b\x92\x99" 4783 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" 4784 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" 4785 "\x10\x17\x1e\x25\x2c\x33\x3a\x41" 4786 "\x48\x4f\x56\x5d\x64\x6b\x72\x79" 4787 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" 4788 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" 4789 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" 4790 "\x28\x2f\x36\x3d\x44\x4b\x52\x59" 4791 "\x60\x67\x6e\x75\x7c\x83\x8a\x91" 4792 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" 4793 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" 4794 "\x08\x0f\x16\x1d\x24\x2b\x32\x39" 4795 "\x40\x47\x4e\x55\x5c\x63\x6a\x71" 4796 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" 4797 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" 4798 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" 4799 "\x20\x27\x2e\x35\x3c\x43\x4a\x51" 4800 "\x58\x5f\x66\x6d\x74\x7b\x82\x89" 4801 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" 4802 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" 4803 "\x00\x09\x12\x1b\x24\x2d\x36\x3f" 4804 "\x48\x51\x5a\x63\x6c\x75\x7e\x87" 4805 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" 4806 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" 4807 "\x20\x29\x32\x3b\x44\x4d\x56\x5f" 4808 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" 4809 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" 4810 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" 4811 "\x40\x49\x52\x5b\x64\x6d\x76\x7f" 4812 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" 4813 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" 4814 "\x18\x21\x2a\x33\x3c\x45\x4e\x57" 4815 "\x60\x69\x72\x7b\x84\x8d\x96\x9f" 4816 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" 4817 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" 4818 "\x38\x41\x4a\x53\x5c\x65\x6e\x77" 4819 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" 4820 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" 4821 "\x10\x19\x22\x2b\x34\x3d\x46\x4f" 4822 "\x58\x61\x6a\x73\x7c\x85\x8e\x97" 4823 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" 4824 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" 4825 "\x30\x39\x42\x4b\x54\x5d\x66\x6f" 4826 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" 4827 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" 4828 "\x08\x11\x1a\x23\x2c\x35\x3e\x47" 4829 "\x50\x59\x62\x6b\x74\x7d\x86\x8f" 4830 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" 4831 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" 4832 "\x28\x31\x3a\x43\x4c\x55\x5e\x67" 4833 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" 4834 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" 4835 "\x00\x0b\x16\x21\x2c\x37\x42\x4d" 4836 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" 4837 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" 4838 "\x08\x13\x1e\x29\x34\x3f\x4a\x55" 4839 "\x60\x6b\x76\x81\x8c\x97\xa2\xad" 4840 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" 4841 "\x10\x1b\x26\x31\x3c\x47\x52\x5d" 4842 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" 4843 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" 4844 "\x18\x23\x2e\x39\x44\x4f\x5a\x65" 4845 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" 4846 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" 4847 "\x20\x2b\x36\x41\x4c\x57\x62\x6d" 4848 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" 4849 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" 4850 "\x28\x33\x3e\x49\x54\x5f\x6a\x75" 4851 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" 4852 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" 4853 "\x30\x3b\x46\x51\x5c\x67\x72\x7d" 4854 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" 4855 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" 4856 "\x38\x43\x4e\x59\x64\x6f\x7a\x85" 4857 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" 4858 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" 4859 "\x40\x4b\x56\x61\x6c\x77\x82\x8d" 4860 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" 4861 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" 4862 "\x48\x53\x5e\x69\x74\x7f\x8a\x95" 4863 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" 4864 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" 4865 "\x50\x5b\x66\x71\x7c\x87\x92\x9d" 4866 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" 4867 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" 4868 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" 4869 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" 4870 "\x38\x45\x52\x5f\x6c\x79\x86\x93" 4871 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" 4872 "\x08\x15\x22\x2f\x3c\x49\x56\x63" 4873 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" 4874 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" 4875 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" 4876 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" 4877 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" 4878 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" 4879 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" 4880 "\x48\x55\x62\x6f\x7c\x89\x96\xa3" 4881 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" 4882 "\x18\x25\x32\x3f\x4c\x59\x66\x73" 4883 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" 4884 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" 4885 "\x50\x5d\x6a\x77\x84\x91\x9e\xab" 4886 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" 4887 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" 4888 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" 4889 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" 4890 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" 4891 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" 4892 "\x28\x35\x42\x4f\x5c\x69\x76\x83" 4893 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" 4894 "\xf8\x05\x12\x1f\x2c\x39\x46\x53" 4895 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" 4896 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" 4897 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" 4898 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" 4899 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" 4900 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" 4901 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" 4902 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" 4903 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" 4904 "\x58\x67\x76\x85\x94\xa3\xb2\xc1" 4905 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" 4906 "\x48\x57\x66\x75\x84\x93\xa2\xb1" 4907 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" 4908 "\x38\x47\x56\x65\x74\x83\x92\xa1" 4909 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" 4910 "\x28\x37\x46\x55\x64\x73\x82\x91" 4911 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" 4912 "\x18\x27\x36\x45\x54\x63\x72\x81" 4913 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" 4914 "\x08\x17\x26\x35\x44\x53\x62\x71" 4915 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" 4916 "\xf8\x07\x16\x25\x34\x43\x52\x61" 4917 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" 4918 "\xe8\xf7\x06\x15\x24\x33\x42\x51" 4919 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" 4920 "\xd8\xe7\xf6\x05\x14\x23\x32\x41" 4921 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" 4922 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" 4923 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" 4924 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" 4925 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" 4926 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" 4927 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" 4928 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" 4929 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" 4930 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" 4931 "\x00\x11\x22\x33\x44\x55\x66\x77" 4932 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" 4933 "\x10\x21\x32\x43\x54\x65\x76\x87" 4934 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" 4935 "\x20\x31\x42\x53\x64\x75\x86\x97" 4936 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" 4937 "\x30\x41\x52\x63\x74\x85\x96\xa7" 4938 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" 4939 "\x40\x51\x62\x73\x84\x95\xa6\xb7" 4940 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" 4941 "\x50\x61\x72\x83\x94\xa5\xb6\xc7" 4942 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" 4943 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" 4944 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" 4945 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" 4946 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" 4947 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" 4948 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" 4949 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" 4950 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" 4951 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" 4952 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" 4953 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" 4954 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" 4955 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" 4956 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" 4957 "\xd0\xe1\xf2\x03\x14\x25\x36\x47" 4958 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" 4959 "\xe0\xf1\x02\x13\x24\x35\x46\x57" 4960 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" 4961 "\xf0\x01\x12\x23\x34\x45\x56\x67" 4962 "\x78\x89\x9a\xab\xbc\xcd\xde\xef" 4963 "\x00\x13\x26\x39\x4c\x5f\x72\x85" 4964 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" 4965 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" 4966 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" 4967 "\x60\x73\x86\x99\xac\xbf\xd2\xe5" 4968 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" 4969 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" 4970 "\x28\x3b\x4e\x61\x74\x87\x9a\xad" 4971 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" 4972 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" 4973 "\xf0\x03\x16\x29\x3c\x4f\x62\x75" 4974 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" 4975 "\x20\x33\x46\x59\x6c\x7f\x92\xa5" 4976 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" 4977 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" 4978 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" 4979 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" 4980 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" 4981 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" 4982 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" 4983 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" 4984 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" 4985 "\x10\x23\x36\x49\x5c\x6f\x82\x95" 4986 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" 4987 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" 4988 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" 4989 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" 4990 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" 4991 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" 4992 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" 4993 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" 4994 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" 4995 "\x00\x15\x2a\x3f\x54\x69\x7e\x93" 4996 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" 4997 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" 4998 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" 4999 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" 5000 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" 5001 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" 5002 "\x98\xad\xc2\xd7\xec\x01\x16\x2b" 5003 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" 5004 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" 5005 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" 5006 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" 5007 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" 5008 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" 5009 "\x30\x45\x5a\x6f\x84\x99\xae\xc3" 5010 "\xd8\xed\x02\x17\x2c\x41\x56\x6b" 5011 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" 5012 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" 5013 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" 5014 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" 5015 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" 5016 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" 5017 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" 5018 "\x18\x2d\x42\x57\x6c\x81\x96\xab" 5019 "\xc0\xd5\xea\xff\x14\x29\x3e\x53" 5020 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" 5021 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" 5022 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" 5023 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" 5024 "\x08\x1d\x32\x47\x5c\x71\x86\x9b" 5025 "\xb0\xc5\xda\xef\x04\x19\x2e\x43" 5026 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" 5027 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" 5028 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" 5029 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" 5030 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" 5031 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" 5032 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" 5033 "\x50\x67\x7e\x95\xac\xc3\xda\xf1" 5034 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" 5035 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" 5036 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" 5037 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" 5038 "\xe8\xff\x16\x2d\x44\x5b\x72\x89" 5039 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" 5040 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" 5041 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" 5042 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" 5043 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" 5044 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" 5045 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" 5046 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" 5047 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" 5048 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" 5049 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" 5050 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" 5051 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" 5052 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" 5053 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" 5054 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" 5055 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" 5056 "\xd8\xef\x06\x1d\x34\x4b\x62\x79" 5057 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" 5058 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" 5059 "\x00\x19\x32\x4b\x64\x7d\x96\xaf" 5060 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" 5061 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" 5062 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" 5063 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" 5064 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" 5065 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" 5066 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" 5067 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" 5068 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" 5069 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" 5070 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" 5071 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" 5072 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" 5073 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" 5074 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" 5075 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" 5076 "\x48\x61\x7a\x93\xac\xc5\xde\xf7" 5077 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" 5078 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" 5079 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" 5080 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" 5081 "\x30\x49\x62\x7b\x94\xad\xc6\xdf" 5082 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" 5083 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" 5084 "\x88\xa1\xba\xd3\xec\x05\x1e\x37" 5085 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" 5086 "\x18\x31\x4a\x63\x7c\x95\xae\xc7" 5087 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" 5088 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" 5089 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" 5090 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" 5091 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" 5092 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" 5093 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" 5094 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" 5095 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" 5096 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" 5097 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" 5098 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" 5099 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" 5100 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" 5101 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" 5102 "\x48\x63\x7e\x99\xb4\xcf\xea\x05" 5103 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" 5104 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" 5105 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" 5106 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" 5107 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" 5108 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" 5109 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" 5110 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" 5111 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" 5112 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" 5113 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" 5114 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" 5115 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" 5116 "\x18\x33\x4e\x69\x84\x9f\xba\xd5" 5117 "\xf0\x0b\x26\x41\x5c\x77\x92\xad" 5118 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" 5119 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" 5120 "\x78\x93\xae\xc9\xe4\xff\x1a\x35" 5121 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" 5122 "\x28\x43\x5e\x79\x94\xaf\xca\xe5" 5123 "\x00\x1d\x3a\x57\x74\x91\xae\xcb" 5124 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" 5125 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" 5126 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" 5127 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" 5128 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" 5129 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" 5130 "\x58\x75\x92\xaf\xcc\xe9\x06\x23" 5131 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" 5132 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" 5133 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" 5134 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" 5135 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" 5136 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" 5137 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" 5138 "\x98\xb5\xd2\xef\x0c\x29\x46\x63" 5139 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" 5140 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" 5141 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" 5142 "\x38\x55\x72\x8f\xac\xc9\xe6\x03" 5143 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" 5144 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" 5145 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" 5146 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" 5147 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" 5148 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" 5149 "\x90\xad\xca\xe7\x04\x21\x3e\x5b" 5150 "\x78\x95\xb2\xcf\xec\x09\x26\x43" 5151 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" 5152 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" 5153 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" 5154 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" 5155 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" 5156 "\xf8\x17\x36\x55\x74\x93\xb2\xd1" 5157 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" 5158 "\xe8\x07\x26\x45\x64\x83\xa2\xc1" 5159 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" 5160 "\xd8\xf7\x16\x35\x54\x73\x92\xb1" 5161 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" 5162 "\xc8\xe7\x06\x25\x44\x63\x82\xa1" 5163 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" 5164 "\xb8\xd7\xf6\x15\x34\x53\x72\x91" 5165 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" 5166 "\xa8\xc7\xe6\x05\x24\x43\x62\x81" 5167 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" 5168 "\x98\xb7\xd6\xf5\x14\x33\x52\x71" 5169 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" 5170 "\x88\xa7\xc6\xe5\x04\x23\x42\x61" 5171 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" 5172 "\x78\x97\xb6\xd5\xf4\x13\x32\x51" 5173 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" 5174 "\x68\x87\xa6\xc5\xe4\x03\x22\x41" 5175 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" 5176 "\x58\x77\x96\xb5\xd4\xf3\x12\x31" 5177 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" 5178 "\x48\x67\x86\xa5\xc4\xe3\x02\x21" 5179 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" 5180 "\x38\x57\x76\x95\xb4\xd3\xf2\x11" 5181 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" 5182 "\x28\x47\x66\x85\xa4\xc3\xe2\x01" 5183 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" 5184 "\x18\x37\x56\x75\x94\xb3\xd2\xf1" 5185 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" 5186 "\x08\x27\x46\x65\x84\xa3\xc2\xe1" 5187 "\x00\x21\x42\x63", 5188 .ilen = 4100, 5189 .result = 5190 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2" 5191 "\xae\xff\x91\x3a\x44\xcf\x38\x32" 5192 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa" 5193 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86" 5194 "\xf2\x62\x74\x70\x0c\xa4\x46\x08" 5195 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79" 5196 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31" 5197 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71" 5198 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2" 5199 "\x18\xff\x75\x6d\x06\x2d\x00\xab" 5200 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5" 5201 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6" 5202 "\x3d\x74\x54\xfa\x44\xcd\x23\x26" 5203 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf" 5204 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde" 5205 "\x61\x00\x1c\x4f\xff\x59\xc4\x22" 5206 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b" 5207 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d" 5208 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee" 5209 "\x84\xff\x42\x60\xdc\x3a\x18\xa5" 5210 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41" 5211 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d" 5212 "\x8f\xd3\x76\x96\xad\x49\x6d\x38" 5213 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69" 5214 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12" 5215 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3" 5216 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2" 5217 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74" 5218 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33" 5219 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14" 5220 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08" 5221 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92" 5222 "\x78\x6b\x01\xc9\xc7\x83\xba\x21" 5223 "\x6a\x25\x15\x33\x4e\x45\x08\xec" 5224 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9" 5225 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a" 5226 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc" 5227 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec" 5228 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16" 5229 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0" 5230 "\xc8\x53\x07\xaf\x80\x84\xec\xfd" 5231 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36" 5232 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a" 5233 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a" 5234 "\x06\x51\x48\x4e\xf6\x59\x87\xd2" 5235 "\x04\x02\xef\xd3\x44\xde\x76\x31" 5236 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f" 5237 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7" 5238 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb" 5239 "\x65\x83\xd0\x3b\xe3\x30\xea\x94" 5240 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64" 5241 "\xb4\x01\xab\x36\x2c\x77\x13\xaf" 5242 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44" 5243 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05" 5244 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed" 5245 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe" 5246 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7" 5247 "\x93\x97\xc6\x48\x45\x1d\x9f\x83" 5248 "\xdf\x4b\x40\x3e\x42\x25\x87\x80" 5249 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75" 5250 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06" 5251 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf" 5252 "\x32\x03\xed\xf0\x50\x1c\x56\x39" 5253 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef" 5254 "\x53\xfc\x2a\x38\x23\x15\x75\xcd" 5255 "\x45\xe5\x5a\x82\x55\xba\x21\xfa" 5256 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12" 5257 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28" 5258 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e" 5259 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32" 5260 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0" 5261 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed" 5262 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19" 5263 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3" 5264 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59" 5265 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31" 5266 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71" 5267 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3" 5268 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe" 5269 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3" 5270 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c" 5271 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2" 5272 "\x69\x3a\x29\x23\xac\x86\x32\xa5" 5273 "\x48\x9c\x9e\xf3\x47\x77\x81\x70" 5274 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff" 5275 "\x59\x6a\xd3\x50\x59\x43\x59\xde" 5276 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a" 5277 "\x18\x34\x0d\x1a\x63\x33\xed\x10" 5278 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8" 5279 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84" 5280 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe" 5281 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d" 5282 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80" 5283 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d" 5284 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0" 5285 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f" 5286 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8" 5287 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2" 5288 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10" 5289 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33" 5290 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8" 5291 "\xe8\x99\x57\x8c\x11\xed\x66\xd9" 5292 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a" 5293 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e" 5294 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5" 5295 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc" 5296 "\x64\x76\x38\x49\x4d\xfe\x30\x6d" 5297 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba" 5298 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3" 5299 "\x28\xa2\x82\x1f\x61\x69\xad\xc1" 5300 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b" 5301 "\x51\xb5\x17\x7f\x12\x69\x8c\x24" 5302 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a" 5303 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a" 5304 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5" 5305 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7" 5306 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2" 5307 "\x4d\x29\x77\x53\x35\x6a\x00\x8d" 5308 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8" 5309 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2" 5310 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80" 5311 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91" 5312 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21" 5313 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8" 5314 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2" 5315 "\x26\x39\x83\x94\xef\x27\xd8\x53" 5316 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd" 5317 "\x43\x7c\x95\x0a\x53\xef\x66\xda" 5318 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71" 5319 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41" 5320 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c" 5321 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3" 5322 "\x88\xee\x73\xcf\x66\x2f\x52\x56" 5323 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88" 5324 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3" 5325 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f" 5326 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1" 5327 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9" 5328 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46" 5329 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94" 5330 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36" 5331 "\xba\x61\x34\x38\x7c\xda\x48\x3e" 5332 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a" 5333 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02" 5334 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0" 5335 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c" 5336 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d" 5337 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37" 5338 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4" 5339 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a" 5340 "\x35\x12\xe3\x36\x28\x27\x36\x58" 5341 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d" 5342 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f" 5343 "\x2b\x9f\x96\x00\x86\x60\xf0\x21" 5344 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b" 5345 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40" 5346 "\x9d\x62\x79\x58\x52\xe6\x65\xb7" 5347 "\xab\x55\x67\x9c\x89\x7c\x03\xb0" 5348 "\x73\x59\xc5\x81\xf5\x18\x17\x5c" 5349 "\x89\xf3\x78\x35\x44\x62\x78\x72" 5350 "\xd0\x96\xeb\x31\xe7\x87\x77\x14" 5351 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6" 5352 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a" 5353 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe" 5354 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda" 5355 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d" 5356 "\xfb\x79\x2e\x04\x2d\x50\x28\x83" 5357 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a" 5358 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c" 5359 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92" 5360 "\xd2\x49\x77\x81\x6d\x90\x70\xae" 5361 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14" 5362 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2" 5363 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f" 5364 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d" 5365 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b" 5366 "\x45\x42\x27\x75\x50\xe5\xee\xb8" 5367 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c" 5368 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29" 5369 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea" 5370 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f" 5371 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44" 5372 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52" 5373 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7" 5374 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3" 5375 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5" 5376 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03" 5377 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a" 5378 "\xa9\x21\x2b\x92\x94\x87\x62\x57" 5379 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84" 5380 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56" 5381 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8" 5382 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05" 5383 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93" 5384 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1" 5385 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf" 5386 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84" 5387 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb" 5388 "\x69\x34\x78\x61\x24\x21\x9c\x8a" 5389 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35" 5390 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5" 5391 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e" 5392 "\x8a\x59\x94\x3c\xcf\x36\x27\x82" 5393 "\xc2\x45\xee\x58\xcd\x88\xb4\xec" 5394 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88" 5395 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a" 5396 "\xb1\x95\x28\x86\x20\xe9\x17\x49" 5397 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1" 5398 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b" 5399 "\xdb\x7c\x73\x10\xb9\xba\x89\x76" 5400 "\x54\xae\x7d\x71\xb3\x93\xf6\x32" 5401 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2" 5402 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7" 5403 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e" 5404 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72" 5405 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3" 5406 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79" 5407 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62" 5408 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0" 5409 "\x79\x00\xa8\x6c\x29\xd9\x18\x24" 5410 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd" 5411 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4" 5412 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f" 5413 "\x26\x2c\x39\x52\x89\x98\xe7\x2c" 5414 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a" 5415 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b" 5416 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d" 5417 "\x32\x4d\xed\xab\xfa\x98\x14\x4e" 5418 "\xc3\x15\x45\x53\x61\xc4\x93\xbd" 5419 "\x90\xf4\x99\x95\x4c\xe6\x76\x92" 5420 "\x29\x90\x46\x30\x92\x69\x7d\x13" 5421 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f" 5422 "\x63\x40\x36\x5f\x09\xe2\x78\xf8" 5423 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24" 5424 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2" 5425 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c" 5426 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2" 5427 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae" 5428 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e" 5429 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e" 5430 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23" 5431 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36" 5432 "\x05\xc4\xa6\x96\xec\x05\x98\x4f" 5433 "\x96\x67\x57\x1f\x20\x86\x1b\x2d" 5434 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b" 5435 "\x88\x26\x2c\x67\x02\x4b\x52\xd0" 5436 "\x83\x7a\x43\x1f\xc0\x71\x15\x25" 5437 "\x77\x65\x08\x60\x11\x76\x4c\x8d" 5438 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a" 5439 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3" 5440 "\x03\xd1\x24\x95\xec\x6d\xab\x38" 5441 "\x72\xce\xe2\x8b\x33\xd7\x51\x09" 5442 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4" 5443 "\x84\xdc\x73\x73\x2d\x1b\x11\x98" 5444 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d" 5445 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74" 5446 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a" 5447 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96" 5448 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1" 5449 "\x62\x8f\x7a\x73\x32\xab\xc8\x18" 5450 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5" 5451 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60" 5452 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b" 5453 "\xde\x39\xa4\x01\x72\x63\xf3\xd1" 5454 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d" 5455 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d" 5456 "\x16\xf7\xcd\x92\x9a\x99\x30\x14" 5457 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8" 5458 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f" 5459 "\xe5\x79\x81\x73\xcd\x43\x59\x68" 5460 "\x73\x02\x3b\x78\x21\x72\x43\x00" 5461 "\x49\x17\xf7\x00\xaf\x68\x24\x53" 5462 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69" 5463 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4" 5464 "\x11\x94\x13\x69\x51\x09\x28\xde" 5465 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17" 5466 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d" 5467 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7" 5468 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13" 5469 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e" 5470 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31" 5471 "\x62\x03\x43\xf1\x87\xb4\xb0\x85" 5472 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b" 5473 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f" 5474 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6" 5475 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1" 5476 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3" 5477 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55" 5478 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b" 5479 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38" 5480 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2" 5481 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7" 5482 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e" 5483 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3" 5484 "\x69\xdc\xab\x24\x57\x60\x47\xc1" 5485 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe" 5486 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb" 5487 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c" 5488 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01" 5489 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90" 5490 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e" 5491 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b" 5492 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c" 5493 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7" 5494 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99" 5495 "\x63\x19\x3d\xd5\xec\x1b\x77\x69" 5496 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09" 5497 "\x85\x62\x82\x70\x18\xe2\x9a\x78" 5498 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb" 5499 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8" 5500 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f" 5501 "\x35\xf3\x61\x06\x72\x84\xc4\x32" 5502 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02" 5503 "\x04\xc2\xde\x57\x64\x60\x8d\xcf" 5504 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01" 5505 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05" 5506 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c" 5507 "\xb3\x71\xa0\xde\xca\x96\xf1\x78" 5508 "\x49\xa2\x99\x81\x80\x5c\x01\xf5" 5509 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5" 5510 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51" 5511 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6" 5512 "\x4f\x73\x38\x09\x75\x64\x48\xe0" 5513 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94" 5514 "\xfe\x16\x26\x62\x49\x74\xf4\xb0" 5515 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81" 5516 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81" 5517 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6" 5518 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e" 5519 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87" 5520 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d" 5521 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b" 5522 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0" 5523 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9" 5524 "\xef\xa0\x54\xe4\x5e\x16\x53\x81" 5525 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3" 5526 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07" 5527 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4" 5528 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e" 5529 "\x53\x5d\x86\xd6\xde\x65\xca\xe3" 5530 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83" 5531 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6" 5532 "\x37\x7a\x93\x7a\x50\x11\x9f\x96" 5533 "\x86\x25\xfd\xac\xdc\xbe\x18\x93" 5534 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7" 5535 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab" 5536 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6" 5537 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4" 5538 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c" 5539 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80" 5540 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea" 5541 "\xce\x4d\x5f\x18\x60\xce\x87\x22" 5542 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75" 5543 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7" 5544 "\x32\xd8\xaf\x1e\x07\x77\x51\x96" 5545 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67" 5546 "\xea\x17\x0b\x10\xd2\x3f\x28\x25" 5547 "\x4f\x05\x77\x02\x14\x69\xf0\x2c" 5548 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b" 5549 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3" 5550 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12" 5551 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96" 5552 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5" 5553 "\x64\xc0\x64\xda\xb1\xae\xdd\x60" 5554 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0" 5555 "\x92\x61\xd0\x48\x81\xed\x5e\x1d" 5556 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d" 5557 "\x7f\x83\x73\xb6\x70\x18\x65\x3e" 5558 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8" 5559 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd" 5560 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb" 5561 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50" 5562 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe" 5563 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57" 5564 "\xa7\x22\xec\xe2\x7e\x29\x09\x53" 5565 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14" 5566 "\xce\x54\xf9\x18\x58\xb5\xff\x44" 5567 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8" 5568 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65" 5569 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd" 5570 "\xff\xfd\xb0\x21\x6e\x57\x05\x75" 5571 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50" 5572 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b" 5573 "\x80\x8c\xc8\x78\x40\x24\x4b\x89" 5574 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef" 5575 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b" 5576 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c" 5577 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d" 5578 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8" 5579 "\x0c\xd6\x04\x14\xde\x51\x74\x75" 5580 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad" 5581 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13" 5582 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32" 5583 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf" 5584 "\x75\x46\x65\x4e\x07\x34\x37\xa3" 5585 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f" 5586 "\x69\x24\x0e\x38\x67\x43\x8c\xde" 5587 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f" 5588 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde" 5589 "\x64\xb1\xdb\xee\x00\x50\x77\xe1" 5590 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3" 5591 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b" 5592 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89" 5593 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8" 5594 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05" 5595 "\x91\x7d\x62\x64\x96\x72\xde\xfc" 5596 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b" 5597 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd" 5598 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57" 5599 "\x98\x81\x84\x4f\x15\x5c\x76\xe7" 5600 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78" 5601 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4" 5602 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf" 5603 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98" 5604 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8" 5605 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f" 5606 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33" 5607 "\xb1\xb2\x52\x94\x75\x2c\x29\x59" 5608 "\x06\xc2\x25\xe8\x71\x65\x4e\xed" 5609 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7" 5610 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a" 5611 "\xe0\x50\x40\x96\x35\x63\xe4\x0b" 5612 "\x76\xbd\xa4\x65\x00\x1b\x57\x88" 5613 "\xae\xed\x39\x88\x42\x11\x3c\xed" 5614 "\x85\x67\x7d\xb9\x68\x82\xe9\x43" 5615 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f" 5616 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e" 5617 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8" 5618 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd" 5619 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60" 5620 "\xce\x20\x56\x32\xc6\xc5\x99\x1f" 5621 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8" 5622 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26" 5623 "\x66\xf8\x3d\x18\x74\x70\x66\x7a" 5624 "\x34\x17\xde\xba\x47\xf1\x06\x18" 5625 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77" 5626 "\xe0\x3b\x78\x62\x66\xc9\x10\xea" 5627 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e" 5628 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05" 5629 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5" 5630 "\x63\x4f\x20\x0c\x07\x17\x33\x5e" 5631 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50" 5632 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae" 5633 "\x58\xef\x15\xa9\x83\xd9\x46\xb1" 5634 "\x42\xaa\xf5\x02\x6c\xce\x92\x06" 5635 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d" 5636 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63" 5637 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d" 5638 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b" 5639 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70" 5640 "\xb6\x67\xc7\x77\xed\x23\xef\x4c" 5641 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01" 5642 "\x34\x37\x08\xab\xd9\x1f\x09\xb1" 5643 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5" 5644 "\x2c\x56\x39\x79\x0f\x69\x44\x75" 5645 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d" 5646 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1" 5647 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f" 5648 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7" 5649 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41" 5650 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d" 5651 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90" 5652 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06" 5653 "\x63\x9b\xce\x61\x24\x79\xc0\x70" 5654 "\x52\xd0\xb6\xd4\x28\x95\x24\x87" 5655 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52" 5656 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42" 5657 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba" 5658 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38" 5659 "\x74\x56\x58\x40\x02\x37\x52\x2c" 5660 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38" 5661 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13" 5662 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0" 5663 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3" 5664 "\x24\x90\xec\x58\xd2\x09\xc7\x2d" 5665 "\xed\x38\x80\x36\x72\x43\x27\x49" 5666 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30" 5667 "\x7d\xb6\x82\x37\x86\x92\x86\x3e" 5668 "\x08\xb2\x28\x5a\x55\x44\x24\x7d" 5669 "\x40\x48\x8a\xb6\x89\x58\x08\xa0" 5670 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2" 5671 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b" 5672 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3" 5673 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81" 5674 "\x14\x32\x45\x05\xe0\xdb\x9f\x75" 5675 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22" 5676 "\x12\xee\x30\xfe\xd8\x30\xef\x34" 5677 "\x50\xab\x46\x30\x98\x2f\xb7\xc0" 5678 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2" 5679 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10" 5680 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15" 5681 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa" 5682 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e" 5683 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f" 5684 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3" 5685 "\x02\x9d\x27\x1f\xef\x85\x05\x8d" 5686 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8" 5687 "\xa1\x75\xa0\xd8\x06\x47\x14\xef" 5688 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3" 5689 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf" 5690 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e" 5691 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e" 5692 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc" 5693 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16" 5694 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0" 5695 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02" 5696 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc" 5697 "\x44\x12\xfb\x73\x77\xd4\x13\x39" 5698 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0" 5699 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b" 5700 "\x41\x01\x18\x5d\x5d\x07\x97\xa6" 5701 "\x4b\xef\x31\x18\xea\xac\xb1\x84" 5702 "\x21\xed\xda\x86", 5703 .rlen = 4100, 5704 .np = 2, 5705 .tap = { 4064, 36 }, 5706 }, 5707 }; 5708 5709 static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = { 5710 { /* From RFC 3686 */ 5711 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" 5712 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" 5713 "\x00\x00\x00\x30", 5714 .klen = 20, 5715 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 5716 .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" 5717 "\x2d\x61\x75\xa3\x26\x13\x11\xb8", 5718 .ilen = 16, 5719 .result = "Single block msg", 5720 .rlen = 16, 5721 }, { 5722 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" 5723 "\x43\xd6\xce\x1f\x32\x53\x91\x63" 5724 "\x00\x6c\xb6\xdb", 5725 .klen = 20, 5726 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", 5727 .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" 5728 "\x79\x0d\x41\xee\x8e\xda\xd3\x88" 5729 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" 5730 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", 5731 .ilen = 32, 5732 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 5733 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 5734 "\x10\x11\x12\x13\x14\x15\x16\x17" 5735 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 5736 .rlen = 32, 5737 }, { 5738 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" 5739 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" 5740 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" 5741 "\x00\x00\x00\x48", 5742 .klen = 28, 5743 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", 5744 .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" 5745 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", 5746 .ilen = 16, 5747 .result = "Single block msg", 5748 .rlen = 16, 5749 }, { 5750 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" 5751 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" 5752 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" 5753 "\x00\x96\xb0\x3b", 5754 .klen = 28, 5755 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", 5756 .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32" 5757 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" 5758 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" 5759 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", 5760 .ilen = 32, 5761 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 5762 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 5763 "\x10\x11\x12\x13\x14\x15\x16\x17" 5764 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 5765 .rlen = 32, 5766 }, { 5767 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" 5768 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" 5769 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" 5770 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" 5771 "\x00\x00\x00\x60", 5772 .klen = 36, 5773 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", 5774 .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" 5775 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", 5776 .ilen = 16, 5777 .result = "Single block msg", 5778 .rlen = 16, 5779 }, { 5780 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" 5781 "\x07\x96\x36\x58\x79\xef\xf8\x86" 5782 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" 5783 "\x4b\x50\x59\x0c\x87\xa2\x38\x84" 5784 "\x00\xfa\xac\x24", 5785 .klen = 36, 5786 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", 5787 .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" 5788 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" 5789 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" 5790 "\x55\x30\x83\x1d\x93\x44\xaf\x1c", 5791 .ilen = 32, 5792 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 5793 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 5794 "\x10\x11\x12\x13\x14\x15\x16\x17" 5795 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 5796 .rlen = 32, 5797 }, 5798 }; 5799 5800 static struct cipher_testvec aes_ofb_enc_tv_template[] = { 5801 /* From NIST Special Publication 800-38A, Appendix F.5 */ 5802 { 5803 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" 5804 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", 5805 .klen = 16, 5806 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" 5807 "\x09\x0a\x0b\x0c\x0d\x0e\x0f", 5808 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 5809 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 5810 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 5811 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 5812 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 5813 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 5814 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 5815 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 5816 .ilen = 64, 5817 .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" 5818 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" 5819 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" 5820 "\x3c\x52\xda\xc5\x4e\xd8\x25" 5821 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" 5822 "\x44\xf7\xa8\x22\x60\xed\xcc" 5823 "\x30\x4c\x65\x28\xf6\x59\xc7\x78" 5824 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", 5825 .rlen = 64, 5826 } 5827 }; 5828 5829 static struct cipher_testvec aes_ofb_dec_tv_template[] = { 5830 /* From NIST Special Publication 800-38A, Appendix F.5 */ 5831 { 5832 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" 5833 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", 5834 .klen = 16, 5835 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" 5836 "\x09\x0a\x0b\x0c\x0d\x0e\x0f", 5837 .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" 5838 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" 5839 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" 5840 "\x3c\x52\xda\xc5\x4e\xd8\x25" 5841 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" 5842 "\x44\xf7\xa8\x22\x60\xed\xcc" 5843 "\x30\x4c\x65\x28\xf6\x59\xc7\x78" 5844 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", 5845 .ilen = 64, 5846 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" 5847 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" 5848 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" 5849 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" 5850 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" 5851 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" 5852 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 5853 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 5854 .rlen = 64, 5855 } 5856 }; 5857 5858 static struct aead_testvec aes_gcm_enc_tv_template[] = { 5859 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ 5860 .key = zeroed_string, 5861 .klen = 16, 5862 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61" 5863 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a", 5864 .rlen = 16, 5865 }, { 5866 .key = zeroed_string, 5867 .klen = 16, 5868 .input = zeroed_string, 5869 .ilen = 16, 5870 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92" 5871 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78" 5872 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd" 5873 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf", 5874 .rlen = 32, 5875 }, { 5876 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 5877 "\x6d\x6a\x8f\x94\x67\x30\x83\x08", 5878 .klen = 16, 5879 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 5880 "\xde\xca\xf8\x88", 5881 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 5882 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 5883 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 5884 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 5885 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 5886 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 5887 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 5888 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", 5889 .ilen = 64, 5890 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" 5891 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" 5892 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" 5893 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" 5894 "\x21\xd5\x14\xb2\x54\x66\x93\x1c" 5895 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" 5896 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" 5897 "\x3d\x58\xe0\x91\x47\x3f\x59\x85" 5898 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" 5899 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", 5900 .rlen = 80, 5901 }, { 5902 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 5903 "\x6d\x6a\x8f\x94\x67\x30\x83\x08", 5904 .klen = 16, 5905 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 5906 "\xde\xca\xf8\x88", 5907 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 5908 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 5909 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 5910 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 5911 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 5912 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 5913 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 5914 "\xba\x63\x7b\x39", 5915 .ilen = 60, 5916 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 5917 "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 5918 "\xab\xad\xda\xd2", 5919 .alen = 20, 5920 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" 5921 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" 5922 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" 5923 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" 5924 "\x21\xd5\x14\xb2\x54\x66\x93\x1c" 5925 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" 5926 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" 5927 "\x3d\x58\xe0\x91" 5928 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" 5929 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", 5930 .rlen = 76, 5931 }, { 5932 .key = zeroed_string, 5933 .klen = 24, 5934 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b" 5935 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35", 5936 .rlen = 16, 5937 }, { 5938 .key = zeroed_string, 5939 .klen = 24, 5940 .input = zeroed_string, 5941 .ilen = 16, 5942 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" 5943 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" 5944 "\x2f\xf5\x8d\x80\x03\x39\x27\xab" 5945 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", 5946 .rlen = 32, 5947 }, { 5948 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 5949 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 5950 "\xfe\xff\xe9\x92\x86\x65\x73\x1c", 5951 .klen = 24, 5952 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 5953 "\xde\xca\xf8\x88", 5954 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 5955 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 5956 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 5957 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 5958 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 5959 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 5960 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 5961 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", 5962 .ilen = 64, 5963 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" 5964 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" 5965 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" 5966 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" 5967 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" 5968 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" 5969 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" 5970 "\xcc\xda\x27\x10\xac\xad\xe2\x56" 5971 "\x99\x24\xa7\xc8\x58\x73\x36\xbf" 5972 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", 5973 .rlen = 80, 5974 }, { 5975 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 5976 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 5977 "\xfe\xff\xe9\x92\x86\x65\x73\x1c", 5978 .klen = 24, 5979 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 5980 "\xde\xca\xf8\x88", 5981 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 5982 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 5983 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 5984 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 5985 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 5986 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 5987 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 5988 "\xba\x63\x7b\x39", 5989 .ilen = 60, 5990 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 5991 "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 5992 "\xab\xad\xda\xd2", 5993 .alen = 20, 5994 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" 5995 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" 5996 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" 5997 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" 5998 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" 5999 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" 6000 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" 6001 "\xcc\xda\x27\x10" 6002 "\x25\x19\x49\x8e\x80\xf1\x47\x8f" 6003 "\x37\xba\x55\xbd\x6d\x27\x61\x8c", 6004 .rlen = 76, 6005 .np = 2, 6006 .tap = { 32, 28 }, 6007 .anp = 2, 6008 .atap = { 8, 12 } 6009 }, { 6010 .key = zeroed_string, 6011 .klen = 32, 6012 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9" 6013 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b", 6014 .rlen = 16, 6015 } 6016 }; 6017 6018 static struct aead_testvec aes_gcm_dec_tv_template[] = { 6019 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ 6020 .key = zeroed_string, 6021 .klen = 32, 6022 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e" 6023 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18" 6024 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0" 6025 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19", 6026 .ilen = 32, 6027 .result = zeroed_string, 6028 .rlen = 16, 6029 }, { 6030 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6031 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6032 "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6033 "\x6d\x6a\x8f\x94\x67\x30\x83\x08", 6034 .klen = 32, 6035 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 6036 "\xde\xca\xf8\x88", 6037 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" 6038 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" 6039 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" 6040 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" 6041 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" 6042 "\xa7\xb0\x8b\x10\x56\x82\x88\x38" 6043 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" 6044 "\xbc\xc9\xf6\x62\x89\x80\x15\xad" 6045 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd" 6046 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c", 6047 .ilen = 80, 6048 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 6049 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 6050 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 6051 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 6052 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 6053 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 6054 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 6055 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", 6056 .rlen = 64, 6057 }, { 6058 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6059 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6060 "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6061 "\x6d\x6a\x8f\x94\x67\x30\x83\x08", 6062 .klen = 32, 6063 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 6064 "\xde\xca\xf8\x88", 6065 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" 6066 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" 6067 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" 6068 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" 6069 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" 6070 "\xa7\xb0\x8b\x10\x56\x82\x88\x38" 6071 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" 6072 "\xbc\xc9\xf6\x62" 6073 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68" 6074 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b", 6075 .ilen = 76, 6076 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 6077 "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 6078 "\xab\xad\xda\xd2", 6079 .alen = 20, 6080 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 6081 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 6082 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 6083 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 6084 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 6085 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 6086 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 6087 "\xba\x63\x7b\x39", 6088 .rlen = 60, 6089 .np = 2, 6090 .tap = { 48, 28 }, 6091 .anp = 3, 6092 .atap = { 8, 8, 4 } 6093 }, { 6094 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6095 "\x6d\x6a\x8f\x94\x67\x30\x83\x08", 6096 .klen = 16, 6097 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 6098 "\xde\xca\xf8\x88", 6099 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" 6100 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" 6101 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" 6102 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" 6103 "\x21\xd5\x14\xb2\x54\x66\x93\x1c" 6104 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" 6105 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" 6106 "\x3d\x58\xe0\x91\x47\x3f\x59\x85" 6107 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" 6108 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", 6109 .ilen = 80, 6110 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 6111 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 6112 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 6113 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 6114 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 6115 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 6116 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 6117 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", 6118 .rlen = 64, 6119 }, { 6120 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6121 "\x6d\x6a\x8f\x94\x67\x30\x83\x08", 6122 .klen = 16, 6123 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 6124 "\xde\xca\xf8\x88", 6125 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" 6126 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" 6127 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" 6128 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" 6129 "\x21\xd5\x14\xb2\x54\x66\x93\x1c" 6130 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" 6131 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" 6132 "\x3d\x58\xe0\x91" 6133 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" 6134 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", 6135 .ilen = 76, 6136 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 6137 "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 6138 "\xab\xad\xda\xd2", 6139 .alen = 20, 6140 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 6141 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 6142 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 6143 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 6144 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 6145 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 6146 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 6147 "\xba\x63\x7b\x39", 6148 .rlen = 60, 6149 }, { 6150 .key = zeroed_string, 6151 .klen = 24, 6152 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" 6153 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" 6154 "\x2f\xf5\x8d\x80\x03\x39\x27\xab" 6155 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", 6156 .ilen = 32, 6157 .result = zeroed_string, 6158 .rlen = 16, 6159 }, { 6160 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6161 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6162 "\xfe\xff\xe9\x92\x86\x65\x73\x1c", 6163 .klen = 24, 6164 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 6165 "\xde\xca\xf8\x88", 6166 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" 6167 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" 6168 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" 6169 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" 6170 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" 6171 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" 6172 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" 6173 "\xcc\xda\x27\x10\xac\xad\xe2\x56" 6174 "\x99\x24\xa7\xc8\x58\x73\x36\xbf" 6175 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", 6176 .ilen = 80, 6177 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 6178 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 6179 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 6180 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 6181 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 6182 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 6183 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 6184 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", 6185 .rlen = 64, 6186 }, { 6187 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6188 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6189 "\xfe\xff\xe9\x92\x86\x65\x73\x1c", 6190 .klen = 24, 6191 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" 6192 "\xde\xca\xf8\x88", 6193 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" 6194 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" 6195 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" 6196 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" 6197 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" 6198 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" 6199 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" 6200 "\xcc\xda\x27\x10" 6201 "\x25\x19\x49\x8e\x80\xf1\x47\x8f" 6202 "\x37\xba\x55\xbd\x6d\x27\x61\x8c", 6203 .ilen = 76, 6204 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 6205 "\xfe\xed\xfa\xce\xde\xad\xbe\xef" 6206 "\xab\xad\xda\xd2", 6207 .alen = 20, 6208 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" 6209 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" 6210 "\x86\xa7\xa9\x53\x15\x34\xf7\xda" 6211 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" 6212 "\x1c\x3c\x0c\x95\x95\x68\x09\x53" 6213 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" 6214 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" 6215 "\xba\x63\x7b\x39", 6216 .rlen = 60, 6217 } 6218 }; 6219 6220 static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = { 6221 { /* Generated using Crypto++ */ 6222 .key = zeroed_string, 6223 .klen = 20, 6224 .iv = zeroed_string, 6225 .input = zeroed_string, 6226 .ilen = 16, 6227 .assoc = zeroed_string, 6228 .alen = 8, 6229 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" 6230 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" 6231 "\x97\xFE\x4C\x23\x37\x42\x01\xE0" 6232 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", 6233 .rlen = 32, 6234 },{ 6235 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6236 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6237 "\x00\x00\x00\x00", 6238 .klen = 20, 6239 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" 6240 "\x00\x00\x00\x00", 6241 .input = zeroed_string, 6242 .ilen = 16, 6243 .assoc = zeroed_string, 6244 .alen = 8, 6245 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" 6246 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" 6247 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" 6248 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", 6249 .rlen = 32, 6250 6251 }, { 6252 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6253 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6254 "\x00\x00\x00\x00", 6255 .klen = 20, 6256 .iv = zeroed_string, 6257 .input = "\x01\x01\x01\x01\x01\x01\x01\x01" 6258 "\x01\x01\x01\x01\x01\x01\x01\x01", 6259 .ilen = 16, 6260 .assoc = zeroed_string, 6261 .alen = 8, 6262 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" 6263 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" 6264 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" 6265 "\xB1\x68\xFD\x14\x52\x64\x61\xB2", 6266 .rlen = 32, 6267 }, { 6268 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6269 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6270 "\x00\x00\x00\x00", 6271 .klen = 20, 6272 .iv = zeroed_string, 6273 .input = "\x01\x01\x01\x01\x01\x01\x01\x01" 6274 "\x01\x01\x01\x01\x01\x01\x01\x01", 6275 .ilen = 16, 6276 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", 6277 .alen = 8, 6278 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" 6279 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" 6280 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" 6281 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", 6282 .rlen = 32, 6283 }, { 6284 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6285 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6286 "\x00\x00\x00\x00", 6287 .klen = 20, 6288 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" 6289 "\x00\x00\x00\x00", 6290 .input = "\x01\x01\x01\x01\x01\x01\x01\x01" 6291 "\x01\x01\x01\x01\x01\x01\x01\x01", 6292 .ilen = 16, 6293 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", 6294 .alen = 8, 6295 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" 6296 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" 6297 "\x64\x50\xF9\x32\x13\xFB\x74\x61" 6298 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", 6299 .rlen = 32, 6300 }, { 6301 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6302 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6303 "\x00\x00\x00\x00", 6304 .klen = 20, 6305 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" 6306 "\x00\x00\x00\x00", 6307 .input = "\x01\x01\x01\x01\x01\x01\x01\x01" 6308 "\x01\x01\x01\x01\x01\x01\x01\x01" 6309 "\x01\x01\x01\x01\x01\x01\x01\x01" 6310 "\x01\x01\x01\x01\x01\x01\x01\x01" 6311 "\x01\x01\x01\x01\x01\x01\x01\x01" 6312 "\x01\x01\x01\x01\x01\x01\x01\x01" 6313 "\x01\x01\x01\x01\x01\x01\x01\x01" 6314 "\x01\x01\x01\x01\x01\x01\x01\x01", 6315 .ilen = 64, 6316 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", 6317 .alen = 8, 6318 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" 6319 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" 6320 "\x98\x14\xA1\x42\x37\x80\xFD\x90" 6321 "\x68\x12\x01\xA8\x91\x89\xB9\x83" 6322 "\x5B\x11\x77\x12\x9B\xFF\x24\x89" 6323 "\x94\x5F\x18\x12\xBA\x27\x09\x39" 6324 "\x99\x96\x76\x42\x15\x1C\xCD\xCB" 6325 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" 6326 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" 6327 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", 6328 .rlen = 80, 6329 }, { 6330 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 6331 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 6332 "\x00\x00\x00\x00", 6333 .klen = 20, 6334 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef" 6335 "\x00\x00\x00\x00", 6336 .input = "\xff\xff\xff\xff\xff\xff\xff\xff" 6337 "\xff\xff\xff\xff\xff\xff\xff\xff" 6338 "\xff\xff\xff\xff\xff\xff\xff\xff" 6339 "\xff\xff\xff\xff\xff\xff\xff\xff" 6340 "\xff\xff\xff\xff\xff\xff\xff\xff" 6341 "\xff\xff\xff\xff\xff\xff\xff\xff" 6342 "\xff\xff\xff\xff\xff\xff\xff\xff" 6343 "\xff\xff\xff\xff\xff\xff\xff\xff" 6344 "\xff\xff\xff\xff\xff\xff\xff\xff" 6345 "\xff\xff\xff\xff\xff\xff\xff\xff" 6346 "\xff\xff\xff\xff\xff\xff\xff\xff" 6347 "\xff\xff\xff\xff\xff\xff\xff\xff" 6348 "\xff\xff\xff\xff\xff\xff\xff\xff" 6349 "\xff\xff\xff\xff\xff\xff\xff\xff" 6350 "\xff\xff\xff\xff\xff\xff\xff\xff" 6351 "\xff\xff\xff\xff\xff\xff\xff\xff" 6352 "\xff\xff\xff\xff\xff\xff\xff\xff" 6353 "\xff\xff\xff\xff\xff\xff\xff\xff" 6354 "\xff\xff\xff\xff\xff\xff\xff\xff" 6355 "\xff\xff\xff\xff\xff\xff\xff\xff" 6356 "\xff\xff\xff\xff\xff\xff\xff\xff" 6357 "\xff\xff\xff\xff\xff\xff\xff\xff" 6358 "\xff\xff\xff\xff\xff\xff\xff\xff" 6359 "\xff\xff\xff\xff\xff\xff\xff\xff", 6360 .ilen = 192, 6361 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" 6362 "\xaa\xaa\xaa\xaa", 6363 .alen = 12, 6364 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" 6365 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" 6366 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" 6367 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" 6368 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" 6369 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" 6370 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" 6371 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" 6372 "\xCF\x07\x57\x41\x67\xD0\xC4\x42" 6373 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" 6374 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" 6375 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" 6376 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" 6377 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" 6378 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" 6379 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" 6380 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" 6381 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" 6382 "\x7E\x13\x06\x82\x08\x17\xA4\x35" 6383 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" 6384 "\xA3\x05\x38\x95\x20\x1A\x47\x04" 6385 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" 6386 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" 6387 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" 6388 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" 6389 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", 6390 .rlen = 208, 6391 } 6392 }; 6393 6394 static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = { 6395 { /* Generated using Crypto++ */ 6396 .key = zeroed_string, 6397 .klen = 20, 6398 .iv = zeroed_string, 6399 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" 6400 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" 6401 "\x97\xFE\x4C\x23\x37\x42\x01\xE0" 6402 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", 6403 .ilen = 32, 6404 .assoc = zeroed_string, 6405 .alen = 8, 6406 .result = zeroed_string, 6407 .rlen = 16, 6408 6409 },{ 6410 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6411 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6412 "\x00\x00\x00\x00", 6413 .klen = 20, 6414 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" 6415 "\x00\x00\x00\x00", 6416 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" 6417 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" 6418 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" 6419 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", 6420 .ilen = 32, 6421 .assoc = zeroed_string, 6422 .alen = 8, 6423 .result = zeroed_string, 6424 .rlen = 16, 6425 }, { 6426 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6427 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6428 "\x00\x00\x00\x00", 6429 .klen = 20, 6430 .iv = zeroed_string, 6431 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" 6432 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" 6433 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" 6434 "\xB1\x68\xFD\x14\x52\x64\x61\xB2", 6435 .ilen = 32, 6436 .assoc = zeroed_string, 6437 .alen = 8, 6438 .result = "\x01\x01\x01\x01\x01\x01\x01\x01" 6439 "\x01\x01\x01\x01\x01\x01\x01\x01", 6440 .rlen = 16, 6441 }, { 6442 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6443 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6444 "\x00\x00\x00\x00", 6445 .klen = 20, 6446 .iv = zeroed_string, 6447 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" 6448 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" 6449 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" 6450 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", 6451 .ilen = 32, 6452 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", 6453 .alen = 8, 6454 .result = "\x01\x01\x01\x01\x01\x01\x01\x01" 6455 "\x01\x01\x01\x01\x01\x01\x01\x01", 6456 .rlen = 16, 6457 6458 }, { 6459 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6460 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6461 "\x00\x00\x00\x00", 6462 .klen = 20, 6463 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" 6464 "\x00\x00\x00\x00", 6465 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" 6466 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" 6467 "\x64\x50\xF9\x32\x13\xFB\x74\x61" 6468 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", 6469 .ilen = 32, 6470 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", 6471 .alen = 8, 6472 .result = "\x01\x01\x01\x01\x01\x01\x01\x01" 6473 "\x01\x01\x01\x01\x01\x01\x01\x01", 6474 .rlen = 16, 6475 }, { 6476 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" 6477 "\x6d\x6a\x8f\x94\x67\x30\x83\x08" 6478 "\x00\x00\x00\x00", 6479 .klen = 20, 6480 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01" 6481 "\x00\x00\x00\x00", 6482 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" 6483 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" 6484 "\x98\x14\xA1\x42\x37\x80\xFD\x90" 6485 "\x68\x12\x01\xA8\x91\x89\xB9\x83" 6486 "\x5B\x11\x77\x12\x9B\xFF\x24\x89" 6487 "\x94\x5F\x18\x12\xBA\x27\x09\x39" 6488 "\x99\x96\x76\x42\x15\x1C\xCD\xCB" 6489 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" 6490 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" 6491 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", 6492 .ilen = 80, 6493 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01", 6494 .alen = 8, 6495 .result = "\x01\x01\x01\x01\x01\x01\x01\x01" 6496 "\x01\x01\x01\x01\x01\x01\x01\x01" 6497 "\x01\x01\x01\x01\x01\x01\x01\x01" 6498 "\x01\x01\x01\x01\x01\x01\x01\x01" 6499 "\x01\x01\x01\x01\x01\x01\x01\x01" 6500 "\x01\x01\x01\x01\x01\x01\x01\x01" 6501 "\x01\x01\x01\x01\x01\x01\x01\x01" 6502 "\x01\x01\x01\x01\x01\x01\x01\x01", 6503 .rlen = 64, 6504 }, { 6505 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 6506 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 6507 "\x00\x00\x00\x00", 6508 .klen = 20, 6509 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef" 6510 "\x00\x00\x00\x00", 6511 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" 6512 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" 6513 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" 6514 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" 6515 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" 6516 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" 6517 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" 6518 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" 6519 "\xCF\x07\x57\x41\x67\xD0\xC4\x42" 6520 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" 6521 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" 6522 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" 6523 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" 6524 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" 6525 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" 6526 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" 6527 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" 6528 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" 6529 "\x7E\x13\x06\x82\x08\x17\xA4\x35" 6530 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" 6531 "\xA3\x05\x38\x95\x20\x1A\x47\x04" 6532 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" 6533 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" 6534 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" 6535 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" 6536 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", 6537 .ilen = 208, 6538 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" 6539 "\xaa\xaa\xaa\xaa", 6540 .alen = 12, 6541 .result = "\xff\xff\xff\xff\xff\xff\xff\xff" 6542 "\xff\xff\xff\xff\xff\xff\xff\xff" 6543 "\xff\xff\xff\xff\xff\xff\xff\xff" 6544 "\xff\xff\xff\xff\xff\xff\xff\xff" 6545 "\xff\xff\xff\xff\xff\xff\xff\xff" 6546 "\xff\xff\xff\xff\xff\xff\xff\xff" 6547 "\xff\xff\xff\xff\xff\xff\xff\xff" 6548 "\xff\xff\xff\xff\xff\xff\xff\xff" 6549 "\xff\xff\xff\xff\xff\xff\xff\xff" 6550 "\xff\xff\xff\xff\xff\xff\xff\xff" 6551 "\xff\xff\xff\xff\xff\xff\xff\xff" 6552 "\xff\xff\xff\xff\xff\xff\xff\xff" 6553 "\xff\xff\xff\xff\xff\xff\xff\xff" 6554 "\xff\xff\xff\xff\xff\xff\xff\xff" 6555 "\xff\xff\xff\xff\xff\xff\xff\xff" 6556 "\xff\xff\xff\xff\xff\xff\xff\xff" 6557 "\xff\xff\xff\xff\xff\xff\xff\xff" 6558 "\xff\xff\xff\xff\xff\xff\xff\xff" 6559 "\xff\xff\xff\xff\xff\xff\xff\xff" 6560 "\xff\xff\xff\xff\xff\xff\xff\xff" 6561 "\xff\xff\xff\xff\xff\xff\xff\xff" 6562 "\xff\xff\xff\xff\xff\xff\xff\xff" 6563 "\xff\xff\xff\xff\xff\xff\xff\xff" 6564 "\xff\xff\xff\xff\xff\xff\xff\xff", 6565 .rlen = 192, 6566 6567 } 6568 }; 6569 6570 static struct aead_testvec aes_ccm_enc_tv_template[] = { 6571 { /* From RFC 3610 */ 6572 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6573 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6574 .klen = 16, 6575 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" 6576 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6577 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", 6578 .alen = 8, 6579 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 6580 "\x10\x11\x12\x13\x14\x15\x16\x17" 6581 "\x18\x19\x1a\x1b\x1c\x1d\x1e", 6582 .ilen = 23, 6583 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" 6584 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" 6585 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" 6586 "\xe8\xd1\x2c\xfd\xf9\x26\xe0", 6587 .rlen = 31, 6588 }, { 6589 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6590 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6591 .klen = 16, 6592 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" 6593 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6594 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" 6595 "\x08\x09\x0a\x0b", 6596 .alen = 12, 6597 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" 6598 "\x14\x15\x16\x17\x18\x19\x1a\x1b" 6599 "\x1c\x1d\x1e\x1f", 6600 .ilen = 20, 6601 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" 6602 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" 6603 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" 6604 "\x7d\x9c\x2d\x93", 6605 .rlen = 28, 6606 }, { 6607 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6608 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6609 .klen = 16, 6610 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" 6611 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6612 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", 6613 .alen = 8, 6614 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 6615 "\x10\x11\x12\x13\x14\x15\x16\x17" 6616 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 6617 "\x20", 6618 .ilen = 25, 6619 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" 6620 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" 6621 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" 6622 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" 6623 "\x7e\x5f\x4e", 6624 .rlen = 35, 6625 }, { 6626 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6627 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6628 .klen = 16, 6629 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" 6630 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6631 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" 6632 "\x08\x09\x0a\x0b", 6633 .alen = 12, 6634 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" 6635 "\x14\x15\x16\x17\x18\x19\x1a\x1b" 6636 "\x1c\x1d\x1e", 6637 .ilen = 19, 6638 .result = "\x07\x34\x25\x94\x15\x77\x85\x15" 6639 "\x2b\x07\x40\x98\x33\x0a\xbb\x14" 6640 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" 6641 "\x4d\x99\x99\x88\xdd", 6642 .rlen = 29, 6643 }, { 6644 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" 6645 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", 6646 .klen = 16, 6647 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" 6648 "\x3c\x96\x96\x76\x6c\xfa\x00\x00", 6649 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", 6650 .alen = 8, 6651 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" 6652 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" 6653 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", 6654 .ilen = 24, 6655 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" 6656 "\xa0\x72\x6c\x55\xd3\x78\x06\x12" 6657 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" 6658 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", 6659 .rlen = 32, 6660 }, { 6661 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" 6662 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", 6663 .klen = 16, 6664 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" 6665 "\x3c\x96\x96\x76\x6c\xfa\x00\x00", 6666 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" 6667 "\x20\xea\x60\xc0", 6668 .alen = 12, 6669 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" 6670 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" 6671 "\x3a\x80\x3b\xa8\x7f", 6672 .ilen = 21, 6673 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62" 6674 "\x55\x94\xc5\x92\x51\xe6\x03\x57" 6675 "\x22\x67\x5e\x04\xc8\x47\x09\x9e" 6676 "\x5a\xe0\x70\x45\x51", 6677 .rlen = 29, 6678 }, { 6679 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" 6680 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", 6681 .klen = 16, 6682 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" 6683 "\x3c\x96\x96\x76\x6c\xfa\x00\x00", 6684 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", 6685 .alen = 8, 6686 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" 6687 "\x8e\x5e\x67\x01\xc9\x17\x87\x65" 6688 "\x98\x09\xd6\x7d\xbe\xdd\x18", 6689 .ilen = 23, 6690 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" 6691 "\xdb\x38\x6a\x99\xac\x1a\xef\x23" 6692 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" 6693 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" 6694 "\xba", 6695 .rlen = 33, 6696 }, 6697 }; 6698 6699 static struct aead_testvec aes_ccm_dec_tv_template[] = { 6700 { /* From RFC 3610 */ 6701 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6702 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6703 .klen = 16, 6704 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" 6705 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6706 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", 6707 .alen = 8, 6708 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" 6709 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" 6710 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" 6711 "\xe8\xd1\x2c\xfd\xf9\x26\xe0", 6712 .ilen = 31, 6713 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 6714 "\x10\x11\x12\x13\x14\x15\x16\x17" 6715 "\x18\x19\x1a\x1b\x1c\x1d\x1e", 6716 .rlen = 23, 6717 }, { 6718 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6719 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6720 .klen = 16, 6721 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" 6722 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6723 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" 6724 "\x08\x09\x0a\x0b", 6725 .alen = 12, 6726 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" 6727 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" 6728 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" 6729 "\x7d\x9c\x2d\x93", 6730 .ilen = 28, 6731 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" 6732 "\x14\x15\x16\x17\x18\x19\x1a\x1b" 6733 "\x1c\x1d\x1e\x1f", 6734 .rlen = 20, 6735 }, { 6736 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6737 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6738 .klen = 16, 6739 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" 6740 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6741 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", 6742 .alen = 8, 6743 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" 6744 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" 6745 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" 6746 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" 6747 "\x7e\x5f\x4e", 6748 .ilen = 35, 6749 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 6750 "\x10\x11\x12\x13\x14\x15\x16\x17" 6751 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 6752 "\x20", 6753 .rlen = 25, 6754 }, { 6755 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 6756 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", 6757 .klen = 16, 6758 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" 6759 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", 6760 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" 6761 "\x08\x09\x0a\x0b", 6762 .alen = 12, 6763 .input = "\x07\x34\x25\x94\x15\x77\x85\x15" 6764 "\x2b\x07\x40\x98\x33\x0a\xbb\x14" 6765 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" 6766 "\x4d\x99\x99\x88\xdd", 6767 .ilen = 29, 6768 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" 6769 "\x14\x15\x16\x17\x18\x19\x1a\x1b" 6770 "\x1c\x1d\x1e", 6771 .rlen = 19, 6772 }, { 6773 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" 6774 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", 6775 .klen = 16, 6776 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" 6777 "\x3c\x96\x96\x76\x6c\xfa\x00\x00", 6778 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", 6779 .alen = 8, 6780 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" 6781 "\xa0\x72\x6c\x55\xd3\x78\x06\x12" 6782 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" 6783 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", 6784 .ilen = 32, 6785 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" 6786 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" 6787 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", 6788 .rlen = 24, 6789 }, { 6790 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" 6791 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", 6792 .klen = 16, 6793 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" 6794 "\x3c\x96\x96\x76\x6c\xfa\x00\x00", 6795 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" 6796 "\x20\xea\x60\xc0", 6797 .alen = 12, 6798 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62" 6799 "\x55\x94\xc5\x92\x51\xe6\x03\x57" 6800 "\x22\x67\x5e\x04\xc8\x47\x09\x9e" 6801 "\x5a\xe0\x70\x45\x51", 6802 .ilen = 29, 6803 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" 6804 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" 6805 "\x3a\x80\x3b\xa8\x7f", 6806 .rlen = 21, 6807 }, { 6808 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" 6809 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", 6810 .klen = 16, 6811 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" 6812 "\x3c\x96\x96\x76\x6c\xfa\x00\x00", 6813 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", 6814 .alen = 8, 6815 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" 6816 "\xdb\x38\x6a\x99\xac\x1a\xef\x23" 6817 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" 6818 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" 6819 "\xba", 6820 .ilen = 33, 6821 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" 6822 "\x8e\x5e\x67\x01\xc9\x17\x87\x65" 6823 "\x98\x09\xd6\x7d\xbe\xdd\x18", 6824 .rlen = 23, 6825 }, 6826 }; 6827 6828 /* 6829 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all 6830 * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of 6831 * Special Publication 800-38C's test vectors also use nonce lengths our 6832 * implementation doesn't support. The following are taken from fips cavs 6833 * fax files on hand at Red Hat. 6834 * 6835 * nb: actual key lengths are (klen - 3), the last 3 bytes are actually 6836 * part of the nonce which combine w/the iv, but need to be input this way. 6837 */ 6838 static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = { 6839 { 6840 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05" 6841 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e" 6842 "\x96\xac\x59", 6843 .klen = 19, 6844 .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24", 6845 .alen = 0, 6846 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93" 6847 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e" 6848 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c" 6849 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1", 6850 .ilen = 32, 6851 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8" 6852 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1" 6853 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a" 6854 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32" 6855 "\xda\x24\xea\xd9\xa1\x39\x98\xfd" 6856 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8", 6857 .rlen = 48, 6858 }, { 6859 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0" 6860 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3" 6861 "\x4f\xa3\x19", 6862 .klen = 19, 6863 .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56", 6864 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63" 6865 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7" 6866 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1" 6867 "\x0a\x63\x09\x78\xbc\x2c\x55\xde", 6868 .alen = 32, 6869 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78" 6870 "\xa9\x28\x63\xba\x12\xa3\x14\x85" 6871 "\x57\x1e\x06\xc9\x7b\x21\xef\x76" 6872 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e", 6873 .ilen = 32, 6874 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19" 6875 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab" 6876 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff" 6877 "\x3b\xb5\xce\x53\xef\xde\xbb\x02" 6878 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a" 6879 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23", 6880 .rlen = 48, 6881 }, { 6882 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1" 6883 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75" 6884 "\x53\x14\x73\x66\x8d\x88\xf6\x80" 6885 "\xa0\x20\x35", 6886 .klen = 27, 6887 .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2", 6888 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1" 6889 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47" 6890 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d" 6891 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7", 6892 .alen = 32, 6893 .ilen = 0, 6894 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc" 6895 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b", 6896 .rlen = 16, 6897 }, { 6898 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42" 6899 "\xef\x7a\xd3\xce\xfc\x84\x60\x62" 6900 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01" 6901 "\xd6\x3c\x8c", 6902 .klen = 27, 6903 .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94", 6904 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91" 6905 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95" 6906 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c" 6907 "\xe3\x00\x73\x69\x84\x69\x87\x79", 6908 .alen = 32, 6909 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c" 6910 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e" 6911 "\xe0\xe5\x46\x09\x80\x89\x13\xb2" 6912 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b", 6913 .ilen = 32, 6914 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62" 6915 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f" 6916 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2" 6917 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e" 6918 "\xc7\x79\x11\x58\xe5\x6b\x20\x40" 6919 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1", 6920 .rlen = 48, 6921 }, { 6922 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a" 6923 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a" 6924 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e" 6925 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b" 6926 "\x1e\x29\x91", 6927 .klen = 35, 6928 .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe", 6929 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b" 6930 "\x78\x2b\x94\x02\x29\x0f\x42\x27" 6931 "\x6b\x75\xcb\x98\x34\x08\x7e\x79" 6932 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87", 6933 .alen = 32, 6934 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f" 6935 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66" 6936 "\xbf\x17\x99\x62\x4a\x39\x27\x1f" 6937 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c", 6938 .ilen = 32, 6939 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96" 6940 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6" 6941 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f" 6942 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75" 6943 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d", 6944 .rlen = 40, 6945 }, { 6946 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c" 6947 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32" 6948 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c" 6949 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39" 6950 "\xf9\xd9\x4e", 6951 .klen = 35, 6952 .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50", 6953 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b" 6954 "\x13\x02\x01\x0c\x83\x4c\x96\x35" 6955 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94" 6956 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13", 6957 .alen = 32, 6958 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6" 6959 "\x83\x72\x07\x4f\xcf\xfa\x66\x89" 6960 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27" 6961 "\x30\xdb\x75\x09\x93\xd4\x65\xe4", 6962 .ilen = 32, 6963 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d" 6964 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d" 6965 "\xcc\x63\x44\x25\x07\x78\x4f\x9e" 6966 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06" 6967 "\x39\xaf\x39\xac\xd8\x4a\x80\x39" 6968 "\x7b\x72\x8a\xf7", 6969 .rlen = 44, 6970 }, { 6971 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83" 6972 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46" 6973 "\xf9\x8f\xad\xe3\x02\x13\x83\x77" 6974 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b" 6975 "\x24\xa7\x8b", 6976 .klen = 35, 6977 .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5", 6978 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f" 6979 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d" 6980 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f" 6981 "\x16\x0c\x40\x90\x4b\xc7\x36\x73", 6982 .alen = 32, 6983 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92" 6984 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d" 6985 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2" 6986 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a", 6987 .ilen = 32, 6988 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13" 6989 "\xef\xbb\x80\x21\x04\x6c\x58\x09" 6990 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7" 6991 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf" 6992 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d" 6993 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8", 6994 .rlen = 48, 6995 }, 6996 }; 6997 6998 static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = { 6999 { 7000 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" 7001 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9" 7002 "\xc6\xfb\x7d", 7003 .klen = 19, 7004 .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8", 7005 .alen = 0, 7006 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b", 7007 .ilen = 8, 7008 .result = "\x00", 7009 .rlen = 0, 7010 .novrfy = 1, 7011 }, { 7012 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" 7013 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9" 7014 "\xaf\x94\x87", 7015 .klen = 19, 7016 .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68", 7017 .alen = 0, 7018 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3", 7019 .ilen = 8, 7020 .result = "\x00", 7021 .rlen = 0, 7022 }, { 7023 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" 7024 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8" 7025 "\xc6\xfb\x7d", 7026 .klen = 19, 7027 .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8", 7028 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f" 7029 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6" 7030 "\x04\x1f\x4e\xed\x78\xd5\x33\x66" 7031 "\xd8\x94\x99\x91\x81\x54\x62\x57", 7032 .alen = 32, 7033 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55" 7034 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a" 7035 "\x86\xb0\x87\x6b\x62\x33\x8c\x34" 7036 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f" 7037 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51" 7038 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5", 7039 .ilen = 48, 7040 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb" 7041 "\x33\xe4\x73\xce\xd2\xfb\x95\x79" 7042 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f" 7043 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48", 7044 .rlen = 32, 7045 .novrfy = 1, 7046 }, { 7047 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" 7048 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8" 7049 "\x05\xe0\xc9", 7050 .klen = 19, 7051 .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf", 7052 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81" 7053 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1" 7054 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89" 7055 "\x05\xac\x56\xac\x1b\x2a\xd3\x86", 7056 .alen = 32, 7057 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c" 7058 "\xad\x83\x52\x6d\x71\x03\x25\x1c" 7059 "\xed\x81\x3a\x9a\x16\x7d\x19\x80" 7060 "\x72\x04\x72\xd0\xf6\xff\x05\x0f" 7061 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6" 7062 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3", 7063 .ilen = 48, 7064 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60" 7065 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7" 7066 "\xf2\xae\x61\x05\x8f\x82\x24\x3f" 7067 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c", 7068 .rlen = 32, 7069 }, { 7070 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" 7071 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" 7072 "\xa4\x48\x93\x39\x26\x71\x4a\xc6" 7073 "\xee\x49\x83", 7074 .klen = 27, 7075 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", 7076 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" 7077 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" 7078 "\xa4\xf0\x13\x05\xd1\x77\x99\x67" 7079 "\x11\xc4\xc6\xdb\x00\x56\x36\x61", 7080 .alen = 32, 7081 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b", 7082 .ilen = 8, 7083 .result = "\x00", 7084 .rlen = 0, 7085 }, { 7086 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" 7087 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" 7088 "\x29\xa0\xba\x9e\x48\x78\xd1\xba" 7089 "\xee\x49\x83", 7090 .klen = 27, 7091 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", 7092 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" 7093 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" 7094 "\xa4\xf0\x13\x05\xd1\x77\x99\x67" 7095 "\x11\xc4\xc6\xdb\x00\x56\x36\x61", 7096 .alen = 32, 7097 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7" 7098 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2" 7099 "\x66\xca\x61\x1e\x96\x7a\x61\xb3" 7100 "\x1c\x16\x45\x52\xba\x04\x9c\x9f" 7101 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1", 7102 .ilen = 40, 7103 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36" 7104 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb" 7105 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9" 7106 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81", 7107 .rlen = 32, 7108 }, { 7109 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" 7110 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" 7111 "\x29\xa0\xba\x9e\x48\x78\xd1\xba" 7112 "\xd1\xfc\x57", 7113 .klen = 27, 7114 .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f", 7115 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6" 7116 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3" 7117 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7" 7118 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a", 7119 .alen = 32, 7120 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00" 7121 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37" 7122 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa" 7123 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b" 7124 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f" 7125 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef", 7126 .ilen = 48, 7127 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed" 7128 "\x99\x2a\xa8\xca\x04\x25\x45\x90" 7129 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c" 7130 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b", 7131 .rlen = 32, 7132 .novrfy = 1, 7133 }, { 7134 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01" 7135 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c" 7136 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb" 7137 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff" 7138 "\xee\x49\x83", 7139 .klen = 35, 7140 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e", 7141 .alen = 0, 7142 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2", 7143 .ilen = 8, 7144 .result = "\x00", 7145 .rlen = 0, 7146 }, { 7147 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" 7148 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" 7149 "\xa4\x48\x93\x39\x26\x71\x4a\xc6" 7150 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb" 7151 "\x85\x34\x66", 7152 .klen = 35, 7153 .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b", 7154 .alen = 0, 7155 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47" 7156 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd" 7157 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77" 7158 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6" 7159 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07" 7160 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a", 7161 .ilen = 48, 7162 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c" 7163 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99" 7164 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39" 7165 "\x89\xd4\x75\x7a\x63\xb1\xda\x93", 7166 .rlen = 32, 7167 .novrfy = 1, 7168 }, { 7169 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" 7170 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" 7171 "\x29\xa0\xba\x9e\x48\x78\xd1\xba" 7172 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b" 7173 "\xcf\x76\x3f", 7174 .klen = 35, 7175 .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b", 7176 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88" 7177 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b" 7178 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b" 7179 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe", 7180 .alen = 32, 7181 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf" 7182 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4" 7183 "\x78\x5c\x4c\x67\x71\x89\x94\xbf" 7184 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5" 7185 "\x7f\x44\x0a\x0c\x01\x18\x07\x92" 7186 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b", 7187 .ilen = 48, 7188 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40" 7189 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61" 7190 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab" 7191 "\x04\x49\x3b\x19\x93\x57\x25\x5d", 7192 .rlen = 32, 7193 }, 7194 }; 7195 7196 /* 7197 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode) 7198 * test vectors, taken from Appendix B.2.9 and B.2.10: 7199 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf 7200 * Only AES-128 is supported at this time. 7201 */ 7202 #define ANSI_CPRNG_AES_TEST_VECTORS 6 7203 7204 static struct cprng_testvec ansi_cprng_aes_tv_template[] = { 7205 { 7206 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" 7207 "\xed\x06\x1c\xab\xb8\xd4\x62\x02", 7208 .klen = 16, 7209 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" 7210 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9", 7211 .dtlen = 16, 7212 .v = "\x80\x00\x00\x00\x00\x00\x00\x00" 7213 "\x00\x00\x00\x00\x00\x00\x00\x00", 7214 .vlen = 16, 7215 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55" 7216 "\x84\x79\x66\x85\xc1\x2f\x76\x41", 7217 .rlen = 16, 7218 .loops = 1, 7219 }, { 7220 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" 7221 "\xed\x06\x1c\xab\xb8\xd4\x62\x02", 7222 .klen = 16, 7223 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" 7224 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa", 7225 .dtlen = 16, 7226 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00" 7227 "\x00\x00\x00\x00\x00\x00\x00\x00", 7228 .vlen = 16, 7229 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c" 7230 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d", 7231 .rlen = 16, 7232 .loops = 1, 7233 }, { 7234 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" 7235 "\xed\x06\x1c\xab\xb8\xd4\x62\x02", 7236 .klen = 16, 7237 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" 7238 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb", 7239 .dtlen = 16, 7240 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00" 7241 "\x00\x00\x00\x00\x00\x00\x00\x00", 7242 .vlen = 16, 7243 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5" 7244 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7", 7245 .rlen = 16, 7246 .loops = 1, 7247 }, { 7248 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" 7249 "\xed\x06\x1c\xab\xb8\xd4\x62\x02", 7250 .klen = 16, 7251 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" 7252 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc", 7253 .dtlen = 16, 7254 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00" 7255 "\x00\x00\x00\x00\x00\x00\x00\x00", 7256 .vlen = 16, 7257 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5" 7258 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a", 7259 .rlen = 16, 7260 .loops = 1, 7261 }, { 7262 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" 7263 "\xed\x06\x1c\xab\xb8\xd4\x62\x02", 7264 .klen = 16, 7265 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" 7266 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd", 7267 .dtlen = 16, 7268 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00" 7269 "\x00\x00\x00\x00\x00\x00\x00\x00", 7270 .vlen = 16, 7271 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb" 7272 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8", 7273 .rlen = 16, 7274 .loops = 1, 7275 }, { /* Monte Carlo Test */ 7276 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5" 7277 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48", 7278 .klen = 16, 7279 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b" 7280 "\x67\xc9\x25\xfa\x70\x1f\x11\xac", 7281 .dtlen = 16, 7282 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97" 7283 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1", 7284 .vlen = 16, 7285 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb" 7286 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73", 7287 .rlen = 16, 7288 .loops = 10000, 7289 }, 7290 }; 7291 7292 /* Cast5 test vectors from RFC 2144 */ 7293 #define CAST5_ENC_TEST_VECTORS 3 7294 #define CAST5_DEC_TEST_VECTORS 3 7295 7296 static struct cipher_testvec cast5_enc_tv_template[] = { 7297 { 7298 .key = "\x01\x23\x45\x67\x12\x34\x56\x78" 7299 "\x23\x45\x67\x89\x34\x56\x78\x9a", 7300 .klen = 16, 7301 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7302 .ilen = 8, 7303 .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", 7304 .rlen = 8, 7305 }, { 7306 .key = "\x01\x23\x45\x67\x12\x34\x56\x78" 7307 "\x23\x45", 7308 .klen = 10, 7309 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7310 .ilen = 8, 7311 .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", 7312 .rlen = 8, 7313 }, { 7314 .key = "\x01\x23\x45\x67\x12", 7315 .klen = 5, 7316 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7317 .ilen = 8, 7318 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", 7319 .rlen = 8, 7320 }, 7321 }; 7322 7323 static struct cipher_testvec cast5_dec_tv_template[] = { 7324 { 7325 .key = "\x01\x23\x45\x67\x12\x34\x56\x78" 7326 "\x23\x45\x67\x89\x34\x56\x78\x9a", 7327 .klen = 16, 7328 .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", 7329 .ilen = 8, 7330 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7331 .rlen = 8, 7332 }, { 7333 .key = "\x01\x23\x45\x67\x12\x34\x56\x78" 7334 "\x23\x45", 7335 .klen = 10, 7336 .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", 7337 .ilen = 8, 7338 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7339 .rlen = 8, 7340 }, { 7341 .key = "\x01\x23\x45\x67\x12", 7342 .klen = 5, 7343 .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", 7344 .ilen = 8, 7345 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7346 .rlen = 8, 7347 }, 7348 }; 7349 7350 /* 7351 * ARC4 test vectors from OpenSSL 7352 */ 7353 #define ARC4_ENC_TEST_VECTORS 7 7354 #define ARC4_DEC_TEST_VECTORS 7 7355 7356 static struct cipher_testvec arc4_enc_tv_template[] = { 7357 { 7358 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7359 .klen = 8, 7360 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7361 .ilen = 8, 7362 .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", 7363 .rlen = 8, 7364 }, { 7365 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7366 .klen = 8, 7367 .input = "\x00\x00\x00\x00\x00\x00\x00\x00", 7368 .ilen = 8, 7369 .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", 7370 .rlen = 8, 7371 }, { 7372 .key = "\x00\x00\x00\x00\x00\x00\x00\x00", 7373 .klen = 8, 7374 .input = "\x00\x00\x00\x00\x00\x00\x00\x00", 7375 .ilen = 8, 7376 .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", 7377 .rlen = 8, 7378 }, { 7379 .key = "\xef\x01\x23\x45", 7380 .klen = 4, 7381 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 7382 "\x00\x00\x00\x00\x00\x00\x00\x00" 7383 "\x00\x00\x00\x00", 7384 .ilen = 20, 7385 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" 7386 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" 7387 "\x36\xb6\x78\x58", 7388 .rlen = 20, 7389 }, { 7390 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7391 .klen = 8, 7392 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" 7393 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" 7394 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" 7395 "\x12\x34\x56\x78", 7396 .ilen = 28, 7397 .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" 7398 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" 7399 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" 7400 "\x40\x01\x1e\xcf", 7401 .rlen = 28, 7402 }, { 7403 .key = "\xef\x01\x23\x45", 7404 .klen = 4, 7405 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 7406 "\x00\x00", 7407 .ilen = 10, 7408 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" 7409 "\xbd\x61", 7410 .rlen = 10, 7411 }, { 7412 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" 7413 "\x00\x00\x00\x00\x00\x00\x00\x00", 7414 .klen = 16, 7415 .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", 7416 .ilen = 8, 7417 .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1", 7418 .rlen = 8, 7419 }, 7420 }; 7421 7422 static struct cipher_testvec arc4_dec_tv_template[] = { 7423 { 7424 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7425 .klen = 8, 7426 .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", 7427 .ilen = 8, 7428 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7429 .rlen = 8, 7430 }, { 7431 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7432 .klen = 8, 7433 .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", 7434 .ilen = 8, 7435 .result = "\x00\x00\x00\x00\x00\x00\x00\x00", 7436 .rlen = 8, 7437 }, { 7438 .key = "\x00\x00\x00\x00\x00\x00\x00\x00", 7439 .klen = 8, 7440 .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", 7441 .ilen = 8, 7442 .result = "\x00\x00\x00\x00\x00\x00\x00\x00", 7443 .rlen = 8, 7444 }, { 7445 .key = "\xef\x01\x23\x45", 7446 .klen = 4, 7447 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" 7448 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" 7449 "\x36\xb6\x78\x58", 7450 .ilen = 20, 7451 .result = "\x00\x00\x00\x00\x00\x00\x00\x00" 7452 "\x00\x00\x00\x00\x00\x00\x00\x00" 7453 "\x00\x00\x00\x00", 7454 .rlen = 20, 7455 }, { 7456 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", 7457 .klen = 8, 7458 .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" 7459 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" 7460 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" 7461 "\x40\x01\x1e\xcf", 7462 .ilen = 28, 7463 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" 7464 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" 7465 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" 7466 "\x12\x34\x56\x78", 7467 .rlen = 28, 7468 }, { 7469 .key = "\xef\x01\x23\x45", 7470 .klen = 4, 7471 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" 7472 "\xbd\x61", 7473 .ilen = 10, 7474 .result = "\x00\x00\x00\x00\x00\x00\x00\x00" 7475 "\x00\x00", 7476 .rlen = 10, 7477 }, { 7478 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" 7479 "\x00\x00\x00\x00\x00\x00\x00\x00", 7480 .klen = 16, 7481 .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1", 7482 .ilen = 8, 7483 .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", 7484 .rlen = 8, 7485 }, 7486 }; 7487 7488 /* 7489 * TEA test vectors 7490 */ 7491 #define TEA_ENC_TEST_VECTORS 4 7492 #define TEA_DEC_TEST_VECTORS 4 7493 7494 static struct cipher_testvec tea_enc_tv_template[] = { 7495 { 7496 .key = zeroed_string, 7497 .klen = 16, 7498 .input = zeroed_string, 7499 .ilen = 8, 7500 .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", 7501 .rlen = 8, 7502 }, { 7503 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" 7504 "\x77\x5d\x0e\x26\x6c\x28\x78\x43", 7505 .klen = 16, 7506 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", 7507 .ilen = 8, 7508 .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", 7509 .rlen = 8, 7510 }, { 7511 .key = "\x09\x65\x43\x11\x66\x44\x39\x25" 7512 "\x51\x3a\x16\x10\x0a\x08\x12\x6e", 7513 .klen = 16, 7514 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" 7515 "\x65\x73\x74\x5f\x76\x65\x63\x74", 7516 .ilen = 16, 7517 .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" 7518 "\xdd\x89\xa1\x25\x04\x21\xdf\x95", 7519 .rlen = 16, 7520 }, { 7521 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" 7522 "\x5d\x04\x16\x36\x15\x72\x63\x2f", 7523 .klen = 16, 7524 .input = "\x54\x65\x61\x20\x69\x73\x20\x67" 7525 "\x6f\x6f\x64\x20\x66\x6f\x72\x20" 7526 "\x79\x6f\x75\x21\x21\x21\x20\x72" 7527 "\x65\x61\x6c\x6c\x79\x21\x21\x21", 7528 .ilen = 32, 7529 .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" 7530 "\x94\x18\x95\x91\xa9\xfc\x49\xf8" 7531 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" 7532 "\x07\x89\x73\xc2\x45\x92\xc6\x90", 7533 .rlen = 32, 7534 } 7535 }; 7536 7537 static struct cipher_testvec tea_dec_tv_template[] = { 7538 { 7539 .key = zeroed_string, 7540 .klen = 16, 7541 .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", 7542 .ilen = 8, 7543 .result = zeroed_string, 7544 .rlen = 8, 7545 }, { 7546 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" 7547 "\x77\x5d\x0e\x26\x6c\x28\x78\x43", 7548 .klen = 16, 7549 .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", 7550 .ilen = 8, 7551 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", 7552 .rlen = 8, 7553 }, { 7554 .key = "\x09\x65\x43\x11\x66\x44\x39\x25" 7555 "\x51\x3a\x16\x10\x0a\x08\x12\x6e", 7556 .klen = 16, 7557 .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" 7558 "\xdd\x89\xa1\x25\x04\x21\xdf\x95", 7559 .ilen = 16, 7560 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" 7561 "\x65\x73\x74\x5f\x76\x65\x63\x74", 7562 .rlen = 16, 7563 }, { 7564 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" 7565 "\x5d\x04\x16\x36\x15\x72\x63\x2f", 7566 .klen = 16, 7567 .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" 7568 "\x94\x18\x95\x91\xa9\xfc\x49\xf8" 7569 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" 7570 "\x07\x89\x73\xc2\x45\x92\xc6\x90", 7571 .ilen = 32, 7572 .result = "\x54\x65\x61\x20\x69\x73\x20\x67" 7573 "\x6f\x6f\x64\x20\x66\x6f\x72\x20" 7574 "\x79\x6f\x75\x21\x21\x21\x20\x72" 7575 "\x65\x61\x6c\x6c\x79\x21\x21\x21", 7576 .rlen = 32, 7577 } 7578 }; 7579 7580 /* 7581 * XTEA test vectors 7582 */ 7583 #define XTEA_ENC_TEST_VECTORS 4 7584 #define XTEA_DEC_TEST_VECTORS 4 7585 7586 static struct cipher_testvec xtea_enc_tv_template[] = { 7587 { 7588 .key = zeroed_string, 7589 .klen = 16, 7590 .input = zeroed_string, 7591 .ilen = 8, 7592 .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", 7593 .rlen = 8, 7594 }, { 7595 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" 7596 "\x77\x5d\x0e\x26\x6c\x28\x78\x43", 7597 .klen = 16, 7598 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", 7599 .ilen = 8, 7600 .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", 7601 .rlen = 8, 7602 }, { 7603 .key = "\x09\x65\x43\x11\x66\x44\x39\x25" 7604 "\x51\x3a\x16\x10\x0a\x08\x12\x6e", 7605 .klen = 16, 7606 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" 7607 "\x65\x73\x74\x5f\x76\x65\x63\x74", 7608 .ilen = 16, 7609 .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" 7610 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", 7611 .rlen = 16, 7612 }, { 7613 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" 7614 "\x5d\x04\x16\x36\x15\x72\x63\x2f", 7615 .klen = 16, 7616 .input = "\x54\x65\x61\x20\x69\x73\x20\x67" 7617 "\x6f\x6f\x64\x20\x66\x6f\x72\x20" 7618 "\x79\x6f\x75\x21\x21\x21\x20\x72" 7619 "\x65\x61\x6c\x6c\x79\x21\x21\x21", 7620 .ilen = 32, 7621 .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" 7622 "\x86\xff\x6f\xd0\xe3\x87\x70\x07" 7623 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" 7624 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", 7625 .rlen = 32, 7626 } 7627 }; 7628 7629 static struct cipher_testvec xtea_dec_tv_template[] = { 7630 { 7631 .key = zeroed_string, 7632 .klen = 16, 7633 .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", 7634 .ilen = 8, 7635 .result = zeroed_string, 7636 .rlen = 8, 7637 }, { 7638 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" 7639 "\x77\x5d\x0e\x26\x6c\x28\x78\x43", 7640 .klen = 16, 7641 .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", 7642 .ilen = 8, 7643 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", 7644 .rlen = 8, 7645 }, { 7646 .key = "\x09\x65\x43\x11\x66\x44\x39\x25" 7647 "\x51\x3a\x16\x10\x0a\x08\x12\x6e", 7648 .klen = 16, 7649 .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" 7650 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", 7651 .ilen = 16, 7652 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" 7653 "\x65\x73\x74\x5f\x76\x65\x63\x74", 7654 .rlen = 16, 7655 }, { 7656 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" 7657 "\x5d\x04\x16\x36\x15\x72\x63\x2f", 7658 .klen = 16, 7659 .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" 7660 "\x86\xff\x6f\xd0\xe3\x87\x70\x07" 7661 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" 7662 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", 7663 .ilen = 32, 7664 .result = "\x54\x65\x61\x20\x69\x73\x20\x67" 7665 "\x6f\x6f\x64\x20\x66\x6f\x72\x20" 7666 "\x79\x6f\x75\x21\x21\x21\x20\x72" 7667 "\x65\x61\x6c\x6c\x79\x21\x21\x21", 7668 .rlen = 32, 7669 } 7670 }; 7671 7672 /* 7673 * KHAZAD test vectors. 7674 */ 7675 #define KHAZAD_ENC_TEST_VECTORS 5 7676 #define KHAZAD_DEC_TEST_VECTORS 5 7677 7678 static struct cipher_testvec khazad_enc_tv_template[] = { 7679 { 7680 .key = "\x80\x00\x00\x00\x00\x00\x00\x00" 7681 "\x00\x00\x00\x00\x00\x00\x00\x00", 7682 .klen = 16, 7683 .input = "\x00\x00\x00\x00\x00\x00\x00\x00", 7684 .ilen = 8, 7685 .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", 7686 .rlen = 8, 7687 }, { 7688 .key = "\x38\x38\x38\x38\x38\x38\x38\x38" 7689 "\x38\x38\x38\x38\x38\x38\x38\x38", 7690 .klen = 16, 7691 .input = "\x38\x38\x38\x38\x38\x38\x38\x38", 7692 .ilen = 8, 7693 .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", 7694 .rlen = 8, 7695 }, { 7696 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" 7697 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", 7698 .klen = 16, 7699 .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", 7700 .ilen = 8, 7701 .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", 7702 .rlen = 8, 7703 }, { 7704 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" 7705 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7706 .klen = 16, 7707 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7708 .ilen = 8, 7709 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", 7710 .rlen = 8, 7711 }, { 7712 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" 7713 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7714 .klen = 16, 7715 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" 7716 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7717 .ilen = 16, 7718 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" 7719 "\x04\x74\xf5\x70\x50\x16\xd3\xb8", 7720 .rlen = 16, 7721 }, 7722 }; 7723 7724 static struct cipher_testvec khazad_dec_tv_template[] = { 7725 { 7726 .key = "\x80\x00\x00\x00\x00\x00\x00\x00" 7727 "\x00\x00\x00\x00\x00\x00\x00\x00", 7728 .klen = 16, 7729 .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", 7730 .ilen = 8, 7731 .result = "\x00\x00\x00\x00\x00\x00\x00\x00", 7732 .rlen = 8, 7733 }, { 7734 .key = "\x38\x38\x38\x38\x38\x38\x38\x38" 7735 "\x38\x38\x38\x38\x38\x38\x38\x38", 7736 .klen = 16, 7737 .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", 7738 .ilen = 8, 7739 .result = "\x38\x38\x38\x38\x38\x38\x38\x38", 7740 .rlen = 8, 7741 }, { 7742 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" 7743 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", 7744 .klen = 16, 7745 .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", 7746 .ilen = 8, 7747 .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", 7748 .rlen = 8, 7749 }, { 7750 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" 7751 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7752 .klen = 16, 7753 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", 7754 .ilen = 8, 7755 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7756 .rlen = 8, 7757 }, { 7758 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" 7759 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7760 .klen = 16, 7761 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" 7762 "\x04\x74\xf5\x70\x50\x16\xd3\xb8", 7763 .ilen = 16, 7764 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" 7765 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", 7766 .rlen = 16, 7767 }, 7768 }; 7769 7770 /* 7771 * Anubis test vectors. 7772 */ 7773 7774 #define ANUBIS_ENC_TEST_VECTORS 5 7775 #define ANUBIS_DEC_TEST_VECTORS 5 7776 #define ANUBIS_CBC_ENC_TEST_VECTORS 2 7777 #define ANUBIS_CBC_DEC_TEST_VECTORS 2 7778 7779 static struct cipher_testvec anubis_enc_tv_template[] = { 7780 { 7781 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7782 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7783 .klen = 16, 7784 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7785 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7786 .ilen = 16, 7787 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" 7788 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", 7789 .rlen = 16, 7790 }, { 7791 7792 .key = "\x03\x03\x03\x03\x03\x03\x03\x03" 7793 "\x03\x03\x03\x03\x03\x03\x03\x03" 7794 "\x03\x03\x03\x03", 7795 .klen = 20, 7796 .input = "\x03\x03\x03\x03\x03\x03\x03\x03" 7797 "\x03\x03\x03\x03\x03\x03\x03\x03", 7798 .ilen = 16, 7799 .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" 7800 "\x87\x41\x6f\x82\x0a\x98\x64\xae", 7801 .rlen = 16, 7802 }, { 7803 .key = "\x24\x24\x24\x24\x24\x24\x24\x24" 7804 "\x24\x24\x24\x24\x24\x24\x24\x24" 7805 "\x24\x24\x24\x24\x24\x24\x24\x24" 7806 "\x24\x24\x24\x24", 7807 .klen = 28, 7808 .input = "\x24\x24\x24\x24\x24\x24\x24\x24" 7809 "\x24\x24\x24\x24\x24\x24\x24\x24", 7810 .ilen = 16, 7811 .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" 7812 "\x06\xd3\x61\x27\xfd\x13\x9e\xde", 7813 .rlen = 16, 7814 }, { 7815 .key = "\x25\x25\x25\x25\x25\x25\x25\x25" 7816 "\x25\x25\x25\x25\x25\x25\x25\x25" 7817 "\x25\x25\x25\x25\x25\x25\x25\x25" 7818 "\x25\x25\x25\x25\x25\x25\x25\x25", 7819 .klen = 32, 7820 .input = "\x25\x25\x25\x25\x25\x25\x25\x25" 7821 "\x25\x25\x25\x25\x25\x25\x25\x25", 7822 .ilen = 16, 7823 .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" 7824 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", 7825 .rlen = 16, 7826 }, { 7827 .key = "\x35\x35\x35\x35\x35\x35\x35\x35" 7828 "\x35\x35\x35\x35\x35\x35\x35\x35" 7829 "\x35\x35\x35\x35\x35\x35\x35\x35" 7830 "\x35\x35\x35\x35\x35\x35\x35\x35" 7831 "\x35\x35\x35\x35\x35\x35\x35\x35", 7832 .klen = 40, 7833 .input = "\x35\x35\x35\x35\x35\x35\x35\x35" 7834 "\x35\x35\x35\x35\x35\x35\x35\x35", 7835 .ilen = 16, 7836 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" 7837 "\x9e\xc6\x84\x0f\x17\x21\x07\xee", 7838 .rlen = 16, 7839 }, 7840 }; 7841 7842 static struct cipher_testvec anubis_dec_tv_template[] = { 7843 { 7844 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7845 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7846 .klen = 16, 7847 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" 7848 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", 7849 .ilen = 16, 7850 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7851 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7852 .rlen = 16, 7853 }, { 7854 7855 .key = "\x03\x03\x03\x03\x03\x03\x03\x03" 7856 "\x03\x03\x03\x03\x03\x03\x03\x03" 7857 "\x03\x03\x03\x03", 7858 .klen = 20, 7859 .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" 7860 "\x87\x41\x6f\x82\x0a\x98\x64\xae", 7861 .ilen = 16, 7862 .result = "\x03\x03\x03\x03\x03\x03\x03\x03" 7863 "\x03\x03\x03\x03\x03\x03\x03\x03", 7864 .rlen = 16, 7865 }, { 7866 .key = "\x24\x24\x24\x24\x24\x24\x24\x24" 7867 "\x24\x24\x24\x24\x24\x24\x24\x24" 7868 "\x24\x24\x24\x24\x24\x24\x24\x24" 7869 "\x24\x24\x24\x24", 7870 .klen = 28, 7871 .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" 7872 "\x06\xd3\x61\x27\xfd\x13\x9e\xde", 7873 .ilen = 16, 7874 .result = "\x24\x24\x24\x24\x24\x24\x24\x24" 7875 "\x24\x24\x24\x24\x24\x24\x24\x24", 7876 .rlen = 16, 7877 }, { 7878 .key = "\x25\x25\x25\x25\x25\x25\x25\x25" 7879 "\x25\x25\x25\x25\x25\x25\x25\x25" 7880 "\x25\x25\x25\x25\x25\x25\x25\x25" 7881 "\x25\x25\x25\x25\x25\x25\x25\x25", 7882 .klen = 32, 7883 .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" 7884 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", 7885 .ilen = 16, 7886 .result = "\x25\x25\x25\x25\x25\x25\x25\x25" 7887 "\x25\x25\x25\x25\x25\x25\x25\x25", 7888 .rlen = 16, 7889 }, { 7890 .key = "\x35\x35\x35\x35\x35\x35\x35\x35" 7891 "\x35\x35\x35\x35\x35\x35\x35\x35" 7892 "\x35\x35\x35\x35\x35\x35\x35\x35" 7893 "\x35\x35\x35\x35\x35\x35\x35\x35" 7894 "\x35\x35\x35\x35\x35\x35\x35\x35", 7895 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" 7896 "\x9e\xc6\x84\x0f\x17\x21\x07\xee", 7897 .klen = 40, 7898 .ilen = 16, 7899 .result = "\x35\x35\x35\x35\x35\x35\x35\x35" 7900 "\x35\x35\x35\x35\x35\x35\x35\x35", 7901 .rlen = 16, 7902 }, 7903 }; 7904 7905 static struct cipher_testvec anubis_cbc_enc_tv_template[] = { 7906 { 7907 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7908 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7909 .klen = 16, 7910 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7911 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7912 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7913 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7914 .ilen = 32, 7915 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" 7916 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" 7917 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" 7918 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", 7919 .rlen = 32, 7920 }, { 7921 .key = "\x35\x35\x35\x35\x35\x35\x35\x35" 7922 "\x35\x35\x35\x35\x35\x35\x35\x35" 7923 "\x35\x35\x35\x35\x35\x35\x35\x35" 7924 "\x35\x35\x35\x35\x35\x35\x35\x35" 7925 "\x35\x35\x35\x35\x35\x35\x35\x35", 7926 .klen = 40, 7927 .input = "\x35\x35\x35\x35\x35\x35\x35\x35" 7928 "\x35\x35\x35\x35\x35\x35\x35\x35" 7929 "\x35\x35\x35\x35\x35\x35\x35\x35" 7930 "\x35\x35\x35\x35\x35\x35\x35\x35", 7931 .ilen = 32, 7932 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" 7933 "\x9e\xc6\x84\x0f\x17\x21\x07\xee" 7934 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" 7935 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", 7936 .rlen = 32, 7937 }, 7938 }; 7939 7940 static struct cipher_testvec anubis_cbc_dec_tv_template[] = { 7941 { 7942 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7943 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7944 .klen = 16, 7945 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" 7946 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" 7947 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" 7948 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", 7949 .ilen = 32, 7950 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7951 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7952 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" 7953 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", 7954 .rlen = 32, 7955 }, { 7956 .key = "\x35\x35\x35\x35\x35\x35\x35\x35" 7957 "\x35\x35\x35\x35\x35\x35\x35\x35" 7958 "\x35\x35\x35\x35\x35\x35\x35\x35" 7959 "\x35\x35\x35\x35\x35\x35\x35\x35" 7960 "\x35\x35\x35\x35\x35\x35\x35\x35", 7961 .klen = 40, 7962 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" 7963 "\x9e\xc6\x84\x0f\x17\x21\x07\xee" 7964 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" 7965 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", 7966 .ilen = 32, 7967 .result = "\x35\x35\x35\x35\x35\x35\x35\x35" 7968 "\x35\x35\x35\x35\x35\x35\x35\x35" 7969 "\x35\x35\x35\x35\x35\x35\x35\x35" 7970 "\x35\x35\x35\x35\x35\x35\x35\x35", 7971 .rlen = 32, 7972 }, 7973 }; 7974 7975 /* 7976 * XETA test vectors 7977 */ 7978 #define XETA_ENC_TEST_VECTORS 4 7979 #define XETA_DEC_TEST_VECTORS 4 7980 7981 static struct cipher_testvec xeta_enc_tv_template[] = { 7982 { 7983 .key = zeroed_string, 7984 .klen = 16, 7985 .input = zeroed_string, 7986 .ilen = 8, 7987 .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", 7988 .rlen = 8, 7989 }, { 7990 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" 7991 "\x77\x5d\x0e\x26\x6c\x28\x78\x43", 7992 .klen = 16, 7993 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", 7994 .ilen = 8, 7995 .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", 7996 .rlen = 8, 7997 }, { 7998 .key = "\x09\x65\x43\x11\x66\x44\x39\x25" 7999 "\x51\x3a\x16\x10\x0a\x08\x12\x6e", 8000 .klen = 16, 8001 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" 8002 "\x65\x73\x74\x5f\x76\x65\x63\x74", 8003 .ilen = 16, 8004 .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" 8005 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", 8006 .rlen = 16, 8007 }, { 8008 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" 8009 "\x5d\x04\x16\x36\x15\x72\x63\x2f", 8010 .klen = 16, 8011 .input = "\x54\x65\x61\x20\x69\x73\x20\x67" 8012 "\x6f\x6f\x64\x20\x66\x6f\x72\x20" 8013 "\x79\x6f\x75\x21\x21\x21\x20\x72" 8014 "\x65\x61\x6c\x6c\x79\x21\x21\x21", 8015 .ilen = 32, 8016 .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" 8017 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" 8018 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" 8019 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", 8020 .rlen = 32, 8021 } 8022 }; 8023 8024 static struct cipher_testvec xeta_dec_tv_template[] = { 8025 { 8026 .key = zeroed_string, 8027 .klen = 16, 8028 .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", 8029 .ilen = 8, 8030 .result = zeroed_string, 8031 .rlen = 8, 8032 }, { 8033 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" 8034 "\x77\x5d\x0e\x26\x6c\x28\x78\x43", 8035 .klen = 16, 8036 .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", 8037 .ilen = 8, 8038 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", 8039 .rlen = 8, 8040 }, { 8041 .key = "\x09\x65\x43\x11\x66\x44\x39\x25" 8042 "\x51\x3a\x16\x10\x0a\x08\x12\x6e", 8043 .klen = 16, 8044 .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" 8045 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", 8046 .ilen = 16, 8047 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" 8048 "\x65\x73\x74\x5f\x76\x65\x63\x74", 8049 .rlen = 16, 8050 }, { 8051 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" 8052 "\x5d\x04\x16\x36\x15\x72\x63\x2f", 8053 .klen = 16, 8054 .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" 8055 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" 8056 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" 8057 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", 8058 .ilen = 32, 8059 .result = "\x54\x65\x61\x20\x69\x73\x20\x67" 8060 "\x6f\x6f\x64\x20\x66\x6f\x72\x20" 8061 "\x79\x6f\x75\x21\x21\x21\x20\x72" 8062 "\x65\x61\x6c\x6c\x79\x21\x21\x21", 8063 .rlen = 32, 8064 } 8065 }; 8066 8067 /* 8068 * FCrypt test vectors 8069 */ 8070 #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template) 8071 #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template) 8072 8073 static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = { 8074 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ 8075 .key = "\x00\x00\x00\x00\x00\x00\x00\x00", 8076 .klen = 8, 8077 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 8078 .input = "\x00\x00\x00\x00\x00\x00\x00\x00", 8079 .ilen = 8, 8080 .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", 8081 .rlen = 8, 8082 }, { 8083 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", 8084 .klen = 8, 8085 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 8086 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", 8087 .ilen = 8, 8088 .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80", 8089 .rlen = 8, 8090 }, { /* From Arla */ 8091 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 8092 .klen = 8, 8093 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8094 .input = "The quick brown fox jumps over the lazy dogs.\0\0", 8095 .ilen = 48, 8096 .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" 8097 "\xee\xac\x98\x62\x44\x51\xe4\x84" 8098 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" 8099 "\xd2\xd9\x13\x79\x72\xa3\x45\x03" 8100 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" 8101 "\xf8\x91\x3c\xac\x44\x22\x92\xef", 8102 .rlen = 48, 8103 }, { 8104 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8105 .klen = 8, 8106 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 8107 .input = "The quick brown fox jumps over the lazy dogs.\0\0", 8108 .ilen = 48, 8109 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" 8110 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" 8111 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" 8112 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" 8113 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" 8114 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", 8115 .rlen = 48, 8116 }, { /* split-page version */ 8117 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8118 .klen = 8, 8119 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 8120 .input = "The quick brown fox jumps over the lazy dogs.\0\0", 8121 .ilen = 48, 8122 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" 8123 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" 8124 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" 8125 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" 8126 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" 8127 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", 8128 .rlen = 48, 8129 .np = 2, 8130 .tap = { 20, 28 }, 8131 } 8132 }; 8133 8134 static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = { 8135 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ 8136 .key = "\x00\x00\x00\x00\x00\x00\x00\x00", 8137 .klen = 8, 8138 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 8139 .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", 8140 .ilen = 8, 8141 .result = "\x00\x00\x00\x00\x00\x00\x00\x00", 8142 .rlen = 8, 8143 }, { 8144 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", 8145 .klen = 8, 8146 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 8147 .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80", 8148 .ilen = 8, 8149 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", 8150 .rlen = 8, 8151 }, { /* From Arla */ 8152 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 8153 .klen = 8, 8154 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8155 .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" 8156 "\xee\xac\x98\x62\x44\x51\xe4\x84" 8157 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" 8158 "\xd2\xd9\x13\x79\x72\xa3\x45\x03" 8159 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" 8160 "\xf8\x91\x3c\xac\x44\x22\x92\xef", 8161 .ilen = 48, 8162 .result = "The quick brown fox jumps over the lazy dogs.\0\0", 8163 .rlen = 48, 8164 }, { 8165 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8166 .klen = 8, 8167 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 8168 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" 8169 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" 8170 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" 8171 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" 8172 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" 8173 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", 8174 .ilen = 48, 8175 .result = "The quick brown fox jumps over the lazy dogs.\0\0", 8176 .rlen = 48, 8177 }, { /* split-page version */ 8178 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8179 .klen = 8, 8180 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", 8181 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" 8182 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" 8183 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" 8184 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" 8185 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" 8186 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", 8187 .ilen = 48, 8188 .result = "The quick brown fox jumps over the lazy dogs.\0\0", 8189 .rlen = 48, 8190 .np = 2, 8191 .tap = { 20, 28 }, 8192 } 8193 }; 8194 8195 /* 8196 * CAMELLIA test vectors. 8197 */ 8198 #define CAMELLIA_ENC_TEST_VECTORS 3 8199 #define CAMELLIA_DEC_TEST_VECTORS 3 8200 #define CAMELLIA_CBC_ENC_TEST_VECTORS 2 8201 #define CAMELLIA_CBC_DEC_TEST_VECTORS 2 8202 8203 static struct cipher_testvec camellia_enc_tv_template[] = { 8204 { 8205 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8206 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8207 .klen = 16, 8208 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8209 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8210 .ilen = 16, 8211 .result = "\x67\x67\x31\x38\x54\x96\x69\x73" 8212 "\x08\x57\x06\x56\x48\xea\xbe\x43", 8213 .rlen = 16, 8214 }, { 8215 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8216 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 8217 "\x00\x11\x22\x33\x44\x55\x66\x77", 8218 .klen = 24, 8219 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8220 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8221 .ilen = 16, 8222 .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" 8223 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", 8224 .rlen = 16, 8225 }, { 8226 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8227 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 8228 "\x00\x11\x22\x33\x44\x55\x66\x77" 8229 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 8230 .klen = 32, 8231 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8232 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8233 .ilen = 16, 8234 .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" 8235 "\x20\xef\x7c\x91\x9e\x3a\x75\x09", 8236 .rlen = 16, 8237 }, 8238 }; 8239 8240 static struct cipher_testvec camellia_dec_tv_template[] = { 8241 { 8242 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8243 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8244 .klen = 16, 8245 .input = "\x67\x67\x31\x38\x54\x96\x69\x73" 8246 "\x08\x57\x06\x56\x48\xea\xbe\x43", 8247 .ilen = 16, 8248 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8249 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8250 .rlen = 16, 8251 }, { 8252 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8253 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 8254 "\x00\x11\x22\x33\x44\x55\x66\x77", 8255 .klen = 24, 8256 .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" 8257 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", 8258 .ilen = 16, 8259 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8260 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8261 .rlen = 16, 8262 }, { 8263 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8264 "\xfe\xdc\xba\x98\x76\x54\x32\x10" 8265 "\x00\x11\x22\x33\x44\x55\x66\x77" 8266 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 8267 .klen = 32, 8268 .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" 8269 "\x20\xef\x7c\x91\x9e\x3a\x75\x09", 8270 .ilen = 16, 8271 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" 8272 "\xfe\xdc\xba\x98\x76\x54\x32\x10", 8273 .rlen = 16, 8274 }, 8275 }; 8276 8277 static struct cipher_testvec camellia_cbc_enc_tv_template[] = { 8278 { 8279 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" 8280 "\x51\x2e\x03\xd5\x34\x12\x00\x06", 8281 .klen = 16, 8282 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" 8283 "\xb4\x22\xda\x80\x2c\x9f\xac\x41", 8284 .input = "Single block msg", 8285 .ilen = 16, 8286 .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7" 8287 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", 8288 .rlen = 16, 8289 }, { 8290 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" 8291 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", 8292 .klen = 16, 8293 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" 8294 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", 8295 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 8296 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 8297 "\x10\x11\x12\x13\x14\x15\x16\x17" 8298 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 8299 .ilen = 32, 8300 .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" 8301 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" 8302 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" 8303 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", 8304 .rlen = 32, 8305 }, 8306 }; 8307 8308 static struct cipher_testvec camellia_cbc_dec_tv_template[] = { 8309 { 8310 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" 8311 "\x51\x2e\x03\xd5\x34\x12\x00\x06", 8312 .klen = 16, 8313 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" 8314 "\xb4\x22\xda\x80\x2c\x9f\xac\x41", 8315 .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7" 8316 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", 8317 .ilen = 16, 8318 .result = "Single block msg", 8319 .rlen = 16, 8320 }, { 8321 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" 8322 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", 8323 .klen = 16, 8324 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" 8325 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", 8326 .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" 8327 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" 8328 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" 8329 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", 8330 .ilen = 32, 8331 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 8332 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 8333 "\x10\x11\x12\x13\x14\x15\x16\x17" 8334 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 8335 .rlen = 32, 8336 }, 8337 }; 8338 8339 /* 8340 * SEED test vectors 8341 */ 8342 #define SEED_ENC_TEST_VECTORS 4 8343 #define SEED_DEC_TEST_VECTORS 4 8344 8345 static struct cipher_testvec seed_enc_tv_template[] = { 8346 { 8347 .key = zeroed_string, 8348 .klen = 16, 8349 .input = "\x00\x01\x02\x03\x04\x05\x06\x07" 8350 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 8351 .ilen = 16, 8352 .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" 8353 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", 8354 .rlen = 16, 8355 }, { 8356 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 8357 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 8358 .klen = 16, 8359 .input = zeroed_string, 8360 .ilen = 16, 8361 .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" 8362 "\x84\x48\x35\x97\xe4\x37\x0f\x43", 8363 .rlen = 16, 8364 }, { 8365 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" 8366 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", 8367 .klen = 16, 8368 .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" 8369 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", 8370 .ilen = 16, 8371 .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" 8372 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", 8373 .rlen = 16, 8374 }, { 8375 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" 8376 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", 8377 .klen = 16, 8378 .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" 8379 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", 8380 .ilen = 16, 8381 .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" 8382 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", 8383 .rlen = 16, 8384 } 8385 }; 8386 8387 static struct cipher_testvec seed_dec_tv_template[] = { 8388 { 8389 .key = zeroed_string, 8390 .klen = 16, 8391 .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" 8392 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", 8393 .ilen = 16, 8394 .result = "\x00\x01\x02\x03\x04\x05\x06\x07" 8395 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 8396 .rlen = 16, 8397 }, { 8398 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 8399 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", 8400 .klen = 16, 8401 .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" 8402 "\x84\x48\x35\x97\xe4\x37\x0f\x43", 8403 .ilen = 16, 8404 .result = zeroed_string, 8405 .rlen = 16, 8406 }, { 8407 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" 8408 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", 8409 .klen = 16, 8410 .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" 8411 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", 8412 .ilen = 16, 8413 .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" 8414 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", 8415 .rlen = 16, 8416 }, { 8417 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" 8418 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", 8419 .klen = 16, 8420 .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" 8421 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", 8422 .ilen = 16, 8423 .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" 8424 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", 8425 .rlen = 16, 8426 } 8427 }; 8428 8429 #define SALSA20_STREAM_ENC_TEST_VECTORS 5 8430 static struct cipher_testvec salsa20_stream_enc_tv_template[] = { 8431 /* 8432 * Testvectors from verified.test-vectors submitted to ECRYPT. 8433 * They are truncated to size 39, 64, 111, 129 to test a variety 8434 * of input length. 8435 */ 8436 { /* Set 3, vector 0 */ 8437 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 8438 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", 8439 .klen = 16, 8440 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 8441 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 8442 "\x00\x00\x00\x00\x00\x00\x00\x00" 8443 "\x00\x00\x00\x00\x00\x00\x00\x00" 8444 "\x00\x00\x00\x00\x00\x00\x00\x00" 8445 "\x00\x00\x00\x00\x00\x00\x00", 8446 .ilen = 39, 8447 .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7" 8448 "\x68\x02\x41\x0C\x68\x86\x88\x89" 8449 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1" 8450 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF" 8451 "\x58\x3F\x52\x79\x70\xEB\xC1", 8452 .rlen = 39, 8453 }, { /* Set 5, vector 0 */ 8454 .key = "\x00\x00\x00\x00\x00\x00\x00\x00" 8455 "\x00\x00\x00\x00\x00\x00\x00\x00", 8456 .klen = 16, 8457 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00", 8458 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 8459 "\x00\x00\x00\x00\x00\x00\x00\x00" 8460 "\x00\x00\x00\x00\x00\x00\x00\x00" 8461 "\x00\x00\x00\x00\x00\x00\x00\x00" 8462 "\x00\x00\x00\x00\x00\x00\x00\x00" 8463 "\x00\x00\x00\x00\x00\x00\x00\x00" 8464 "\x00\x00\x00\x00\x00\x00\x00\x00" 8465 "\x00\x00\x00\x00\x00\x00\x00\x00", 8466 .ilen = 64, 8467 .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57" 8468 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01" 8469 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE" 8470 "\x46\x26\xBF\x44\x3F\x21\x97\x76" 8471 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F" 8472 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09" 8473 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9" 8474 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9", 8475 .rlen = 64, 8476 }, { /* Set 3, vector 27 */ 8477 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22" 8478 "\x23\x24\x25\x26\x27\x28\x29\x2A" 8479 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32" 8480 "\x33\x34\x35\x36\x37\x38\x39\x3A", 8481 .klen = 32, 8482 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", 8483 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 8484 "\x00\x00\x00\x00\x00\x00\x00\x00" 8485 "\x00\x00\x00\x00\x00\x00\x00\x00" 8486 "\x00\x00\x00\x00\x00\x00\x00\x00" 8487 "\x00\x00\x00\x00\x00\x00\x00\x00" 8488 "\x00\x00\x00\x00\x00\x00\x00\x00" 8489 "\x00\x00\x00\x00\x00\x00\x00\x00" 8490 "\x00\x00\x00\x00\x00\x00\x00\x00" 8491 "\x00\x00\x00\x00\x00\x00\x00\x00" 8492 "\x00\x00\x00\x00\x00\x00\x00\x00" 8493 "\x00\x00\x00\x00\x00\x00\x00\x00" 8494 "\x00\x00\x00\x00\x00\x00\x00\x00" 8495 "\x00\x00\x00\x00\x00\x00\x00\x00" 8496 "\x00\x00\x00\x00\x00\x00\x00", 8497 .ilen = 111, 8498 .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7" 8499 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F" 8500 "\x87\xD9\x47\xF8\x28\x91\x35\x98" 8501 "\xDB\x72\xCC\x23\x29\x48\x56\x5E" 8502 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B" 8503 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23" 8504 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B" 8505 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59" 8506 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1" 8507 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E" 8508 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92" 8509 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6" 8510 "\x95\x46\x45\x54\xE9\x75\x03\x08" 8511 "\x44\xAF\xE5\x8A\x81\x12\x09", 8512 .rlen = 111, 8513 }, { /* Set 5, vector 27 */ 8514 .key = "\x00\x00\x00\x00\x00\x00\x00\x00" 8515 "\x00\x00\x00\x00\x00\x00\x00\x00" 8516 "\x00\x00\x00\x00\x00\x00\x00\x00" 8517 "\x00\x00\x00\x00\x00\x00\x00\x00", 8518 .klen = 32, 8519 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00", 8520 .input = "\x00\x00\x00\x00\x00\x00\x00\x00" 8521 "\x00\x00\x00\x00\x00\x00\x00\x00" 8522 "\x00\x00\x00\x00\x00\x00\x00\x00" 8523 "\x00\x00\x00\x00\x00\x00\x00\x00" 8524 "\x00\x00\x00\x00\x00\x00\x00\x00" 8525 "\x00\x00\x00\x00\x00\x00\x00\x00" 8526 "\x00\x00\x00\x00\x00\x00\x00\x00" 8527 "\x00\x00\x00\x00\x00\x00\x00\x00" 8528 "\x00\x00\x00\x00\x00\x00\x00\x00" 8529 "\x00\x00\x00\x00\x00\x00\x00\x00" 8530 "\x00\x00\x00\x00\x00\x00\x00\x00" 8531 "\x00\x00\x00\x00\x00\x00\x00\x00" 8532 "\x00\x00\x00\x00\x00\x00\x00\x00" 8533 "\x00\x00\x00\x00\x00\x00\x00\x00" 8534 "\x00\x00\x00\x00\x00\x00\x00\x00" 8535 "\x00\x00\x00\x00\x00\x00\x00\x00" 8536 "\x00", 8537 .ilen = 129, 8538 .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB" 8539 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43" 8540 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D" 8541 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60" 8542 "\xF2\xDE\x74\x56\x18\x1B\x84\x10" 8543 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2" 8544 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58" 8545 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0" 8546 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC" 8547 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75" 8548 "\xA0\x95\x71\xA1\x29\x39\x94\xCA" 8549 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F" 8550 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7" 8551 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD" 8552 "\x2E\x40\x48\x75\xE9\xE2\x21\x45" 8553 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59" 8554 "\x5A", 8555 .rlen = 129, 8556 }, { /* large test vector generated using Crypto++ */ 8557 .key = "\x00\x01\x02\x03\x04\x05\x06\x07" 8558 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 8559 "\x10\x11\x12\x13\x14\x15\x16\x17" 8560 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", 8561 .klen = 32, 8562 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" 8563 "\x00\x00\x00\x00\x00\x00\x00\x00", 8564 .input = 8565 "\x00\x01\x02\x03\x04\x05\x06\x07" 8566 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 8567 "\x10\x11\x12\x13\x14\x15\x16\x17" 8568 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 8569 "\x20\x21\x22\x23\x24\x25\x26\x27" 8570 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" 8571 "\x30\x31\x32\x33\x34\x35\x36\x37" 8572 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" 8573 "\x40\x41\x42\x43\x44\x45\x46\x47" 8574 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" 8575 "\x50\x51\x52\x53\x54\x55\x56\x57" 8576 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" 8577 "\x60\x61\x62\x63\x64\x65\x66\x67" 8578 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" 8579 "\x70\x71\x72\x73\x74\x75\x76\x77" 8580 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" 8581 "\x80\x81\x82\x83\x84\x85\x86\x87" 8582 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" 8583 "\x90\x91\x92\x93\x94\x95\x96\x97" 8584 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" 8585 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" 8586 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" 8587 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" 8588 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" 8589 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" 8590 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" 8591 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" 8592 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" 8593 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" 8594 "\xe8\xe9\xea\xeb\xec\xed\xee\xef" 8595 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" 8596 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" 8597 "\x00\x03\x06\x09\x0c\x0f\x12\x15" 8598 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" 8599 "\x30\x33\x36\x39\x3c\x3f\x42\x45" 8600 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" 8601 "\x60\x63\x66\x69\x6c\x6f\x72\x75" 8602 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" 8603 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" 8604 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" 8605 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" 8606 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" 8607 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" 8608 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" 8609 "\x20\x23\x26\x29\x2c\x2f\x32\x35" 8610 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" 8611 "\x50\x53\x56\x59\x5c\x5f\x62\x65" 8612 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" 8613 "\x80\x83\x86\x89\x8c\x8f\x92\x95" 8614 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" 8615 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" 8616 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" 8617 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" 8618 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" 8619 "\x10\x13\x16\x19\x1c\x1f\x22\x25" 8620 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" 8621 "\x40\x43\x46\x49\x4c\x4f\x52\x55" 8622 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" 8623 "\x70\x73\x76\x79\x7c\x7f\x82\x85" 8624 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" 8625 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" 8626 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" 8627 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" 8628 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" 8629 "\x00\x05\x0a\x0f\x14\x19\x1e\x23" 8630 "\x28\x2d\x32\x37\x3c\x41\x46\x4b" 8631 "\x50\x55\x5a\x5f\x64\x69\x6e\x73" 8632 "\x78\x7d\x82\x87\x8c\x91\x96\x9b" 8633 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" 8634 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" 8635 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" 8636 "\x18\x1d\x22\x27\x2c\x31\x36\x3b" 8637 "\x40\x45\x4a\x4f\x54\x59\x5e\x63" 8638 "\x68\x6d\x72\x77\x7c\x81\x86\x8b" 8639 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" 8640 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" 8641 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" 8642 "\x08\x0d\x12\x17\x1c\x21\x26\x2b" 8643 "\x30\x35\x3a\x3f\x44\x49\x4e\x53" 8644 "\x58\x5d\x62\x67\x6c\x71\x76\x7b" 8645 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" 8646 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" 8647 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" 8648 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" 8649 "\x20\x25\x2a\x2f\x34\x39\x3e\x43" 8650 "\x48\x4d\x52\x57\x5c\x61\x66\x6b" 8651 "\x70\x75\x7a\x7f\x84\x89\x8e\x93" 8652 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" 8653 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" 8654 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" 8655 "\x10\x15\x1a\x1f\x24\x29\x2e\x33" 8656 "\x38\x3d\x42\x47\x4c\x51\x56\x5b" 8657 "\x60\x65\x6a\x6f\x74\x79\x7e\x83" 8658 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" 8659 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" 8660 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" 8661 "\x00\x07\x0e\x15\x1c\x23\x2a\x31" 8662 "\x38\x3f\x46\x4d\x54\x5b\x62\x69" 8663 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" 8664 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" 8665 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" 8666 "\x18\x1f\x26\x2d\x34\x3b\x42\x49" 8667 "\x50\x57\x5e\x65\x6c\x73\x7a\x81" 8668 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" 8669 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" 8670 "\xf8\xff\x06\x0d\x14\x1b\x22\x29" 8671 "\x30\x37\x3e\x45\x4c\x53\x5a\x61" 8672 "\x68\x6f\x76\x7d\x84\x8b\x92\x99" 8673 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" 8674 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" 8675 "\x10\x17\x1e\x25\x2c\x33\x3a\x41" 8676 "\x48\x4f\x56\x5d\x64\x6b\x72\x79" 8677 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" 8678 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" 8679 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" 8680 "\x28\x2f\x36\x3d\x44\x4b\x52\x59" 8681 "\x60\x67\x6e\x75\x7c\x83\x8a\x91" 8682 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" 8683 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" 8684 "\x08\x0f\x16\x1d\x24\x2b\x32\x39" 8685 "\x40\x47\x4e\x55\x5c\x63\x6a\x71" 8686 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" 8687 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" 8688 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" 8689 "\x20\x27\x2e\x35\x3c\x43\x4a\x51" 8690 "\x58\x5f\x66\x6d\x74\x7b\x82\x89" 8691 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" 8692 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" 8693 "\x00\x09\x12\x1b\x24\x2d\x36\x3f" 8694 "\x48\x51\x5a\x63\x6c\x75\x7e\x87" 8695 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" 8696 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" 8697 "\x20\x29\x32\x3b\x44\x4d\x56\x5f" 8698 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" 8699 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" 8700 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" 8701 "\x40\x49\x52\x5b\x64\x6d\x76\x7f" 8702 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" 8703 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" 8704 "\x18\x21\x2a\x33\x3c\x45\x4e\x57" 8705 "\x60\x69\x72\x7b\x84\x8d\x96\x9f" 8706 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" 8707 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" 8708 "\x38\x41\x4a\x53\x5c\x65\x6e\x77" 8709 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" 8710 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" 8711 "\x10\x19\x22\x2b\x34\x3d\x46\x4f" 8712 "\x58\x61\x6a\x73\x7c\x85\x8e\x97" 8713 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" 8714 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" 8715 "\x30\x39\x42\x4b\x54\x5d\x66\x6f" 8716 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" 8717 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" 8718 "\x08\x11\x1a\x23\x2c\x35\x3e\x47" 8719 "\x50\x59\x62\x6b\x74\x7d\x86\x8f" 8720 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" 8721 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" 8722 "\x28\x31\x3a\x43\x4c\x55\x5e\x67" 8723 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" 8724 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" 8725 "\x00\x0b\x16\x21\x2c\x37\x42\x4d" 8726 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" 8727 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" 8728 "\x08\x13\x1e\x29\x34\x3f\x4a\x55" 8729 "\x60\x6b\x76\x81\x8c\x97\xa2\xad" 8730 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" 8731 "\x10\x1b\x26\x31\x3c\x47\x52\x5d" 8732 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" 8733 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" 8734 "\x18\x23\x2e\x39\x44\x4f\x5a\x65" 8735 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" 8736 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" 8737 "\x20\x2b\x36\x41\x4c\x57\x62\x6d" 8738 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" 8739 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" 8740 "\x28\x33\x3e\x49\x54\x5f\x6a\x75" 8741 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" 8742 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" 8743 "\x30\x3b\x46\x51\x5c\x67\x72\x7d" 8744 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" 8745 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" 8746 "\x38\x43\x4e\x59\x64\x6f\x7a\x85" 8747 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" 8748 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" 8749 "\x40\x4b\x56\x61\x6c\x77\x82\x8d" 8750 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" 8751 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" 8752 "\x48\x53\x5e\x69\x74\x7f\x8a\x95" 8753 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" 8754 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" 8755 "\x50\x5b\x66\x71\x7c\x87\x92\x9d" 8756 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" 8757 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" 8758 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" 8759 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" 8760 "\x38\x45\x52\x5f\x6c\x79\x86\x93" 8761 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" 8762 "\x08\x15\x22\x2f\x3c\x49\x56\x63" 8763 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" 8764 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" 8765 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" 8766 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" 8767 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" 8768 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" 8769 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" 8770 "\x48\x55\x62\x6f\x7c\x89\x96\xa3" 8771 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" 8772 "\x18\x25\x32\x3f\x4c\x59\x66\x73" 8773 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" 8774 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" 8775 "\x50\x5d\x6a\x77\x84\x91\x9e\xab" 8776 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" 8777 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" 8778 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" 8779 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" 8780 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" 8781 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" 8782 "\x28\x35\x42\x4f\x5c\x69\x76\x83" 8783 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" 8784 "\xf8\x05\x12\x1f\x2c\x39\x46\x53" 8785 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" 8786 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" 8787 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" 8788 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" 8789 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" 8790 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" 8791 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" 8792 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" 8793 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" 8794 "\x58\x67\x76\x85\x94\xa3\xb2\xc1" 8795 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" 8796 "\x48\x57\x66\x75\x84\x93\xa2\xb1" 8797 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" 8798 "\x38\x47\x56\x65\x74\x83\x92\xa1" 8799 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" 8800 "\x28\x37\x46\x55\x64\x73\x82\x91" 8801 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" 8802 "\x18\x27\x36\x45\x54\x63\x72\x81" 8803 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" 8804 "\x08\x17\x26\x35\x44\x53\x62\x71" 8805 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" 8806 "\xf8\x07\x16\x25\x34\x43\x52\x61" 8807 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" 8808 "\xe8\xf7\x06\x15\x24\x33\x42\x51" 8809 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" 8810 "\xd8\xe7\xf6\x05\x14\x23\x32\x41" 8811 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" 8812 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" 8813 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" 8814 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" 8815 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" 8816 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" 8817 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" 8818 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" 8819 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" 8820 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" 8821 "\x00\x11\x22\x33\x44\x55\x66\x77" 8822 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" 8823 "\x10\x21\x32\x43\x54\x65\x76\x87" 8824 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" 8825 "\x20\x31\x42\x53\x64\x75\x86\x97" 8826 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" 8827 "\x30\x41\x52\x63\x74\x85\x96\xa7" 8828 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" 8829 "\x40\x51\x62\x73\x84\x95\xa6\xb7" 8830 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" 8831 "\x50\x61\x72\x83\x94\xa5\xb6\xc7" 8832 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" 8833 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" 8834 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" 8835 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" 8836 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" 8837 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" 8838 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" 8839 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" 8840 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" 8841 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" 8842 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" 8843 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" 8844 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" 8845 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" 8846 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" 8847 "\xd0\xe1\xf2\x03\x14\x25\x36\x47" 8848 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" 8849 "\xe0\xf1\x02\x13\x24\x35\x46\x57" 8850 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" 8851 "\xf0\x01\x12\x23\x34\x45\x56\x67" 8852 "\x78\x89\x9a\xab\xbc\xcd\xde\xef" 8853 "\x00\x13\x26\x39\x4c\x5f\x72\x85" 8854 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" 8855 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" 8856 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" 8857 "\x60\x73\x86\x99\xac\xbf\xd2\xe5" 8858 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" 8859 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" 8860 "\x28\x3b\x4e\x61\x74\x87\x9a\xad" 8861 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" 8862 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" 8863 "\xf0\x03\x16\x29\x3c\x4f\x62\x75" 8864 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" 8865 "\x20\x33\x46\x59\x6c\x7f\x92\xa5" 8866 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" 8867 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" 8868 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" 8869 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" 8870 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" 8871 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" 8872 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" 8873 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" 8874 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" 8875 "\x10\x23\x36\x49\x5c\x6f\x82\x95" 8876 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" 8877 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" 8878 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" 8879 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" 8880 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" 8881 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" 8882 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" 8883 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" 8884 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" 8885 "\x00\x15\x2a\x3f\x54\x69\x7e\x93" 8886 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" 8887 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" 8888 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" 8889 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" 8890 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" 8891 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" 8892 "\x98\xad\xc2\xd7\xec\x01\x16\x2b" 8893 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" 8894 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" 8895 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" 8896 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" 8897 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" 8898 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" 8899 "\x30\x45\x5a\x6f\x84\x99\xae\xc3" 8900 "\xd8\xed\x02\x17\x2c\x41\x56\x6b" 8901 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" 8902 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" 8903 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" 8904 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" 8905 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" 8906 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" 8907 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" 8908 "\x18\x2d\x42\x57\x6c\x81\x96\xab" 8909 "\xc0\xd5\xea\xff\x14\x29\x3e\x53" 8910 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" 8911 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" 8912 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" 8913 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" 8914 "\x08\x1d\x32\x47\x5c\x71\x86\x9b" 8915 "\xb0\xc5\xda\xef\x04\x19\x2e\x43" 8916 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" 8917 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" 8918 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" 8919 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" 8920 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" 8921 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" 8922 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" 8923 "\x50\x67\x7e\x95\xac\xc3\xda\xf1" 8924 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" 8925 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" 8926 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" 8927 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" 8928 "\xe8\xff\x16\x2d\x44\x5b\x72\x89" 8929 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" 8930 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" 8931 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" 8932 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" 8933 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" 8934 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" 8935 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" 8936 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" 8937 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" 8938 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" 8939 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" 8940 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" 8941 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" 8942 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" 8943 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" 8944 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" 8945 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" 8946 "\xd8\xef\x06\x1d\x34\x4b\x62\x79" 8947 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" 8948 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" 8949 "\x00\x19\x32\x4b\x64\x7d\x96\xaf" 8950 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" 8951 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" 8952 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" 8953 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" 8954 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" 8955 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" 8956 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" 8957 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" 8958 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" 8959 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" 8960 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" 8961 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" 8962 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" 8963 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" 8964 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" 8965 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" 8966 "\x48\x61\x7a\x93\xac\xc5\xde\xf7" 8967 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" 8968 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" 8969 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" 8970 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" 8971 "\x30\x49\x62\x7b\x94\xad\xc6\xdf" 8972 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" 8973 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" 8974 "\x88\xa1\xba\xd3\xec\x05\x1e\x37" 8975 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" 8976 "\x18\x31\x4a\x63\x7c\x95\xae\xc7" 8977 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" 8978 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" 8979 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" 8980 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" 8981 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" 8982 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" 8983 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" 8984 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" 8985 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" 8986 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" 8987 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" 8988 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" 8989 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" 8990 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" 8991 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" 8992 "\x48\x63\x7e\x99\xb4\xcf\xea\x05" 8993 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" 8994 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" 8995 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" 8996 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" 8997 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" 8998 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" 8999 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" 9000 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" 9001 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" 9002 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" 9003 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" 9004 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" 9005 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" 9006 "\x18\x33\x4e\x69\x84\x9f\xba\xd5" 9007 "\xf0\x0b\x26\x41\x5c\x77\x92\xad" 9008 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" 9009 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" 9010 "\x78\x93\xae\xc9\xe4\xff\x1a\x35" 9011 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" 9012 "\x28\x43\x5e\x79\x94\xaf\xca\xe5" 9013 "\x00\x1d\x3a\x57\x74\x91\xae\xcb" 9014 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" 9015 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" 9016 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" 9017 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" 9018 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" 9019 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" 9020 "\x58\x75\x92\xaf\xcc\xe9\x06\x23" 9021 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" 9022 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" 9023 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" 9024 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" 9025 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" 9026 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" 9027 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" 9028 "\x98\xb5\xd2\xef\x0c\x29\x46\x63" 9029 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" 9030 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" 9031 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" 9032 "\x38\x55\x72\x8f\xac\xc9\xe6\x03" 9033 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" 9034 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" 9035 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" 9036 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" 9037 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" 9038 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" 9039 "\x90\xad\xca\xe7\x04\x21\x3e\x5b" 9040 "\x78\x95\xb2\xcf\xec\x09\x26\x43" 9041 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" 9042 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" 9043 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" 9044 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" 9045 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" 9046 "\xf8\x17\x36\x55\x74\x93\xb2\xd1" 9047 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" 9048 "\xe8\x07\x26\x45\x64\x83\xa2\xc1" 9049 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" 9050 "\xd8\xf7\x16\x35\x54\x73\x92\xb1" 9051 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" 9052 "\xc8\xe7\x06\x25\x44\x63\x82\xa1" 9053 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" 9054 "\xb8\xd7\xf6\x15\x34\x53\x72\x91" 9055 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" 9056 "\xa8\xc7\xe6\x05\x24\x43\x62\x81" 9057 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" 9058 "\x98\xb7\xd6\xf5\x14\x33\x52\x71" 9059 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" 9060 "\x88\xa7\xc6\xe5\x04\x23\x42\x61" 9061 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" 9062 "\x78\x97\xb6\xd5\xf4\x13\x32\x51" 9063 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" 9064 "\x68\x87\xa6\xc5\xe4\x03\x22\x41" 9065 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" 9066 "\x58\x77\x96\xb5\xd4\xf3\x12\x31" 9067 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" 9068 "\x48\x67\x86\xa5\xc4\xe3\x02\x21" 9069 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" 9070 "\x38\x57\x76\x95\xb4\xd3\xf2\x11" 9071 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" 9072 "\x28\x47\x66\x85\xa4\xc3\xe2\x01" 9073 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" 9074 "\x18\x37\x56\x75\x94\xb3\xd2\xf1" 9075 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" 9076 "\x08\x27\x46\x65\x84\xa3\xc2\xe1" 9077 "\x00\x21\x42\x63", 9078 .ilen = 4100, 9079 .result = 9080 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0" 9081 "\x4c\x13\xf2\x77\x18\x60\x65\x5e" 9082 "\x29\x01\xce\x98\x55\x53\xf9\x0c" 9083 "\x2a\x08\xd5\x09\xb3\x57\x55\x56" 9084 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0" 9085 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4" 9086 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a" 9087 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90" 9088 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2" 9089 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01" 9090 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91" 9091 "\xbb\xde\x56\x86\xab\x65\x21\x30" 9092 "\x00\x84\x65\x24\xa5\x7d\x85\xb4" 9093 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b" 9094 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c" 9095 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7" 9096 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75" 9097 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2" 9098 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f" 9099 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc" 9100 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5" 9101 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d" 9102 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1" 9103 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4" 9104 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20" 9105 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1" 9106 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15" 9107 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6" 9108 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5" 9109 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21" 9110 "\x45\xff\x3f\xce\x55\xf6\x95\x10" 9111 "\x08\x77\x10\x43\xc6\xf3\x09\xe5" 9112 "\x68\xe7\x3c\xad\x00\x52\x45\x0d" 9113 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d" 9114 "\xe6\x25\xae\x98\x12\x8e\x19\x9c" 9115 "\x81\x68\xb1\x11\xf6\x69\xda\xe3" 9116 "\x62\x08\x18\x7a\x25\x49\x28\xac" 9117 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7" 9118 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a" 9119 "\x98\xf3\x02\x68\x55\x03\x7f\x8a" 9120 "\xe5\x94\x0c\x32\x5c\x07\x82\x63" 9121 "\xaf\x6f\x91\x40\x84\x8e\x52\x25" 9122 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a" 9123 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde" 9124 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1" 9125 "\x15\x47\xc7\x50\x40\x6d\x91\xc5" 9126 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52" 9127 "\x33\xee\x14\x19\x22\x52\x89\xa7" 9128 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a" 9129 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a" 9130 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac" 9131 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99" 9132 "\xca\x88\x63\x3d\x02\x58\x6b\xa9" 9133 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74" 9134 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54" 9135 "\x04\x07\x08\x52\xe6\xc0\xda\x93" 9136 "\x74\x7d\x93\x99\x5d\x78\x68\xa6" 9137 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b" 9138 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04" 9139 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1" 9140 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4" 9141 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4" 9142 "\x54\x26\x72\x9e\x61\xfa\x86\xcf" 9143 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae" 9144 "\x5a\x90\xae\x75\x0a\x74\x18\x89" 9145 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6" 9146 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9" 9147 "\xe8\xfe\x63\x95\x80\x07\xb4\x26" 9148 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb" 9149 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a" 9150 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f" 9151 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec" 9152 "\x33\xe6\x69\xf4\x45\x25\x86\x3a" 9153 "\x22\x94\x4f\x00\x23\x6a\x44\xc2" 9154 "\x49\x97\x33\xab\x36\x14\x0a\x70" 9155 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9" 9156 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2" 9157 "\x94\xf4\x41\x49\xba\x5f\x7b\x07" 9158 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c" 9159 "\xc2\x2e\x37\x40\x49\xc3\x38\x16" 9160 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71" 9161 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99" 9162 "\x47\x13\x28\x73\x3c\xbb\x00\x90" 9163 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71" 9164 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd" 9165 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80" 9166 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d" 9167 "\xad\x04\x07\xae\x22\x90\x4a\x93" 9168 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b" 9169 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b" 9170 "\x2a\x3d\x45\xfe\x03\x61\x10\x85" 9171 "\x17\x69\xa6\x78\xcc\x6c\x87\x49" 9172 "\x53\xf9\x80\x10\xde\x80\xa2\x41" 9173 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56" 9174 "\x00\x71\x51\x06\xa7\xbd\xfb\xef" 9175 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c" 9176 "\x66\xb0\x49\x23\xc4\x47\x10\x0e" 9177 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa" 9178 "\xde\xff\x07\x44\xdd\x56\x1b\xad" 9179 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38" 9180 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4" 9181 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22" 9182 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99" 9183 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69" 9184 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6" 9185 "\x07\x37\x91\x9f\xfd\x67\x50\x3a" 9186 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1" 9187 "\xf9\xe5\x39\xa3\x31\xac\x07\x36" 9188 "\x23\xf8\x66\x18\x14\x28\x34\x0f" 9189 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55" 9190 "\x01\x41\xb2\x75\x8d\xcb\x96\x85" 9191 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20" 9192 "\x44\x1f\xc0\x14\x22\x75\x61\xe8" 9193 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7" 9194 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a" 9195 "\x57\x50\xdb\x17\x41\x65\x4d\xa3" 9196 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39" 9197 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe" 9198 "\x13\x3b\xfa\x29\xda\x9e\x54\x64" 9199 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa" 9200 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe" 9201 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9" 9202 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f" 9203 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d" 9204 "\xca\x8e\x61\x87\xde\xad\x80\xd2" 9205 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5" 9206 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40" 9207 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab" 9208 "\x97\x8a\x19\x89\x44\x40\xc0\xa6" 9209 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67" 9210 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4" 9211 "\x28\x99\xad\x2c\x76\xa3\x78\xc2" 9212 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0" 9213 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3" 9214 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a" 9215 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28" 9216 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc" 9217 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d" 9218 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2" 9219 "\x13\x36\x79\x80\x53\xe8\xd3\xa6" 9220 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e" 9221 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82" 9222 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a" 9223 "\xac\x26\x80\x14\x1d\xc8\x3a\x35" 9224 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a" 9225 "\x35\x58\x79\x8e\x0f\x66\xea\xaf" 9226 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a" 9227 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a" 9228 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a" 9229 "\x54\xda\x24\x6a\xc4\x41\x65\x46" 9230 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0" 9231 "\x2c\x91\xa7\xee\xc4\x81\x07\x86" 9232 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8" 9233 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda" 9234 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4" 9235 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60" 9236 "\xbd\x43\xea\x15\x23\x7f\xb9\xac" 9237 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0" 9238 "\xf3\x19\x31\xbb\x4a\x74\x84\x17" 9239 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb" 9240 "\x80\x38\x15\x52\xcb\x6f\xea\xe5" 9241 "\x73\x9c\xd9\x24\x69\xc6\x95\x32" 9242 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93" 9243 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf" 9244 "\x31\xdd\x93\x75\x78\x8a\x2c\x94" 9245 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba" 9246 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14" 9247 "\xef\xcc\xa7\xec\xab\x43\x09\x18" 9248 "\xd3\xab\x68\xd1\x07\x99\x44\x47" 9249 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b" 9250 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4" 9251 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c" 9252 "\x02\x7c\x86\x54\xbc\x88\xaf\x75" 9253 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96" 9254 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc" 9255 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2" 9256 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b" 9257 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b" 9258 "\x71\x6e\x9f\x58\x15\x67\x72\x87" 9259 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa" 9260 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b" 9261 "\xba\x41\x54\xac\xf0\xfc\x59\x12" 9262 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a" 9263 "\x62\x8d\x83\x2c\x03\xbe\x05\x76" 9264 "\x2e\x53\x49\x97\x94\x33\xae\x40" 9265 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b" 9266 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb" 9267 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3" 9268 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d" 9269 "\xce\x87\xad\xcc\x72\x05\x00\x29" 9270 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2" 9271 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef" 9272 "\x5c\x50\x79\x2a\x56\x56\x71\x8c" 9273 "\xac\xc0\x79\x50\x69\xca\x59\x32" 9274 "\x65\xf2\x54\xe4\x52\x38\x76\xd1" 9275 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11" 9276 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7" 9277 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52" 9278 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c" 9279 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79" 9280 "\x05\x68\x6b\xab\xe3\x41\x49\xed" 9281 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a" 9282 "\x59\xc9\x26\x8b\xef\x30\x4c\x88" 9283 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b" 9284 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92" 9285 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc" 9286 "\xc0\x12\x23\x5f\x5a\x78\x86\x43" 9287 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19" 9288 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89" 9289 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f" 9290 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba" 9291 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43" 9292 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9" 9293 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95" 9294 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4" 9295 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc" 9296 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2" 9297 "\xaf\xf1\x85\x75\x7d\x03\x61\x68" 9298 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77" 9299 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb" 9300 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a" 9301 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf" 9302 "\x85\x75\xe6\x43\xf6\x87\x08\x68" 9303 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23" 9304 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe" 9305 "\x33\x47\x80\x45\x56\xa3\xa7\xd7" 9306 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad" 9307 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93" 9308 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3" 9309 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed" 9310 "\xaf\x55\xeb\x22\xac\x93\x68\x32" 9311 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7" 9312 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78" 9313 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20" 9314 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e" 9315 "\x78\xf1\x2d\x50\x12\x77\xa8\x60" 9316 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a" 9317 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35" 9318 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90" 9319 "\x11\x16\x8f\xa2\xec\x47\xbe\xac" 9320 "\x56\x01\x26\x56\xb1\x8c\xb2\x10" 9321 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20" 9322 "\x63\xf1\x69\x20\x4f\x13\x12\x1f" 9323 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe" 9324 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad" 9325 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1" 9326 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46" 9327 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a" 9328 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3" 9329 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0" 9330 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e" 9331 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4" 9332 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75" 9333 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f" 9334 "\x38\x55\xab\x33\x26\xef\x9f\x43" 9335 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a" 9336 "\x58\x09\x09\x1b\xc3\x65\x46\x46" 9337 "\x1d\xa7\x94\x18\x23\x50\x2c\xca" 9338 "\x2c\x55\x19\x97\x01\x9d\x93\x3b" 9339 "\x63\x86\xf2\x03\x67\x45\xd2\x72" 9340 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11" 9341 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82" 9342 "\x2b\x82\x39\xbd\x69\x54\xed\x62" 9343 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae" 9344 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8" 9345 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1" 9346 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac" 9347 "\x98\x65\x85\xd1\x93\x53\xd3\x7b" 9348 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13" 9349 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2" 9350 "\x84\x74\x15\x65\xb7\xf7\x51\xaf" 9351 "\x55\xad\xa4\xd1\x22\x54\x70\x94" 9352 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a" 9353 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea" 9354 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46" 9355 "\x62\x36\x43\xb2\x82\x15\x75\x50" 9356 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4" 9357 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1" 9358 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7" 9359 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15" 9360 "\x83\xcb\x72\xd0\x33\x79\x00\x2d" 9361 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45" 9362 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d" 9363 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47" 9364 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a" 9365 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b" 9366 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5" 9367 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c" 9368 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49" 9369 "\xe9\xfd\x59\x14\x36\x49\x40\x6d" 9370 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c" 9371 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2" 9372 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35" 9373 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf" 9374 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50" 9375 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b" 9376 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42" 9377 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6" 9378 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e" 9379 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e" 9380 "\x29\x06\x9d\xa4\x51\x3a\x10\x63" 9381 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28" 9382 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c" 9383 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e" 9384 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33" 9385 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18" 9386 "\x37\xa9\x64\x08\x4d\x94\x5a\x88" 9387 "\xca\x35\xce\x81\x02\xe3\x1f\x1b" 9388 "\x89\x1a\x77\x85\xe3\x41\x6d\x32" 9389 "\x42\x19\x23\x7d\xc8\x73\xee\x25" 9390 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f" 9391 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7" 9392 "\x82\x36\x6a\x0c\x46\x22\x15\xe9" 9393 "\xff\x72\x41\x91\x91\x7d\x3a\xb7" 9394 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8" 9395 "\x67\x15\x20\x11\xd6\xb2\x55\x7b" 9396 "\xdb\x87\xee\xef\x55\x89\x2a\x59" 9397 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01" 9398 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd" 9399 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b" 9400 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff" 9401 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25" 9402 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d" 9403 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76" 9404 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5" 9405 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a" 9406 "\xae\xab\x86\x09\x89\xc9\xc2\x40" 9407 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2" 9408 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a" 9409 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39" 9410 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35" 9411 "\xe3\xb1\x18\x45\x67\xf9\x22\x38" 9412 "\x95\xd9\x34\x34\x86\xc6\x41\x94" 9413 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8" 9414 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10" 9415 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4" 9416 "\x09\x90\x0c\xa2\x65\x0c\xad\x74" 9417 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe" 9418 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c" 9419 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b" 9420 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96" 9421 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9" 9422 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d" 9423 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49" 9424 "\xa7\x33\x34\x86\xca\xe4\x96\x23" 9425 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42" 9426 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31" 9427 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4" 9428 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27" 9429 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b" 9430 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c" 9431 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3" 9432 "\xde\x59\xec\x71\xeb\x89\xbb\xd0" 9433 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34" 9434 "\xc3\x1c\xa1\x10\x77\x53\x98\xef" 9435 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26" 9436 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e" 9437 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e" 9438 "\x68\xc8\x7f\x51\x22\x42\xef\x49" 9439 "\xa4\x55\xb6\x36\xac\x09\xc7\x31" 9440 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7" 9441 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45" 9442 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e" 9443 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3" 9444 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c" 9445 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87" 9446 "\x73\x2e\x71\x79\x16\x06\x63\x28" 9447 "\x09\x15\xd8\x89\x38\x38\x3d\xb5" 9448 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d" 9449 "\xc8\xca\xef\xf9\x27\xd8\x07\x86" 9450 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83" 9451 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62" 9452 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3" 9453 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75" 9454 "\x87\x26\xec\x61\x2c\xb4\x0f\x89" 9455 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d" 9456 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25" 9457 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc" 9458 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96" 9459 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2" 9460 "\x94\x98\xe4\x12\x93\x4c\x92\xe0" 9461 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47" 9462 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf" 9463 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03" 9464 "\x19\x07\xaf\x90\x62\x5c\x68\x98" 9465 "\x48\x16\x11\x02\x9d\xee\xb4\x9b" 9466 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b" 9467 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29" 9468 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2" 9469 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74" 9470 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd" 9471 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67" 9472 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f" 9473 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e" 9474 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f" 9475 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33" 9476 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3" 9477 "\xef\x2f\xce\x72\xe5\x24\x60\xc1" 9478 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8" 9479 "\x21\x33\x44\xfe\x7f\x35\x32\x93" 9480 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb" 9481 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec" 9482 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55" 9483 "\x64\xf0\x48\xe5\x57\x99\xee\x75" 9484 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76" 9485 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f" 9486 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39" 9487 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8" 9488 "\x58\xa0\x58\x7d\x33\xe0\x22\x39" 9489 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e" 9490 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5" 9491 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9" 9492 "\x0c\x32\x4b\xb5\x49\x28\xab\x85" 9493 "\x2f\x8e\x01\x36\x38\x52\xd0\xba" 9494 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b" 9495 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1" 9496 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51" 9497 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42" 9498 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03" 9499 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f" 9500 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11" 9501 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54" 9502 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3" 9503 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b" 9504 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a" 9505 "\x81\xe1\x86\x89\x3e\x56\x10\x3c" 9506 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2" 9507 "\x53\xec\xa7\x89\xee\xc8\x56\xb5" 9508 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c" 9509 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8" 9510 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2" 9511 "\x56\xf5\x4e\x01\x35\x27\x45\x77" 9512 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97" 9513 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad" 9514 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5" 9515 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b" 9516 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78" 9517 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc" 9518 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10" 9519 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16" 9520 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98" 9521 "\x23\xab\x23\x3c\xb2\x10\xa0\x53" 9522 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4" 9523 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e" 9524 "\x0f\xd2\x98\x88\x81\x8b\x45\x67" 9525 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e" 9526 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68" 9527 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62" 9528 "\x87\x8f\x03\x21\x28\x95\x0c\x89" 9529 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2" 9530 "\x2f\x57\x6e\x18\x42\x19\x54\x0c" 9531 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2" 9532 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00" 9533 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a" 9534 "\x1b\x31\x05\xe1\x06\x92\xe7\xda" 9535 "\x85\x73\x78\x45\x20\x7f\xae\x13" 9536 "\x7c\x33\x06\x22\xf4\x83\xf9\x35" 9537 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b" 9538 "\xce\x8a\xba\xda\xbe\x28\x08\xf7" 9539 "\xe2\x14\x8c\x71\xea\x72\xf9\x33" 9540 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29" 9541 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8" 9542 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9" 9543 "\x14\x1f\x6c\x68\x98\x39\x89\x7a" 9544 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25" 9545 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68" 9546 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d" 9547 "\x80\x99\xae\xbc\xca\xae\x0f\x2f" 9548 "\x65\x43\x34\x8e\x7e\xac\xd3\x93" 9549 "\x2f\xac\x6d\x14\x3d\x02\x07\x70" 9550 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01" 9551 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd" 9552 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef" 9553 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d" 9554 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b" 9555 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70" 9556 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d" 9557 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3" 9558 "\x14\x89\x5e\x70\x5a\x99\x92\xcd" 9559 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58" 9560 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd" 9561 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8" 9562 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f" 9563 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e" 9564 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85" 9565 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c" 9566 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd" 9567 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c" 9568 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30" 9569 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff" 9570 "\x30\xbc\x22\x81\x7d\x93\x12\xe4" 9571 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e" 9572 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb" 9573 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf" 9574 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c" 9575 "\x6e\x12\x17\x72\x63\x57\xc7\xba" 9576 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80" 9577 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b" 9578 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f" 9579 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2" 9580 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd" 9581 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc" 9582 "\x0c\x24\x43\x31\x40\x57\xf1\x72" 9583 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d" 9584 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7" 9585 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1" 9586 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89" 9587 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d" 9588 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa" 9589 "\x28\x72\x23\xa0\xc2\xad\xad\x1c" 9590 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b" 9591 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8" 9592 "\xaf\xdf\x11\x95", 9593 .rlen = 4100, 9594 .np = 2, 9595 .tap = { 4064, 36 }, 9596 }, 9597 }; 9598 9599 /* 9600 * CTS (Cipher Text Stealing) mode tests 9601 */ 9602 #define CTS_MODE_ENC_TEST_VECTORS 6 9603 #define CTS_MODE_DEC_TEST_VECTORS 6 9604 static struct cipher_testvec cts_mode_enc_tv_template[] = { 9605 { /* from rfc3962 */ 9606 .klen = 16, 9607 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9608 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9609 .ilen = 17, 9610 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9611 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9612 "\x20", 9613 .rlen = 17, 9614 .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" 9615 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" 9616 "\x97", 9617 }, { 9618 .klen = 16, 9619 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9620 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9621 .ilen = 31, 9622 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9623 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9624 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9625 "\x20\x47\x61\x75\x27\x73\x20", 9626 .rlen = 31, 9627 .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" 9628 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" 9629 "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9630 "\xc0\x7b\x25\xe2\x5e\xcf\xe5", 9631 }, { 9632 .klen = 16, 9633 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9634 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9635 .ilen = 32, 9636 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9637 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9638 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9639 "\x20\x47\x61\x75\x27\x73\x20\x43", 9640 .rlen = 32, 9641 .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9642 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" 9643 "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9644 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", 9645 }, { 9646 .klen = 16, 9647 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9648 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9649 .ilen = 47, 9650 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9651 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9652 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9653 "\x20\x47\x61\x75\x27\x73\x20\x43" 9654 "\x68\x69\x63\x6b\x65\x6e\x2c\x20" 9655 "\x70\x6c\x65\x61\x73\x65\x2c", 9656 .rlen = 47, 9657 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9658 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" 9659 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" 9660 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" 9661 "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9662 "\xbe\x7f\xcb\xcc\x98\xeb\xf5", 9663 }, { 9664 .klen = 16, 9665 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9666 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9667 .ilen = 48, 9668 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9669 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9670 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9671 "\x20\x47\x61\x75\x27\x73\x20\x43" 9672 "\x68\x69\x63\x6b\x65\x6e\x2c\x20" 9673 "\x70\x6c\x65\x61\x73\x65\x2c\x20", 9674 .rlen = 48, 9675 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9676 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" 9677 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" 9678 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" 9679 "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9680 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", 9681 }, { 9682 .klen = 16, 9683 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9684 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9685 .ilen = 64, 9686 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9687 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9688 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9689 "\x20\x47\x61\x75\x27\x73\x20\x43" 9690 "\x68\x69\x63\x6b\x65\x6e\x2c\x20" 9691 "\x70\x6c\x65\x61\x73\x65\x2c\x20" 9692 "\x61\x6e\x64\x20\x77\x6f\x6e\x74" 9693 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", 9694 .rlen = 64, 9695 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9696 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" 9697 "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9698 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" 9699 "\x48\x07\xef\xe8\x36\xee\x89\xa5" 9700 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" 9701 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" 9702 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", 9703 } 9704 }; 9705 9706 static struct cipher_testvec cts_mode_dec_tv_template[] = { 9707 { /* from rfc3962 */ 9708 .klen = 16, 9709 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9710 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9711 .rlen = 17, 9712 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9713 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9714 "\x20", 9715 .ilen = 17, 9716 .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" 9717 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" 9718 "\x97", 9719 }, { 9720 .klen = 16, 9721 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9722 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9723 .rlen = 31, 9724 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9725 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9726 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9727 "\x20\x47\x61\x75\x27\x73\x20", 9728 .ilen = 31, 9729 .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" 9730 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" 9731 "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9732 "\xc0\x7b\x25\xe2\x5e\xcf\xe5", 9733 }, { 9734 .klen = 16, 9735 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9736 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9737 .rlen = 32, 9738 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9739 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9740 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9741 "\x20\x47\x61\x75\x27\x73\x20\x43", 9742 .ilen = 32, 9743 .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9744 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" 9745 "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9746 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", 9747 }, { 9748 .klen = 16, 9749 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9750 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9751 .rlen = 47, 9752 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9753 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9754 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9755 "\x20\x47\x61\x75\x27\x73\x20\x43" 9756 "\x68\x69\x63\x6b\x65\x6e\x2c\x20" 9757 "\x70\x6c\x65\x61\x73\x65\x2c", 9758 .ilen = 47, 9759 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9760 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" 9761 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" 9762 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" 9763 "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9764 "\xbe\x7f\xcb\xcc\x98\xeb\xf5", 9765 }, { 9766 .klen = 16, 9767 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9768 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9769 .rlen = 48, 9770 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9771 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9772 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9773 "\x20\x47\x61\x75\x27\x73\x20\x43" 9774 "\x68\x69\x63\x6b\x65\x6e\x2c\x20" 9775 "\x70\x6c\x65\x61\x73\x65\x2c\x20", 9776 .ilen = 48, 9777 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9778 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" 9779 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" 9780 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" 9781 "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9782 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", 9783 }, { 9784 .klen = 16, 9785 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" 9786 "\x74\x65\x72\x69\x79\x61\x6b\x69", 9787 .rlen = 64, 9788 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" 9789 "\x6c\x69\x6b\x65\x20\x74\x68\x65" 9790 "\x20\x47\x65\x6e\x65\x72\x61\x6c" 9791 "\x20\x47\x61\x75\x27\x73\x20\x43" 9792 "\x68\x69\x63\x6b\x65\x6e\x2c\x20" 9793 "\x70\x6c\x65\x61\x73\x65\x2c\x20" 9794 "\x61\x6e\x64\x20\x77\x6f\x6e\x74" 9795 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", 9796 .ilen = 64, 9797 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" 9798 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" 9799 "\x39\x31\x25\x23\xa7\x86\x62\xd5" 9800 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" 9801 "\x48\x07\xef\xe8\x36\xee\x89\xa5" 9802 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" 9803 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" 9804 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", 9805 } 9806 }; 9807 9808 /* 9809 * Compression stuff. 9810 */ 9811 #define COMP_BUF_SIZE 512 9812 9813 struct comp_testvec { 9814 int inlen, outlen; 9815 char input[COMP_BUF_SIZE]; 9816 char output[COMP_BUF_SIZE]; 9817 }; 9818 9819 struct pcomp_testvec { 9820 void *params; 9821 unsigned int paramsize; 9822 int inlen, outlen; 9823 char input[COMP_BUF_SIZE]; 9824 char output[COMP_BUF_SIZE]; 9825 }; 9826 9827 /* 9828 * Deflate test vectors (null-terminated strings). 9829 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL. 9830 */ 9831 9832 #define DEFLATE_COMP_TEST_VECTORS 2 9833 #define DEFLATE_DECOMP_TEST_VECTORS 2 9834 9835 static struct comp_testvec deflate_comp_tv_template[] = { 9836 { 9837 .inlen = 70, 9838 .outlen = 38, 9839 .input = "Join us now and share the software " 9840 "Join us now and share the software ", 9841 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" 9842 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" 9843 "\x28\xce\x48\x2c\x4a\x55\x28\xc9" 9844 "\x48\x55\x28\xce\x4f\x2b\x29\x07" 9845 "\x71\xbc\x08\x2b\x01\x00", 9846 }, { 9847 .inlen = 191, 9848 .outlen = 122, 9849 .input = "This document describes a compression method based on the DEFLATE" 9850 "compression algorithm. This document defines the application of " 9851 "the DEFLATE algorithm to the IP Payload Compression Protocol.", 9852 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" 9853 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" 9854 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" 9855 "\x24\xdb\x67\xd9\x47\xc1\xef\x49" 9856 "\x68\x12\x51\xae\x76\x67\xd6\x27" 9857 "\x19\x88\x1a\xde\x85\xab\x21\xf2" 9858 "\x08\x5d\x16\x1e\x20\x04\x2d\xad" 9859 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" 9860 "\x42\x83\x23\xb6\x6c\x89\x71\x9b" 9861 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" 9862 "\xed\x62\xa9\x4c\x80\xff\x13\xaf" 9863 "\x52\x37\xed\x0e\x52\x6b\x59\x02" 9864 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" 9865 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" 9866 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" 9867 "\xfa\x02", 9868 }, 9869 }; 9870 9871 static struct comp_testvec deflate_decomp_tv_template[] = { 9872 { 9873 .inlen = 122, 9874 .outlen = 191, 9875 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" 9876 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" 9877 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" 9878 "\x24\xdb\x67\xd9\x47\xc1\xef\x49" 9879 "\x68\x12\x51\xae\x76\x67\xd6\x27" 9880 "\x19\x88\x1a\xde\x85\xab\x21\xf2" 9881 "\x08\x5d\x16\x1e\x20\x04\x2d\xad" 9882 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" 9883 "\x42\x83\x23\xb6\x6c\x89\x71\x9b" 9884 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" 9885 "\xed\x62\xa9\x4c\x80\xff\x13\xaf" 9886 "\x52\x37\xed\x0e\x52\x6b\x59\x02" 9887 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" 9888 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" 9889 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" 9890 "\xfa\x02", 9891 .output = "This document describes a compression method based on the DEFLATE" 9892 "compression algorithm. This document defines the application of " 9893 "the DEFLATE algorithm to the IP Payload Compression Protocol.", 9894 }, { 9895 .inlen = 38, 9896 .outlen = 70, 9897 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" 9898 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" 9899 "\x28\xce\x48\x2c\x4a\x55\x28\xc9" 9900 "\x48\x55\x28\xce\x4f\x2b\x29\x07" 9901 "\x71\xbc\x08\x2b\x01\x00", 9902 .output = "Join us now and share the software " 9903 "Join us now and share the software ", 9904 }, 9905 }; 9906 9907 #define ZLIB_COMP_TEST_VECTORS 2 9908 #define ZLIB_DECOMP_TEST_VECTORS 2 9909 9910 static const struct { 9911 struct nlattr nla; 9912 int val; 9913 } deflate_comp_params[] = { 9914 { 9915 .nla = { 9916 .nla_len = NLA_HDRLEN + sizeof(int), 9917 .nla_type = ZLIB_COMP_LEVEL, 9918 }, 9919 .val = Z_DEFAULT_COMPRESSION, 9920 }, { 9921 .nla = { 9922 .nla_len = NLA_HDRLEN + sizeof(int), 9923 .nla_type = ZLIB_COMP_METHOD, 9924 }, 9925 .val = Z_DEFLATED, 9926 }, { 9927 .nla = { 9928 .nla_len = NLA_HDRLEN + sizeof(int), 9929 .nla_type = ZLIB_COMP_WINDOWBITS, 9930 }, 9931 .val = -11, 9932 }, { 9933 .nla = { 9934 .nla_len = NLA_HDRLEN + sizeof(int), 9935 .nla_type = ZLIB_COMP_MEMLEVEL, 9936 }, 9937 .val = MAX_MEM_LEVEL, 9938 }, { 9939 .nla = { 9940 .nla_len = NLA_HDRLEN + sizeof(int), 9941 .nla_type = ZLIB_COMP_STRATEGY, 9942 }, 9943 .val = Z_DEFAULT_STRATEGY, 9944 } 9945 }; 9946 9947 static const struct { 9948 struct nlattr nla; 9949 int val; 9950 } deflate_decomp_params[] = { 9951 { 9952 .nla = { 9953 .nla_len = NLA_HDRLEN + sizeof(int), 9954 .nla_type = ZLIB_DECOMP_WINDOWBITS, 9955 }, 9956 .val = -11, 9957 } 9958 }; 9959 9960 static struct pcomp_testvec zlib_comp_tv_template[] = { 9961 { 9962 .params = &deflate_comp_params, 9963 .paramsize = sizeof(deflate_comp_params), 9964 .inlen = 70, 9965 .outlen = 38, 9966 .input = "Join us now and share the software " 9967 "Join us now and share the software ", 9968 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" 9969 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" 9970 "\x28\xce\x48\x2c\x4a\x55\x28\xc9" 9971 "\x48\x55\x28\xce\x4f\x2b\x29\x07" 9972 "\x71\xbc\x08\x2b\x01\x00", 9973 }, { 9974 .params = &deflate_comp_params, 9975 .paramsize = sizeof(deflate_comp_params), 9976 .inlen = 191, 9977 .outlen = 122, 9978 .input = "This document describes a compression method based on the DEFLATE" 9979 "compression algorithm. This document defines the application of " 9980 "the DEFLATE algorithm to the IP Payload Compression Protocol.", 9981 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" 9982 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" 9983 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" 9984 "\x24\xdb\x67\xd9\x47\xc1\xef\x49" 9985 "\x68\x12\x51\xae\x76\x67\xd6\x27" 9986 "\x19\x88\x1a\xde\x85\xab\x21\xf2" 9987 "\x08\x5d\x16\x1e\x20\x04\x2d\xad" 9988 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" 9989 "\x42\x83\x23\xb6\x6c\x89\x71\x9b" 9990 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" 9991 "\xed\x62\xa9\x4c\x80\xff\x13\xaf" 9992 "\x52\x37\xed\x0e\x52\x6b\x59\x02" 9993 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" 9994 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" 9995 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" 9996 "\xfa\x02", 9997 }, 9998 }; 9999 10000 static struct pcomp_testvec zlib_decomp_tv_template[] = { 10001 { 10002 .params = &deflate_decomp_params, 10003 .paramsize = sizeof(deflate_decomp_params), 10004 .inlen = 122, 10005 .outlen = 191, 10006 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" 10007 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" 10008 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" 10009 "\x24\xdb\x67\xd9\x47\xc1\xef\x49" 10010 "\x68\x12\x51\xae\x76\x67\xd6\x27" 10011 "\x19\x88\x1a\xde\x85\xab\x21\xf2" 10012 "\x08\x5d\x16\x1e\x20\x04\x2d\xad" 10013 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" 10014 "\x42\x83\x23\xb6\x6c\x89\x71\x9b" 10015 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" 10016 "\xed\x62\xa9\x4c\x80\xff\x13\xaf" 10017 "\x52\x37\xed\x0e\x52\x6b\x59\x02" 10018 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" 10019 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" 10020 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" 10021 "\xfa\x02", 10022 .output = "This document describes a compression method based on the DEFLATE" 10023 "compression algorithm. This document defines the application of " 10024 "the DEFLATE algorithm to the IP Payload Compression Protocol.", 10025 }, { 10026 .params = &deflate_decomp_params, 10027 .paramsize = sizeof(deflate_decomp_params), 10028 .inlen = 38, 10029 .outlen = 70, 10030 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" 10031 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" 10032 "\x28\xce\x48\x2c\x4a\x55\x28\xc9" 10033 "\x48\x55\x28\xce\x4f\x2b\x29\x07" 10034 "\x71\xbc\x08\x2b\x01\x00", 10035 .output = "Join us now and share the software " 10036 "Join us now and share the software ", 10037 }, 10038 }; 10039 10040 /* 10041 * LZO test vectors (null-terminated strings). 10042 */ 10043 #define LZO_COMP_TEST_VECTORS 2 10044 #define LZO_DECOMP_TEST_VECTORS 2 10045 10046 static struct comp_testvec lzo_comp_tv_template[] = { 10047 { 10048 .inlen = 70, 10049 .outlen = 46, 10050 .input = "Join us now and share the software " 10051 "Join us now and share the software ", 10052 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" 10053 "\x73\x20\x6e\x6f\x77\x20\x61\x6e" 10054 "\x64\x20\x73\x68\x61\x72\x65\x20" 10055 "\x74\x68\x65\x20\x73\x6f\x66\x74" 10056 "\x77\x70\x01\x01\x4a\x6f\x69\x6e" 10057 "\x3d\x88\x00\x11\x00\x00", 10058 }, { 10059 .inlen = 159, 10060 .outlen = 133, 10061 .input = "This document describes a compression method based on the LZO " 10062 "compression algorithm. This document defines the application of " 10063 "the LZO algorithm used in UBIFS.", 10064 .output = "\x00\x2b\x54\x68\x69\x73\x20\x64" 10065 "\x6f\x63\x75\x6d\x65\x6e\x74\x20" 10066 "\x64\x65\x73\x63\x72\x69\x62\x65" 10067 "\x73\x20\x61\x20\x63\x6f\x6d\x70" 10068 "\x72\x65\x73\x73\x69\x6f\x6e\x20" 10069 "\x6d\x65\x74\x68\x6f\x64\x20\x62" 10070 "\x61\x73\x65\x64\x20\x6f\x6e\x20" 10071 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b" 10072 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72" 10073 "\x69\x74\x68\x6d\x2e\x20\x20\x54" 10074 "\x68\x69\x73\x2a\x54\x01\x02\x66" 10075 "\x69\x6e\x65\x73\x94\x06\x05\x61" 10076 "\x70\x70\x6c\x69\x63\x61\x74\x76" 10077 "\x0a\x6f\x66\x88\x02\x60\x09\x27" 10078 "\xf0\x00\x0c\x20\x75\x73\x65\x64" 10079 "\x20\x69\x6e\x20\x55\x42\x49\x46" 10080 "\x53\x2e\x11\x00\x00", 10081 }, 10082 }; 10083 10084 static struct comp_testvec lzo_decomp_tv_template[] = { 10085 { 10086 .inlen = 133, 10087 .outlen = 159, 10088 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64" 10089 "\x6f\x63\x75\x6d\x65\x6e\x74\x20" 10090 "\x64\x65\x73\x63\x72\x69\x62\x65" 10091 "\x73\x20\x61\x20\x63\x6f\x6d\x70" 10092 "\x72\x65\x73\x73\x69\x6f\x6e\x20" 10093 "\x6d\x65\x74\x68\x6f\x64\x20\x62" 10094 "\x61\x73\x65\x64\x20\x6f\x6e\x20" 10095 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b" 10096 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72" 10097 "\x69\x74\x68\x6d\x2e\x20\x20\x54" 10098 "\x68\x69\x73\x2a\x54\x01\x02\x66" 10099 "\x69\x6e\x65\x73\x94\x06\x05\x61" 10100 "\x70\x70\x6c\x69\x63\x61\x74\x76" 10101 "\x0a\x6f\x66\x88\x02\x60\x09\x27" 10102 "\xf0\x00\x0c\x20\x75\x73\x65\x64" 10103 "\x20\x69\x6e\x20\x55\x42\x49\x46" 10104 "\x53\x2e\x11\x00\x00", 10105 .output = "This document describes a compression method based on the LZO " 10106 "compression algorithm. This document defines the application of " 10107 "the LZO algorithm used in UBIFS.", 10108 }, { 10109 .inlen = 46, 10110 .outlen = 70, 10111 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" 10112 "\x73\x20\x6e\x6f\x77\x20\x61\x6e" 10113 "\x64\x20\x73\x68\x61\x72\x65\x20" 10114 "\x74\x68\x65\x20\x73\x6f\x66\x74" 10115 "\x77\x70\x01\x01\x4a\x6f\x69\x6e" 10116 "\x3d\x88\x00\x11\x00\x00", 10117 .output = "Join us now and share the software " 10118 "Join us now and share the software ", 10119 }, 10120 }; 10121 10122 /* 10123 * Michael MIC test vectors from IEEE 802.11i 10124 */ 10125 #define MICHAEL_MIC_TEST_VECTORS 6 10126 10127 static struct hash_testvec michael_mic_tv_template[] = { 10128 { 10129 .key = "\x00\x00\x00\x00\x00\x00\x00\x00", 10130 .ksize = 8, 10131 .plaintext = zeroed_string, 10132 .psize = 0, 10133 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", 10134 }, 10135 { 10136 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", 10137 .ksize = 8, 10138 .plaintext = "M", 10139 .psize = 1, 10140 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f", 10141 }, 10142 { 10143 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f", 10144 .ksize = 8, 10145 .plaintext = "Mi", 10146 .psize = 2, 10147 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", 10148 }, 10149 { 10150 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", 10151 .ksize = 8, 10152 .plaintext = "Mic", 10153 .psize = 3, 10154 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", 10155 }, 10156 { 10157 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", 10158 .ksize = 8, 10159 .plaintext = "Mich", 10160 .psize = 4, 10161 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86", 10162 }, 10163 { 10164 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86", 10165 .ksize = 8, 10166 .plaintext = "Michael", 10167 .psize = 7, 10168 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46", 10169 } 10170 }; 10171 10172 /* 10173 * CRC32C test vectors 10174 */ 10175 #define CRC32C_TEST_VECTORS 14 10176 10177 static struct hash_testvec crc32c_tv_template[] = { 10178 { 10179 .psize = 0, 10180 .digest = "\x00\x00\x00\x00", 10181 }, 10182 { 10183 .key = "\x87\xa9\xcb\xed", 10184 .ksize = 4, 10185 .psize = 0, 10186 .digest = "\x78\x56\x34\x12", 10187 }, 10188 { 10189 .key = "\xff\xff\xff\xff", 10190 .ksize = 4, 10191 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" 10192 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" 10193 "\x11\x12\x13\x14\x15\x16\x17\x18" 10194 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" 10195 "\x21\x22\x23\x24\x25\x26\x27\x28", 10196 .psize = 40, 10197 .digest = "\x7f\x15\x2c\x0e", 10198 }, 10199 { 10200 .key = "\xff\xff\xff\xff", 10201 .ksize = 4, 10202 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" 10203 "\x31\x32\x33\x34\x35\x36\x37\x38" 10204 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" 10205 "\x41\x42\x43\x44\x45\x46\x47\x48" 10206 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", 10207 .psize = 40, 10208 .digest = "\xf6\xeb\x80\xe9", 10209 }, 10210 { 10211 .key = "\xff\xff\xff\xff", 10212 .ksize = 4, 10213 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" 10214 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" 10215 "\x61\x62\x63\x64\x65\x66\x67\x68" 10216 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" 10217 "\x71\x72\x73\x74\x75\x76\x77\x78", 10218 .psize = 40, 10219 .digest = "\xed\xbd\x74\xde", 10220 }, 10221 { 10222 .key = "\xff\xff\xff\xff", 10223 .ksize = 4, 10224 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" 10225 "\x81\x82\x83\x84\x85\x86\x87\x88" 10226 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" 10227 "\x91\x92\x93\x94\x95\x96\x97\x98" 10228 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", 10229 .psize = 40, 10230 .digest = "\x62\xc8\x79\xd5", 10231 }, 10232 { 10233 .key = "\xff\xff\xff\xff", 10234 .ksize = 4, 10235 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" 10236 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" 10237 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" 10238 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" 10239 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", 10240 .psize = 40, 10241 .digest = "\xd0\x9a\x97\xba", 10242 }, 10243 { 10244 .key = "\xff\xff\xff\xff", 10245 .ksize = 4, 10246 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" 10247 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" 10248 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" 10249 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" 10250 "\xe9\xea\xeb\xec\xed\xee\xef\xf0", 10251 .psize = 40, 10252 .digest = "\x13\xd9\x29\x2b", 10253 }, 10254 { 10255 .key = "\x80\xea\xd3\xf1", 10256 .ksize = 4, 10257 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" 10258 "\x31\x32\x33\x34\x35\x36\x37\x38" 10259 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" 10260 "\x41\x42\x43\x44\x45\x46\x47\x48" 10261 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", 10262 .psize = 40, 10263 .digest = "\x0c\xb5\xe2\xa2", 10264 }, 10265 { 10266 .key = "\xf3\x4a\x1d\x5d", 10267 .ksize = 4, 10268 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" 10269 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" 10270 "\x61\x62\x63\x64\x65\x66\x67\x68" 10271 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" 10272 "\x71\x72\x73\x74\x75\x76\x77\x78", 10273 .psize = 40, 10274 .digest = "\xd1\x7f\xfb\xa6", 10275 }, 10276 { 10277 .key = "\x2e\x80\x04\x59", 10278 .ksize = 4, 10279 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" 10280 "\x81\x82\x83\x84\x85\x86\x87\x88" 10281 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" 10282 "\x91\x92\x93\x94\x95\x96\x97\x98" 10283 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", 10284 .psize = 40, 10285 .digest = "\x59\x33\xe6\x7a", 10286 }, 10287 { 10288 .key = "\xa6\xcc\x19\x85", 10289 .ksize = 4, 10290 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" 10291 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" 10292 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" 10293 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" 10294 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", 10295 .psize = 40, 10296 .digest = "\xbe\x03\x01\xd2", 10297 }, 10298 { 10299 .key = "\x41\xfc\xfe\x2d", 10300 .ksize = 4, 10301 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" 10302 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" 10303 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" 10304 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" 10305 "\xe9\xea\xeb\xec\xed\xee\xef\xf0", 10306 .psize = 40, 10307 .digest = "\x75\xd3\xc5\x24", 10308 }, 10309 { 10310 .key = "\xff\xff\xff\xff", 10311 .ksize = 4, 10312 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" 10313 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" 10314 "\x11\x12\x13\x14\x15\x16\x17\x18" 10315 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" 10316 "\x21\x22\x23\x24\x25\x26\x27\x28" 10317 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" 10318 "\x31\x32\x33\x34\x35\x36\x37\x38" 10319 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" 10320 "\x41\x42\x43\x44\x45\x46\x47\x48" 10321 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" 10322 "\x51\x52\x53\x54\x55\x56\x57\x58" 10323 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" 10324 "\x61\x62\x63\x64\x65\x66\x67\x68" 10325 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" 10326 "\x71\x72\x73\x74\x75\x76\x77\x78" 10327 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" 10328 "\x81\x82\x83\x84\x85\x86\x87\x88" 10329 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" 10330 "\x91\x92\x93\x94\x95\x96\x97\x98" 10331 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" 10332 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" 10333 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" 10334 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" 10335 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" 10336 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" 10337 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" 10338 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" 10339 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" 10340 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" 10341 "\xe9\xea\xeb\xec\xed\xee\xef\xf0", 10342 .psize = 240, 10343 .digest = "\x75\xd3\xc5\x24", 10344 .np = 2, 10345 .tap = { 31, 209 } 10346 }, 10347 }; 10348 10349 #endif /* _CRYPTO_TESTMGR_H */ 10350