diff options
| author | Eric Biggers <ebiggers@google.com> | 2018-02-14 13:42:22 -0500 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-22 09:16:56 -0500 |
| commit | c3bb521bb6ac3023ae236a3a361f951f8d78ecc4 (patch) | |
| tree | 35c5492197ef422d76475040961a021d4339f894 /crypto/testmgr.h | |
| parent | ede9622162fac42eacde231d64e94c926f4be45d (diff) | |
crypto: speck - add test vectors for Speck128-XTS
Add test vectors for Speck128-XTS, generated in userspace using C code.
The inputs were borrowed from the AES-XTS test vectors.
Both xts(speck128-generic) and xts-speck128-neon pass these tests.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
| -rw-r--r-- | crypto/testmgr.h | 687 |
1 files changed, 687 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 6b15a8ab743b..68f2502d6f0a 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h | |||
| @@ -14411,6 +14411,693 @@ static const struct cipher_testvec speck128_dec_tv_template[] = { | |||
| 14411 | }, | 14411 | }, |
| 14412 | }; | 14412 | }; |
| 14413 | 14413 | ||
| 14414 | /* | ||
| 14415 | * Speck128-XTS test vectors, taken from the AES-XTS test vectors with the | ||
| 14416 | * result recomputed with Speck128 as the cipher | ||
| 14417 | */ | ||
| 14418 | |||
| 14419 | static const struct cipher_testvec speck128_xts_enc_tv_template[] = { | ||
| 14420 | { | ||
| 14421 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14422 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14423 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14424 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14425 | .klen = 32, | ||
| 14426 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14427 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14428 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14429 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14430 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14431 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14432 | .ilen = 32, | ||
| 14433 | .result = "\xbe\xa0\xe7\x03\xd7\xfe\xab\x62" | ||
| 14434 | "\x3b\x99\x4a\x64\x74\x77\xac\xed" | ||
| 14435 | "\xd8\xf4\xa6\xcf\xae\xb9\x07\x42" | ||
| 14436 | "\x51\xd9\xb6\x1d\xe0\x5e\xbc\x54", | ||
| 14437 | .rlen = 32, | ||
| 14438 | }, { | ||
| 14439 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
| 14440 | "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
| 14441 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
| 14442 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
| 14443 | .klen = 32, | ||
| 14444 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
| 14445 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14446 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14447 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14448 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14449 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
| 14450 | .ilen = 32, | ||
| 14451 | .result = "\xfb\x53\x81\x75\x6f\x9f\x34\xad" | ||
| 14452 | "\x7e\x01\xed\x7b\xcc\xda\x4e\x4a" | ||
| 14453 | "\xd4\x84\xa4\x53\xd5\x88\x73\x1b" | ||
| 14454 | "\xfd\xcb\xae\x0d\xf3\x04\xee\xe6", | ||
| 14455 | .rlen = 32, | ||
| 14456 | }, { | ||
| 14457 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" | ||
| 14458 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" | ||
| 14459 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
| 14460 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
| 14461 | .klen = 32, | ||
| 14462 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
| 14463 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14464 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14465 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14466 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14467 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
| 14468 | .ilen = 32, | ||
| 14469 | .result = "\x21\x52\x84\x15\xd1\xf7\x21\x55" | ||
| 14470 | "\xd9\x75\x4a\xd3\xc5\xdb\x9f\x7d" | ||
| 14471 | "\xda\x63\xb2\xf1\x82\xb0\x89\x59" | ||
| 14472 | "\x86\xd4\xaa\xaa\xdd\xff\x4f\x92", | ||
| 14473 | .rlen = 32, | ||
| 14474 | }, { | ||
| 14475 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
| 14476 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
| 14477 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
| 14478 | "\x23\x84\x62\x64\x33\x83\x27\x95", | ||
| 14479 | .klen = 32, | ||
| 14480 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14481 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14482 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 14483 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 14484 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 14485 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 14486 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 14487 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 14488 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 14489 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 14490 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 14491 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 14492 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 14493 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 14494 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 14495 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 14496 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 14497 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 14498 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 14499 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 14500 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 14501 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 14502 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 14503 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 14504 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 14505 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 14506 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 14507 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 14508 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 14509 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 14510 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 14511 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 14512 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 14513 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
| 14514 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 14515 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 14516 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 14517 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 14518 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 14519 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 14520 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 14521 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 14522 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 14523 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 14524 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 14525 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 14526 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 14527 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 14528 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 14529 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 14530 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 14531 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 14532 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 14533 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 14534 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 14535 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 14536 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 14537 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 14538 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 14539 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 14540 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 14541 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 14542 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 14543 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 14544 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 14545 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
| 14546 | .ilen = 512, | ||
| 14547 | .result = "\x57\xb5\xf8\x71\x6e\x6d\xdd\x82" | ||
| 14548 | "\x53\xd0\xed\x2d\x30\xc1\x20\xef" | ||
| 14549 | "\x70\x67\x5e\xff\x09\x70\xbb\xc1" | ||
| 14550 | "\x3a\x7b\x48\x26\xd9\x0b\xf4\x48" | ||
| 14551 | "\xbe\xce\xb1\xc7\xb2\x67\xc4\xa7" | ||
| 14552 | "\x76\xf8\x36\x30\xb7\xb4\x9a\xd9" | ||
| 14553 | "\xf5\x9d\xd0\x7b\xc1\x06\x96\x44" | ||
| 14554 | "\x19\xc5\x58\x84\x63\xb9\x12\x68" | ||
| 14555 | "\x68\xc7\xaa\x18\x98\xf2\x1f\x5c" | ||
| 14556 | "\x39\xa6\xd8\x32\x2b\xc3\x51\xfd" | ||
| 14557 | "\x74\x79\x2e\xb4\x44\xd7\x69\xc4" | ||
| 14558 | "\xfc\x29\xe6\xed\x26\x1e\xa6\x9d" | ||
| 14559 | "\x1c\xbe\x00\x0e\x7f\x3a\xca\xfb" | ||
| 14560 | "\x6d\x13\x65\xa0\xf9\x31\x12\xe2" | ||
| 14561 | "\x26\xd1\xec\x2b\x0a\x8b\x59\x99" | ||
| 14562 | "\xa7\x49\xa0\x0e\x09\x33\x85\x50" | ||
| 14563 | "\xc3\x23\xca\x7a\xdd\x13\x45\x5f" | ||
| 14564 | "\xde\x4c\xa7\xcb\x00\x8a\x66\x6f" | ||
| 14565 | "\xa2\xb6\xb1\x2e\xe1\xa0\x18\xf6" | ||
| 14566 | "\xad\xf3\xbd\xeb\xc7\xef\x55\x4f" | ||
| 14567 | "\x79\x91\x8d\x36\x13\x7b\xd0\x4a" | ||
| 14568 | "\x6c\x39\xfb\x53\xb8\x6f\x02\x51" | ||
| 14569 | "\xa5\x20\xac\x24\x1c\x73\x59\x73" | ||
| 14570 | "\x58\x61\x3a\x87\x58\xb3\x20\x56" | ||
| 14571 | "\x39\x06\x2b\x4d\xd3\x20\x2b\x89" | ||
| 14572 | "\x3f\xa2\xf0\x96\xeb\x7f\xa4\xcd" | ||
| 14573 | "\x11\xae\xbd\xcb\x3a\xb4\xd9\x91" | ||
| 14574 | "\x09\x35\x71\x50\x65\xac\x92\xe3" | ||
| 14575 | "\x7b\x32\xc0\x7a\xdd\xd4\xc3\x92" | ||
| 14576 | "\x6f\xeb\x79\xde\x6f\xd3\x25\xc9" | ||
| 14577 | "\xcd\x63\xf5\x1e\x7a\x3b\x26\x9d" | ||
| 14578 | "\x77\x04\x80\xa9\xbf\x38\xb5\xbd" | ||
| 14579 | "\xb8\x05\x07\xbd\xfd\xab\x7b\xf8" | ||
| 14580 | "\x2a\x26\xcc\x49\x14\x6d\x55\x01" | ||
| 14581 | "\x06\x94\xd8\xb2\x2d\x53\x83\x1b" | ||
| 14582 | "\x8f\xd4\xdd\x57\x12\x7e\x18\xba" | ||
| 14583 | "\x8e\xe2\x4d\x80\xef\x7e\x6b\x9d" | ||
| 14584 | "\x24\xa9\x60\xa4\x97\x85\x86\x2a" | ||
| 14585 | "\x01\x00\x09\xf1\xcb\x4a\x24\x1c" | ||
| 14586 | "\xd8\xf6\xe6\x5b\xe7\x5d\xf2\xc4" | ||
| 14587 | "\x97\x1c\x10\xc6\x4d\x66\x4f\x98" | ||
| 14588 | "\x87\x30\xac\xd5\xea\x73\x49\x10" | ||
| 14589 | "\x80\xea\xe5\x5f\x4d\x5f\x03\x33" | ||
| 14590 | "\x66\x02\x35\x3d\x60\x06\x36\x4f" | ||
| 14591 | "\x14\x1c\xd8\x07\x1f\x78\xd0\xf8" | ||
| 14592 | "\x4f\x6c\x62\x7c\x15\xa5\x7c\x28" | ||
| 14593 | "\x7c\xcc\xeb\x1f\xd1\x07\x90\x93" | ||
| 14594 | "\x7e\xc2\xa8\x3a\x80\xc0\xf5\x30" | ||
| 14595 | "\xcc\x75\xcf\x16\x26\xa9\x26\x3b" | ||
| 14596 | "\xe7\x68\x2f\x15\x21\x5b\xe4\x00" | ||
| 14597 | "\xbd\x48\x50\xcd\x75\x70\xc4\x62" | ||
| 14598 | "\xbb\x41\xfb\x89\x4a\x88\x3b\x3b" | ||
| 14599 | "\x51\x66\x02\x69\x04\x97\x36\xd4" | ||
| 14600 | "\x75\xae\x0b\xa3\x42\xf8\xca\x79" | ||
| 14601 | "\x8f\x93\xe9\xcc\x38\xbd\xd6\xd2" | ||
| 14602 | "\xf9\x70\x4e\xc3\x6a\x8e\x25\xbd" | ||
| 14603 | "\xea\x15\x5a\xa0\x85\x7e\x81\x0d" | ||
| 14604 | "\x03\xe7\x05\x39\xf5\x05\x26\xee" | ||
| 14605 | "\xec\xaa\x1f\x3d\xc9\x98\x76\x01" | ||
| 14606 | "\x2c\xf4\xfc\xa3\x88\x77\x38\xc4" | ||
| 14607 | "\x50\x65\x50\x6d\x04\x1f\xdf\x5a" | ||
| 14608 | "\xaa\xf2\x01\xa9\xc1\x8d\xee\xca" | ||
| 14609 | "\x47\x26\xef\x39\xb8\xb4\xf2\xd1" | ||
| 14610 | "\xd6\xbb\x1b\x2a\xc1\x34\x14\xcf", | ||
| 14611 | .rlen = 512, | ||
| 14612 | }, { | ||
| 14613 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
| 14614 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
| 14615 | "\x62\x49\x77\x57\x24\x70\x93\x69" | ||
| 14616 | "\x99\x59\x57\x49\x66\x96\x76\x27" | ||
| 14617 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
| 14618 | "\x23\x84\x62\x64\x33\x83\x27\x95" | ||
| 14619 | "\x02\x88\x41\x97\x16\x93\x99\x37" | ||
| 14620 | "\x51\x05\x82\x09\x74\x94\x45\x92", | ||
| 14621 | .klen = 64, | ||
| 14622 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" | ||
| 14623 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14624 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 14625 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 14626 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 14627 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 14628 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 14629 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 14630 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 14631 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 14632 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 14633 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 14634 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 14635 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 14636 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 14637 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 14638 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 14639 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 14640 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 14641 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 14642 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 14643 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 14644 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 14645 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 14646 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 14647 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 14648 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 14649 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 14650 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 14651 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 14652 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 14653 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 14654 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 14655 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
| 14656 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 14657 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 14658 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 14659 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 14660 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 14661 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 14662 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 14663 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 14664 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 14665 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 14666 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 14667 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 14668 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 14669 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 14670 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 14671 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 14672 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 14673 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 14674 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 14675 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 14676 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 14677 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 14678 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 14679 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 14680 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 14681 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 14682 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 14683 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 14684 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 14685 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 14686 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 14687 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
| 14688 | .ilen = 512, | ||
| 14689 | .result = "\xc5\x85\x2a\x4b\x73\xe4\xf6\xf1" | ||
| 14690 | "\x7e\xf9\xf6\xe9\xa3\x73\x36\xcb" | ||
| 14691 | "\xaa\xb6\x22\xb0\x24\x6e\x3d\x73" | ||
| 14692 | "\x92\x99\xde\xd3\x76\xed\xcd\x63" | ||
| 14693 | "\x64\x3a\x22\x57\xc1\x43\x49\xd4" | ||
| 14694 | "\x79\x36\x31\x19\x62\xae\x10\x7e" | ||
| 14695 | "\x7d\xcf\x7a\xe2\x6b\xce\x27\xfa" | ||
| 14696 | "\xdc\x3d\xd9\x83\xd3\x42\x4c\xe0" | ||
| 14697 | "\x1b\xd6\x1d\x1a\x6f\xd2\x03\x00" | ||
| 14698 | "\xfc\x81\x99\x8a\x14\x62\xf5\x7e" | ||
| 14699 | "\x0d\xe7\x12\xe8\x17\x9d\x0b\xec" | ||
| 14700 | "\xe2\xf7\xc9\xa7\x63\xd1\x79\xb6" | ||
| 14701 | "\x62\x62\x37\xfe\x0a\x4c\x4a\x37" | ||
| 14702 | "\x70\xc7\x5e\x96\x5f\xbc\x8e\x9e" | ||
| 14703 | "\x85\x3c\x4f\x26\x64\x85\xbc\x68" | ||
| 14704 | "\xb0\xe0\x86\x5e\x26\x41\xce\x11" | ||
| 14705 | "\x50\xda\x97\x14\xe9\x9e\xc7\x6d" | ||
| 14706 | "\x3b\xdc\x43\xde\x2b\x27\x69\x7d" | ||
| 14707 | "\xfc\xb0\x28\xbd\x8f\xb1\xc6\x31" | ||
| 14708 | "\x14\x4d\xf0\x74\x37\xfd\x07\x25" | ||
| 14709 | "\x96\x55\xe5\xfc\x9e\x27\x2a\x74" | ||
| 14710 | "\x1b\x83\x4d\x15\x83\xac\x57\xa0" | ||
| 14711 | "\xac\xa5\xd0\x38\xef\x19\x56\x53" | ||
| 14712 | "\x25\x4b\xfc\xce\x04\x23\xe5\x6b" | ||
| 14713 | "\xf6\xc6\x6c\x32\x0b\xb3\x12\xc5" | ||
| 14714 | "\xed\x22\x34\x1c\x5d\xed\x17\x06" | ||
| 14715 | "\x36\xa3\xe6\x77\xb9\x97\x46\xb8" | ||
| 14716 | "\xe9\x3f\x7e\xc7\xbc\x13\x5c\xdc" | ||
| 14717 | "\x6e\x3f\x04\x5e\xd1\x59\xa5\x82" | ||
| 14718 | "\x35\x91\x3d\x1b\xe4\x97\x9f\x92" | ||
| 14719 | "\x1c\x5e\x5f\x6f\x41\xd4\x62\xa1" | ||
| 14720 | "\x8d\x39\xfc\x42\xfb\x38\x80\xb9" | ||
| 14721 | "\x0a\xe3\xcc\x6a\x93\xd9\x7a\xb1" | ||
| 14722 | "\xe9\x69\xaf\x0a\x6b\x75\x38\xa7" | ||
| 14723 | "\xa1\xbf\xf7\xda\x95\x93\x4b\x78" | ||
| 14724 | "\x19\xf5\x94\xf9\xd2\x00\x33\x37" | ||
| 14725 | "\xcf\xf5\x9e\x9c\xf3\xcc\xa6\xee" | ||
| 14726 | "\x42\xb2\x9e\x2c\x5f\x48\x23\x26" | ||
| 14727 | "\x15\x25\x17\x03\x3d\xfe\x2c\xfc" | ||
| 14728 | "\xeb\xba\xda\xe0\x00\x05\xb6\xa6" | ||
| 14729 | "\x07\xb3\xe8\x36\x5b\xec\x5b\xbf" | ||
| 14730 | "\xd6\x5b\x00\x74\xc6\x97\xf1\x6a" | ||
| 14731 | "\x49\xa1\xc3\xfa\x10\x52\xb9\x14" | ||
| 14732 | "\xad\xb7\x73\xf8\x78\x12\xc8\x59" | ||
| 14733 | "\x17\x80\x4c\x57\x39\xf1\x6d\x80" | ||
| 14734 | "\x25\x77\x0f\x5e\x7d\xf0\xaf\x21" | ||
| 14735 | "\xec\xce\xb7\xc8\x02\x8a\xed\x53" | ||
| 14736 | "\x2c\x25\x68\x2e\x1f\x85\x5e\x67" | ||
| 14737 | "\xd1\x07\x7a\x3a\x89\x08\xe0\x34" | ||
| 14738 | "\xdc\xdb\x26\xb4\x6b\x77\xfc\x40" | ||
| 14739 | "\x31\x15\x72\xa0\xf0\x73\xd9\x3b" | ||
| 14740 | "\xd5\xdb\xfe\xfc\x8f\xa9\x44\xa2" | ||
| 14741 | "\x09\x9f\xc6\x33\xe5\xe2\x88\xe8" | ||
| 14742 | "\xf3\xf0\x1a\xf4\xce\x12\x0f\xd6" | ||
| 14743 | "\xf7\x36\xe6\xa4\xf4\x7a\x10\x58" | ||
| 14744 | "\xcc\x1f\x48\x49\x65\x47\x75\xe9" | ||
| 14745 | "\x28\xe1\x65\x7b\xf2\xc4\xb5\x07" | ||
| 14746 | "\xf2\xec\x76\xd8\x8f\x09\xf3\x16" | ||
| 14747 | "\xa1\x51\x89\x3b\xeb\x96\x42\xac" | ||
| 14748 | "\x65\xe0\x67\x63\x29\xdc\xb4\x7d" | ||
| 14749 | "\xf2\x41\x51\x6a\xcb\xde\x3c\xfb" | ||
| 14750 | "\x66\x8d\x13\xca\xe0\x59\x2a\x00" | ||
| 14751 | "\xc9\x53\x4c\xe6\x9e\xe2\x73\xd5" | ||
| 14752 | "\x67\x19\xb2\xbd\x9a\x63\xd7\x5c", | ||
| 14753 | .rlen = 512, | ||
| 14754 | .also_non_np = 1, | ||
| 14755 | .np = 3, | ||
| 14756 | .tap = { 512 - 20, 4, 16 }, | ||
| 14757 | } | ||
| 14758 | }; | ||
| 14759 | |||
| 14760 | static const struct cipher_testvec speck128_xts_dec_tv_template[] = { | ||
| 14761 | { | ||
| 14762 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14763 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14764 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14765 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14766 | .klen = 32, | ||
| 14767 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14768 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14769 | .input = "\xbe\xa0\xe7\x03\xd7\xfe\xab\x62" | ||
| 14770 | "\x3b\x99\x4a\x64\x74\x77\xac\xed" | ||
| 14771 | "\xd8\xf4\xa6\xcf\xae\xb9\x07\x42" | ||
| 14772 | "\x51\xd9\xb6\x1d\xe0\x5e\xbc\x54", | ||
| 14773 | .ilen = 32, | ||
| 14774 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14775 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14776 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14777 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14778 | .rlen = 32, | ||
| 14779 | }, { | ||
| 14780 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
| 14781 | "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
| 14782 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
| 14783 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
| 14784 | .klen = 32, | ||
| 14785 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
| 14786 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14787 | .input = "\xfb\x53\x81\x75\x6f\x9f\x34\xad" | ||
| 14788 | "\x7e\x01\xed\x7b\xcc\xda\x4e\x4a" | ||
| 14789 | "\xd4\x84\xa4\x53\xd5\x88\x73\x1b" | ||
| 14790 | "\xfd\xcb\xae\x0d\xf3\x04\xee\xe6", | ||
| 14791 | .ilen = 32, | ||
| 14792 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14793 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14794 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14795 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
| 14796 | .rlen = 32, | ||
| 14797 | }, { | ||
| 14798 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" | ||
| 14799 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" | ||
| 14800 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
| 14801 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
| 14802 | .klen = 32, | ||
| 14803 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
| 14804 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14805 | .input = "\x21\x52\x84\x15\xd1\xf7\x21\x55" | ||
| 14806 | "\xd9\x75\x4a\xd3\xc5\xdb\x9f\x7d" | ||
| 14807 | "\xda\x63\xb2\xf1\x82\xb0\x89\x59" | ||
| 14808 | "\x86\xd4\xaa\xaa\xdd\xff\x4f\x92", | ||
| 14809 | .ilen = 32, | ||
| 14810 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14811 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14812 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
| 14813 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
| 14814 | .rlen = 32, | ||
| 14815 | }, { | ||
| 14816 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
| 14817 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
| 14818 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
| 14819 | "\x23\x84\x62\x64\x33\x83\x27\x95", | ||
| 14820 | .klen = 32, | ||
| 14821 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
| 14822 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14823 | .input = "\x57\xb5\xf8\x71\x6e\x6d\xdd\x82" | ||
| 14824 | "\x53\xd0\xed\x2d\x30\xc1\x20\xef" | ||
| 14825 | "\x70\x67\x5e\xff\x09\x70\xbb\xc1" | ||
| 14826 | "\x3a\x7b\x48\x26\xd9\x0b\xf4\x48" | ||
| 14827 | "\xbe\xce\xb1\xc7\xb2\x67\xc4\xa7" | ||
| 14828 | "\x76\xf8\x36\x30\xb7\xb4\x9a\xd9" | ||
| 14829 | "\xf5\x9d\xd0\x7b\xc1\x06\x96\x44" | ||
| 14830 | "\x19\xc5\x58\x84\x63\xb9\x12\x68" | ||
| 14831 | "\x68\xc7\xaa\x18\x98\xf2\x1f\x5c" | ||
| 14832 | "\x39\xa6\xd8\x32\x2b\xc3\x51\xfd" | ||
| 14833 | "\x74\x79\x2e\xb4\x44\xd7\x69\xc4" | ||
| 14834 | "\xfc\x29\xe6\xed\x26\x1e\xa6\x9d" | ||
| 14835 | "\x1c\xbe\x00\x0e\x7f\x3a\xca\xfb" | ||
| 14836 | "\x6d\x13\x65\xa0\xf9\x31\x12\xe2" | ||
| 14837 | "\x26\xd1\xec\x2b\x0a\x8b\x59\x99" | ||
| 14838 | "\xa7\x49\xa0\x0e\x09\x33\x85\x50" | ||
| 14839 | "\xc3\x23\xca\x7a\xdd\x13\x45\x5f" | ||
| 14840 | "\xde\x4c\xa7\xcb\x00\x8a\x66\x6f" | ||
| 14841 | "\xa2\xb6\xb1\x2e\xe1\xa0\x18\xf6" | ||
| 14842 | "\xad\xf3\xbd\xeb\xc7\xef\x55\x4f" | ||
| 14843 | "\x79\x91\x8d\x36\x13\x7b\xd0\x4a" | ||
| 14844 | "\x6c\x39\xfb\x53\xb8\x6f\x02\x51" | ||
| 14845 | "\xa5\x20\xac\x24\x1c\x73\x59\x73" | ||
| 14846 | "\x58\x61\x3a\x87\x58\xb3\x20\x56" | ||
| 14847 | "\x39\x06\x2b\x4d\xd3\x20\x2b\x89" | ||
| 14848 | "\x3f\xa2\xf0\x96\xeb\x7f\xa4\xcd" | ||
| 14849 | "\x11\xae\xbd\xcb\x3a\xb4\xd9\x91" | ||
| 14850 | "\x09\x35\x71\x50\x65\xac\x92\xe3" | ||
| 14851 | "\x7b\x32\xc0\x7a\xdd\xd4\xc3\x92" | ||
| 14852 | "\x6f\xeb\x79\xde\x6f\xd3\x25\xc9" | ||
| 14853 | "\xcd\x63\xf5\x1e\x7a\x3b\x26\x9d" | ||
| 14854 | "\x77\x04\x80\xa9\xbf\x38\xb5\xbd" | ||
| 14855 | "\xb8\x05\x07\xbd\xfd\xab\x7b\xf8" | ||
| 14856 | "\x2a\x26\xcc\x49\x14\x6d\x55\x01" | ||
| 14857 | "\x06\x94\xd8\xb2\x2d\x53\x83\x1b" | ||
| 14858 | "\x8f\xd4\xdd\x57\x12\x7e\x18\xba" | ||
| 14859 | "\x8e\xe2\x4d\x80\xef\x7e\x6b\x9d" | ||
| 14860 | "\x24\xa9\x60\xa4\x97\x85\x86\x2a" | ||
| 14861 | "\x01\x00\x09\xf1\xcb\x4a\x24\x1c" | ||
| 14862 | "\xd8\xf6\xe6\x5b\xe7\x5d\xf2\xc4" | ||
| 14863 | "\x97\x1c\x10\xc6\x4d\x66\x4f\x98" | ||
| 14864 | "\x87\x30\xac\xd5\xea\x73\x49\x10" | ||
| 14865 | "\x80\xea\xe5\x5f\x4d\x5f\x03\x33" | ||
| 14866 | "\x66\x02\x35\x3d\x60\x06\x36\x4f" | ||
| 14867 | "\x14\x1c\xd8\x07\x1f\x78\xd0\xf8" | ||
| 14868 | "\x4f\x6c\x62\x7c\x15\xa5\x7c\x28" | ||
| 14869 | "\x7c\xcc\xeb\x1f\xd1\x07\x90\x93" | ||
| 14870 | "\x7e\xc2\xa8\x3a\x80\xc0\xf5\x30" | ||
| 14871 | "\xcc\x75\xcf\x16\x26\xa9\x26\x3b" | ||
| 14872 | "\xe7\x68\x2f\x15\x21\x5b\xe4\x00" | ||
| 14873 | "\xbd\x48\x50\xcd\x75\x70\xc4\x62" | ||
| 14874 | "\xbb\x41\xfb\x89\x4a\x88\x3b\x3b" | ||
| 14875 | "\x51\x66\x02\x69\x04\x97\x36\xd4" | ||
| 14876 | "\x75\xae\x0b\xa3\x42\xf8\xca\x79" | ||
| 14877 | "\x8f\x93\xe9\xcc\x38\xbd\xd6\xd2" | ||
| 14878 | "\xf9\x70\x4e\xc3\x6a\x8e\x25\xbd" | ||
| 14879 | "\xea\x15\x5a\xa0\x85\x7e\x81\x0d" | ||
| 14880 | "\x03\xe7\x05\x39\xf5\x05\x26\xee" | ||
| 14881 | "\xec\xaa\x1f\x3d\xc9\x98\x76\x01" | ||
| 14882 | "\x2c\xf4\xfc\xa3\x88\x77\x38\xc4" | ||
| 14883 | "\x50\x65\x50\x6d\x04\x1f\xdf\x5a" | ||
| 14884 | "\xaa\xf2\x01\xa9\xc1\x8d\xee\xca" | ||
| 14885 | "\x47\x26\xef\x39\xb8\xb4\xf2\xd1" | ||
| 14886 | "\xd6\xbb\x1b\x2a\xc1\x34\x14\xcf", | ||
| 14887 | .ilen = 512, | ||
| 14888 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 14889 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 14890 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 14891 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 14892 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 14893 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 14894 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 14895 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 14896 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 14897 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 14898 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 14899 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 14900 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 14901 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 14902 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 14903 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 14904 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 14905 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 14906 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 14907 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 14908 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 14909 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 14910 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 14911 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 14912 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 14913 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 14914 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 14915 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 14916 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 14917 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 14918 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 14919 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
| 14920 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 14921 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 14922 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 14923 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 14924 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 14925 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 14926 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 14927 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 14928 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 14929 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 14930 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 14931 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 14932 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 14933 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 14934 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 14935 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 14936 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 14937 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 14938 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 14939 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 14940 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 14941 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 14942 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 14943 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 14944 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 14945 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 14946 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 14947 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 14948 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 14949 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 14950 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 14951 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
| 14952 | .rlen = 512, | ||
| 14953 | }, { | ||
| 14954 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
| 14955 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
| 14956 | "\x62\x49\x77\x57\x24\x70\x93\x69" | ||
| 14957 | "\x99\x59\x57\x49\x66\x96\x76\x27" | ||
| 14958 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
| 14959 | "\x23\x84\x62\x64\x33\x83\x27\x95" | ||
| 14960 | "\x02\x88\x41\x97\x16\x93\x99\x37" | ||
| 14961 | "\x51\x05\x82\x09\x74\x94\x45\x92", | ||
| 14962 | .klen = 64, | ||
| 14963 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" | ||
| 14964 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
| 14965 | .input = "\xc5\x85\x2a\x4b\x73\xe4\xf6\xf1" | ||
| 14966 | "\x7e\xf9\xf6\xe9\xa3\x73\x36\xcb" | ||
| 14967 | "\xaa\xb6\x22\xb0\x24\x6e\x3d\x73" | ||
| 14968 | "\x92\x99\xde\xd3\x76\xed\xcd\x63" | ||
| 14969 | "\x64\x3a\x22\x57\xc1\x43\x49\xd4" | ||
| 14970 | "\x79\x36\x31\x19\x62\xae\x10\x7e" | ||
| 14971 | "\x7d\xcf\x7a\xe2\x6b\xce\x27\xfa" | ||
| 14972 | "\xdc\x3d\xd9\x83\xd3\x42\x4c\xe0" | ||
| 14973 | "\x1b\xd6\x1d\x1a\x6f\xd2\x03\x00" | ||
| 14974 | "\xfc\x81\x99\x8a\x14\x62\xf5\x7e" | ||
| 14975 | "\x0d\xe7\x12\xe8\x17\x9d\x0b\xec" | ||
| 14976 | "\xe2\xf7\xc9\xa7\x63\xd1\x79\xb6" | ||
| 14977 | "\x62\x62\x37\xfe\x0a\x4c\x4a\x37" | ||
| 14978 | "\x70\xc7\x5e\x96\x5f\xbc\x8e\x9e" | ||
| 14979 | "\x85\x3c\x4f\x26\x64\x85\xbc\x68" | ||
| 14980 | "\xb0\xe0\x86\x5e\x26\x41\xce\x11" | ||
| 14981 | "\x50\xda\x97\x14\xe9\x9e\xc7\x6d" | ||
| 14982 | "\x3b\xdc\x43\xde\x2b\x27\x69\x7d" | ||
| 14983 | "\xfc\xb0\x28\xbd\x8f\xb1\xc6\x31" | ||
| 14984 | "\x14\x4d\xf0\x74\x37\xfd\x07\x25" | ||
| 14985 | "\x96\x55\xe5\xfc\x9e\x27\x2a\x74" | ||
| 14986 | "\x1b\x83\x4d\x15\x83\xac\x57\xa0" | ||
| 14987 | "\xac\xa5\xd0\x38\xef\x19\x56\x53" | ||
| 14988 | "\x25\x4b\xfc\xce\x04\x23\xe5\x6b" | ||
| 14989 | "\xf6\xc6\x6c\x32\x0b\xb3\x12\xc5" | ||
| 14990 | "\xed\x22\x34\x1c\x5d\xed\x17\x06" | ||
| 14991 | "\x36\xa3\xe6\x77\xb9\x97\x46\xb8" | ||
| 14992 | "\xe9\x3f\x7e\xc7\xbc\x13\x5c\xdc" | ||
| 14993 | "\x6e\x3f\x04\x5e\xd1\x59\xa5\x82" | ||
| 14994 | "\x35\x91\x3d\x1b\xe4\x97\x9f\x92" | ||
| 14995 | "\x1c\x5e\x5f\x6f\x41\xd4\x62\xa1" | ||
| 14996 | "\x8d\x39\xfc\x42\xfb\x38\x80\xb9" | ||
| 14997 | "\x0a\xe3\xcc\x6a\x93\xd9\x7a\xb1" | ||
| 14998 | "\xe9\x69\xaf\x0a\x6b\x75\x38\xa7" | ||
| 14999 | "\xa1\xbf\xf7\xda\x95\x93\x4b\x78" | ||
| 15000 | "\x19\xf5\x94\xf9\xd2\x00\x33\x37" | ||
| 15001 | "\xcf\xf5\x9e\x9c\xf3\xcc\xa6\xee" | ||
| 15002 | "\x42\xb2\x9e\x2c\x5f\x48\x23\x26" | ||
| 15003 | "\x15\x25\x17\x03\x3d\xfe\x2c\xfc" | ||
| 15004 | "\xeb\xba\xda\xe0\x00\x05\xb6\xa6" | ||
| 15005 | "\x07\xb3\xe8\x36\x5b\xec\x5b\xbf" | ||
| 15006 | "\xd6\x5b\x00\x74\xc6\x97\xf1\x6a" | ||
| 15007 | "\x49\xa1\xc3\xfa\x10\x52\xb9\x14" | ||
| 15008 | "\xad\xb7\x73\xf8\x78\x12\xc8\x59" | ||
| 15009 | "\x17\x80\x4c\x57\x39\xf1\x6d\x80" | ||
| 15010 | "\x25\x77\x0f\x5e\x7d\xf0\xaf\x21" | ||
| 15011 | "\xec\xce\xb7\xc8\x02\x8a\xed\x53" | ||
| 15012 | "\x2c\x25\x68\x2e\x1f\x85\x5e\x67" | ||
| 15013 | "\xd1\x07\x7a\x3a\x89\x08\xe0\x34" | ||
| 15014 | "\xdc\xdb\x26\xb4\x6b\x77\xfc\x40" | ||
| 15015 | "\x31\x15\x72\xa0\xf0\x73\xd9\x3b" | ||
| 15016 | "\xd5\xdb\xfe\xfc\x8f\xa9\x44\xa2" | ||
| 15017 | "\x09\x9f\xc6\x33\xe5\xe2\x88\xe8" | ||
| 15018 | "\xf3\xf0\x1a\xf4\xce\x12\x0f\xd6" | ||
| 15019 | "\xf7\x36\xe6\xa4\xf4\x7a\x10\x58" | ||
| 15020 | "\xcc\x1f\x48\x49\x65\x47\x75\xe9" | ||
| 15021 | "\x28\xe1\x65\x7b\xf2\xc4\xb5\x07" | ||
| 15022 | "\xf2\xec\x76\xd8\x8f\x09\xf3\x16" | ||
| 15023 | "\xa1\x51\x89\x3b\xeb\x96\x42\xac" | ||
| 15024 | "\x65\xe0\x67\x63\x29\xdc\xb4\x7d" | ||
| 15025 | "\xf2\x41\x51\x6a\xcb\xde\x3c\xfb" | ||
| 15026 | "\x66\x8d\x13\xca\xe0\x59\x2a\x00" | ||
| 15027 | "\xc9\x53\x4c\xe6\x9e\xe2\x73\xd5" | ||
| 15028 | "\x67\x19\xb2\xbd\x9a\x63\xd7\x5c", | ||
| 15029 | .ilen = 512, | ||
| 15030 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 15031 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 15032 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 15033 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 15034 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 15035 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 15036 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 15037 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 15038 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 15039 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 15040 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 15041 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 15042 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 15043 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 15044 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 15045 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 15046 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 15047 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 15048 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 15049 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 15050 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 15051 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 15052 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 15053 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 15054 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 15055 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 15056 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 15057 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 15058 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 15059 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 15060 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 15061 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
| 15062 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
| 15063 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
| 15064 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
| 15065 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
| 15066 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
| 15067 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
| 15068 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
| 15069 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
| 15070 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
| 15071 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
| 15072 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
| 15073 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
| 15074 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
| 15075 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
| 15076 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
| 15077 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
| 15078 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
| 15079 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
| 15080 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
| 15081 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
| 15082 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
| 15083 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
| 15084 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
| 15085 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
| 15086 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
| 15087 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
| 15088 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
| 15089 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
| 15090 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
| 15091 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
| 15092 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
| 15093 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
| 15094 | .rlen = 512, | ||
| 15095 | .also_non_np = 1, | ||
| 15096 | .np = 3, | ||
| 15097 | .tap = { 512 - 20, 4, 16 }, | ||
| 15098 | } | ||
| 15099 | }; | ||
| 15100 | |||
| 14414 | static const struct cipher_testvec speck64_enc_tv_template[] = { | 15101 | static const struct cipher_testvec speck64_enc_tv_template[] = { |
| 14415 | { /* Speck64/96 */ | 15102 | { /* Speck64/96 */ |
| 14416 | .key = "\x00\x01\x02\x03\x08\x09\x0a\x0b" | 15103 | .key = "\x00\x01\x02\x03\x08\x09\x0a\x0b" |
