aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-11-13 05:02:30 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2012-12-06 04:16:28 -0500
commit6726ec4268d6bc41444177acb978ccd838658b38 (patch)
tree8dad4adb0465284a389c2d37100a5c3d7368a0db /crypto
parentf56349bdd62480ca73e318aff510868a4be7e769 (diff)
crypto: testmgr - add larger crc32c test vector to test FPU path in crc32c_intel
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/testmgr.h267
1 files changed, 264 insertions, 3 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 17db4a9c726..189aeb6c27f 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -41,7 +41,7 @@ struct hash_testvec {
41 char *plaintext; 41 char *plaintext;
42 char *digest; 42 char *digest;
43 unsigned char tap[MAX_TAP]; 43 unsigned char tap[MAX_TAP];
44 unsigned char psize; 44 unsigned short psize;
45 unsigned char np; 45 unsigned char np;
46 unsigned char ksize; 46 unsigned char ksize;
47}; 47};
@@ -25214,7 +25214,7 @@ static struct hash_testvec michael_mic_tv_template[] = {
25214/* 25214/*
25215 * CRC32C test vectors 25215 * CRC32C test vectors
25216 */ 25216 */
25217#define CRC32C_TEST_VECTORS 14 25217#define CRC32C_TEST_VECTORS 15
25218 25218
25219static struct hash_testvec crc32c_tv_template[] = { 25219static struct hash_testvec crc32c_tv_template[] = {
25220 { 25220 {
@@ -25385,7 +25385,268 @@ static struct hash_testvec crc32c_tv_template[] = {
25385 .digest = "\x75\xd3\xc5\x24", 25385 .digest = "\x75\xd3\xc5\x24",
25386 .np = 2, 25386 .np = 2,
25387 .tap = { 31, 209 } 25387 .tap = { 31, 209 }
25388 }, 25388 }, {
25389 .key = "\xff\xff\xff\xff",
25390 .ksize = 4,
25391 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
25392 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
25393 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
25394 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
25395 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
25396 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
25397 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
25398 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
25399 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
25400 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
25401 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
25402 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
25403 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
25404 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
25405 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
25406 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
25407 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
25408 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
25409 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
25410 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
25411 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
25412 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
25413 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
25414 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
25415 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
25416 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
25417 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
25418 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
25419 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
25420 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
25421 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
25422 "\x47\xde\x75\x0c\x80\x17\xae\x22"
25423 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
25424 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
25425 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
25426 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
25427 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
25428 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
25429 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
25430 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
25431 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
25432 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
25433 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
25434 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
25435 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
25436 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
25437 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
25438 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
25439 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
25440 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
25441 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
25442 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
25443 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
25444 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
25445 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
25446 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
25447 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
25448 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
25449 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
25450 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
25451 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
25452 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
25453 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
25454 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
25455 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
25456 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
25457 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
25458 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
25459 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
25460 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
25461 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
25462 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
25463 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
25464 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
25465 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
25466 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
25467 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
25468 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
25469 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
25470 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
25471 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
25472 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
25473 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
25474 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
25475 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
25476 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
25477 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
25478 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
25479 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
25480 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
25481 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
25482 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
25483 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
25484 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
25485 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
25486 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
25487 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
25488 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
25489 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
25490 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
25491 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
25492 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
25493 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
25494 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
25495 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
25496 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
25497 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
25498 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
25499 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
25500 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
25501 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
25502 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
25503 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
25504 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
25505 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
25506 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
25507 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
25508 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
25509 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
25510 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
25511 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
25512 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
25513 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
25514 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
25515 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
25516 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
25517 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
25518 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
25519 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
25520 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
25521 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
25522 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
25523 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
25524 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
25525 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
25526 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
25527 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
25528 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
25529 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
25530 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
25531 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
25532 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
25533 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
25534 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
25535 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
25536 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
25537 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
25538 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
25539 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
25540 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
25541 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
25542 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
25543 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
25544 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
25545 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
25546 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
25547 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
25548 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
25549 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
25550 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
25551 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
25552 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
25553 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
25554 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
25555 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
25556 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
25557 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
25558 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
25559 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
25560 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
25561 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
25562 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
25563 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
25564 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
25565 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
25566 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
25567 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
25568 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
25569 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
25570 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
25571 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
25572 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
25573 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
25574 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
25575 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
25576 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
25577 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
25578 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
25579 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
25580 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
25581 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
25582 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
25583 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
25584 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
25585 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
25586 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
25587 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
25588 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
25589 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
25590 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
25591 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
25592 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
25593 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
25594 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
25595 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
25596 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
25597 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
25598 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
25599 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
25600 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
25601 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
25602 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
25603 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
25604 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
25605 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
25606 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
25607 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
25608 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
25609 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
25610 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
25611 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
25612 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
25613 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
25614 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
25615 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
25616 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
25617 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
25618 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
25619 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
25620 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
25621 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
25622 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
25623 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
25624 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
25625 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
25626 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
25627 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
25628 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
25629 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
25630 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
25631 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
25632 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
25633 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
25634 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
25635 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
25636 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
25637 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
25638 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
25639 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
25640 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
25641 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
25642 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
25643 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
25644 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
25645 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
25646 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
25647 .psize = 2048,
25648 .digest = "\xec\x26\x4d\x95",
25649 }
25389}; 25650};
25390 25651
25391/* 25652/*