diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/testmgr.c | 15 | ||||
-rw-r--r-- | crypto/testmgr.h | 681 |
2 files changed, 696 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 5e349a6bc98a..01553a6754b7 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -2589,6 +2589,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2589 | } | 2589 | } |
2590 | } | 2590 | } |
2591 | }, { | 2591 | }, { |
2592 | .alg = "xts(twofish)", | ||
2593 | .test = alg_test_skcipher, | ||
2594 | .suite = { | ||
2595 | .cipher = { | ||
2596 | .enc = { | ||
2597 | .vecs = tf_xts_enc_tv_template, | ||
2598 | .count = TF_XTS_ENC_TEST_VECTORS | ||
2599 | }, | ||
2600 | .dec = { | ||
2601 | .vecs = tf_xts_dec_tv_template, | ||
2602 | .count = TF_XTS_DEC_TEST_VECTORS | ||
2603 | } | ||
2604 | } | ||
2605 | } | ||
2606 | }, { | ||
2592 | .alg = "zlib", | 2607 | .alg = "zlib", |
2593 | .test = alg_test_pcomp, | 2608 | .test = alg_test_pcomp, |
2594 | .suite = { | 2609 | .suite = { |
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 9158a92aa18b..43e84d32b341 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h | |||
@@ -2719,6 +2719,8 @@ static struct cipher_testvec bf_ctr_dec_tv_template[] = { | |||
2719 | #define TF_CTR_DEC_TEST_VECTORS 2 | 2719 | #define TF_CTR_DEC_TEST_VECTORS 2 |
2720 | #define TF_LRW_ENC_TEST_VECTORS 8 | 2720 | #define TF_LRW_ENC_TEST_VECTORS 8 |
2721 | #define TF_LRW_DEC_TEST_VECTORS 8 | 2721 | #define TF_LRW_DEC_TEST_VECTORS 8 |
2722 | #define TF_XTS_ENC_TEST_VECTORS 5 | ||
2723 | #define TF_XTS_DEC_TEST_VECTORS 5 | ||
2722 | 2724 | ||
2723 | static struct cipher_testvec tf_enc_tv_template[] = { | 2725 | static struct cipher_testvec tf_enc_tv_template[] = { |
2724 | { | 2726 | { |
@@ -3593,6 +3595,685 @@ static struct cipher_testvec tf_lrw_dec_tv_template[] = { | |||
3593 | }, | 3595 | }, |
3594 | }; | 3596 | }; |
3595 | 3597 | ||
3598 | static struct cipher_testvec tf_xts_enc_tv_template[] = { | ||
3599 | /* Generated from AES-XTS test vectors */ | ||
3600 | { | ||
3601 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3602 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3603 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3604 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3605 | .klen = 32, | ||
3606 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3607 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3608 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3609 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3610 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3611 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3612 | .ilen = 32, | ||
3613 | .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" | ||
3614 | "\x30\x74\xe4\x44\x52\x77\x97\x43" | ||
3615 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" | ||
3616 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", | ||
3617 | .rlen = 32, | ||
3618 | }, { | ||
3619 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
3620 | "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
3621 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
3622 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
3623 | .klen = 32, | ||
3624 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
3625 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3626 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3627 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3628 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3629 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
3630 | .ilen = 32, | ||
3631 | .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" | ||
3632 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" | ||
3633 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" | ||
3634 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", | ||
3635 | .rlen = 32, | ||
3636 | }, { | ||
3637 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" | ||
3638 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" | ||
3639 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
3640 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
3641 | .klen = 32, | ||
3642 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
3643 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3644 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3645 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3646 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3647 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
3648 | .ilen = 32, | ||
3649 | .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" | ||
3650 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" | ||
3651 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" | ||
3652 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", | ||
3653 | .rlen = 32, | ||
3654 | }, { | ||
3655 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
3656 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
3657 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
3658 | "\x23\x84\x62\x64\x33\x83\x27\x95", | ||
3659 | .klen = 32, | ||
3660 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3661 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3662 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
3663 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
3664 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
3665 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
3666 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
3667 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
3668 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
3669 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
3670 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
3671 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
3672 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
3673 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
3674 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
3675 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
3676 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
3677 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
3678 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
3679 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
3680 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
3681 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
3682 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
3683 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
3684 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
3685 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
3686 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
3687 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
3688 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
3689 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
3690 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
3691 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
3692 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
3693 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
3694 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
3695 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
3696 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
3697 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
3698 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
3699 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
3700 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
3701 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
3702 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
3703 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
3704 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
3705 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
3706 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
3707 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
3708 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
3709 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
3710 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
3711 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
3712 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
3713 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
3714 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
3715 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
3716 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
3717 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
3718 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
3719 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
3720 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
3721 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
3722 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
3723 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
3724 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
3725 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
3726 | .ilen = 512, | ||
3727 | .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" | ||
3728 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" | ||
3729 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" | ||
3730 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" | ||
3731 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" | ||
3732 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" | ||
3733 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" | ||
3734 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" | ||
3735 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" | ||
3736 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" | ||
3737 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" | ||
3738 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" | ||
3739 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" | ||
3740 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" | ||
3741 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" | ||
3742 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" | ||
3743 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" | ||
3744 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" | ||
3745 | "\x39\x80\x39\x09\x97\x65\xf2\x83" | ||
3746 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" | ||
3747 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" | ||
3748 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" | ||
3749 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" | ||
3750 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" | ||
3751 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" | ||
3752 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" | ||
3753 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" | ||
3754 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" | ||
3755 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" | ||
3756 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" | ||
3757 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" | ||
3758 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" | ||
3759 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" | ||
3760 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" | ||
3761 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" | ||
3762 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" | ||
3763 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" | ||
3764 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" | ||
3765 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" | ||
3766 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" | ||
3767 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" | ||
3768 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" | ||
3769 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" | ||
3770 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" | ||
3771 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" | ||
3772 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" | ||
3773 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" | ||
3774 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" | ||
3775 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" | ||
3776 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" | ||
3777 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" | ||
3778 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" | ||
3779 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" | ||
3780 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" | ||
3781 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" | ||
3782 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" | ||
3783 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" | ||
3784 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" | ||
3785 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" | ||
3786 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" | ||
3787 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" | ||
3788 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" | ||
3789 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" | ||
3790 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", | ||
3791 | .rlen = 512, | ||
3792 | }, { | ||
3793 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
3794 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
3795 | "\x62\x49\x77\x57\x24\x70\x93\x69" | ||
3796 | "\x99\x59\x57\x49\x66\x96\x76\x27" | ||
3797 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
3798 | "\x23\x84\x62\x64\x33\x83\x27\x95" | ||
3799 | "\x02\x88\x41\x97\x16\x93\x99\x37" | ||
3800 | "\x51\x05\x82\x09\x74\x94\x45\x92", | ||
3801 | .klen = 64, | ||
3802 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" | ||
3803 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3804 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
3805 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
3806 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
3807 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
3808 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
3809 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
3810 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
3811 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
3812 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
3813 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
3814 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
3815 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
3816 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
3817 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
3818 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
3819 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
3820 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
3821 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
3822 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
3823 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
3824 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
3825 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
3826 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
3827 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
3828 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
3829 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
3830 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
3831 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
3832 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
3833 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
3834 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
3835 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
3836 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
3837 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
3838 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
3839 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
3840 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
3841 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
3842 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
3843 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
3844 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
3845 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
3846 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
3847 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
3848 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
3849 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
3850 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
3851 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
3852 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
3853 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
3854 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
3855 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
3856 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
3857 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
3858 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
3859 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
3860 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
3861 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
3862 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
3863 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
3864 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
3865 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
3866 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
3867 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
3868 | .ilen = 512, | ||
3869 | .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" | ||
3870 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" | ||
3871 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" | ||
3872 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" | ||
3873 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" | ||
3874 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" | ||
3875 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" | ||
3876 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" | ||
3877 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" | ||
3878 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" | ||
3879 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" | ||
3880 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" | ||
3881 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" | ||
3882 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" | ||
3883 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" | ||
3884 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" | ||
3885 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" | ||
3886 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" | ||
3887 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" | ||
3888 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" | ||
3889 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" | ||
3890 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" | ||
3891 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" | ||
3892 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" | ||
3893 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" | ||
3894 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" | ||
3895 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" | ||
3896 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" | ||
3897 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" | ||
3898 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" | ||
3899 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" | ||
3900 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" | ||
3901 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" | ||
3902 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" | ||
3903 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" | ||
3904 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" | ||
3905 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" | ||
3906 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" | ||
3907 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" | ||
3908 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" | ||
3909 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" | ||
3910 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" | ||
3911 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" | ||
3912 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" | ||
3913 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" | ||
3914 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" | ||
3915 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" | ||
3916 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" | ||
3917 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" | ||
3918 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" | ||
3919 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" | ||
3920 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" | ||
3921 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" | ||
3922 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" | ||
3923 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" | ||
3924 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" | ||
3925 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" | ||
3926 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" | ||
3927 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" | ||
3928 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" | ||
3929 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" | ||
3930 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" | ||
3931 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" | ||
3932 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", | ||
3933 | .rlen = 512, | ||
3934 | }, | ||
3935 | }; | ||
3936 | |||
3937 | static struct cipher_testvec tf_xts_dec_tv_template[] = { | ||
3938 | /* Generated from AES-XTS test vectors */ | ||
3939 | /* same as enc vectors with input and result reversed */ | ||
3940 | { | ||
3941 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3942 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3943 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3944 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3945 | .klen = 32, | ||
3946 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3947 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3948 | .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" | ||
3949 | "\x30\x74\xe4\x44\x52\x77\x97\x43" | ||
3950 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" | ||
3951 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", | ||
3952 | .ilen = 32, | ||
3953 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3954 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3955 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
3956 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3957 | .rlen = 32, | ||
3958 | }, { | ||
3959 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
3960 | "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
3961 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
3962 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
3963 | .klen = 32, | ||
3964 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
3965 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3966 | .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" | ||
3967 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" | ||
3968 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" | ||
3969 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", | ||
3970 | .ilen = 32, | ||
3971 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3972 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3973 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3974 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
3975 | .rlen = 32, | ||
3976 | }, { | ||
3977 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" | ||
3978 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" | ||
3979 | "\x22\x22\x22\x22\x22\x22\x22\x22" | ||
3980 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
3981 | .klen = 32, | ||
3982 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
3983 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
3984 | .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" | ||
3985 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" | ||
3986 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" | ||
3987 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", | ||
3988 | .ilen = 32, | ||
3989 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3990 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3991 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
3992 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
3993 | .rlen = 32, | ||
3994 | }, { | ||
3995 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
3996 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
3997 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
3998 | "\x23\x84\x62\x64\x33\x83\x27\x95", | ||
3999 | .klen = 32, | ||
4000 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
4001 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
4002 | .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" | ||
4003 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" | ||
4004 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" | ||
4005 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" | ||
4006 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" | ||
4007 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" | ||
4008 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" | ||
4009 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" | ||
4010 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" | ||
4011 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" | ||
4012 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" | ||
4013 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" | ||
4014 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" | ||
4015 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" | ||
4016 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" | ||
4017 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" | ||
4018 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" | ||
4019 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" | ||
4020 | "\x39\x80\x39\x09\x97\x65\xf2\x83" | ||
4021 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" | ||
4022 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" | ||
4023 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" | ||
4024 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" | ||
4025 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" | ||
4026 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" | ||
4027 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" | ||
4028 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" | ||
4029 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" | ||
4030 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" | ||
4031 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" | ||
4032 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" | ||
4033 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" | ||
4034 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" | ||
4035 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" | ||
4036 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" | ||
4037 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" | ||
4038 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" | ||
4039 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" | ||
4040 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" | ||
4041 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" | ||
4042 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" | ||
4043 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" | ||
4044 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" | ||
4045 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" | ||
4046 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" | ||
4047 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" | ||
4048 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" | ||
4049 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" | ||
4050 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" | ||
4051 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" | ||
4052 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" | ||
4053 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" | ||
4054 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" | ||
4055 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" | ||
4056 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" | ||
4057 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" | ||
4058 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" | ||
4059 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" | ||
4060 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" | ||
4061 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" | ||
4062 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" | ||
4063 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" | ||
4064 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" | ||
4065 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", | ||
4066 | .ilen = 512, | ||
4067 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
4068 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
4069 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
4070 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
4071 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
4072 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
4073 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
4074 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
4075 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
4076 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
4077 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
4078 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
4079 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
4080 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
4081 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
4082 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
4083 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
4084 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
4085 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
4086 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
4087 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
4088 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
4089 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
4090 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
4091 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
4092 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
4093 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
4094 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
4095 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
4096 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
4097 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
4098 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
4099 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
4100 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
4101 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
4102 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
4103 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
4104 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
4105 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
4106 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
4107 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
4108 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
4109 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
4110 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
4111 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
4112 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
4113 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
4114 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
4115 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
4116 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
4117 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
4118 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
4119 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
4120 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
4121 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
4122 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
4123 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
4124 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
4125 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
4126 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
4127 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
4128 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
4129 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
4130 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
4131 | .rlen = 512, | ||
4132 | }, { | ||
4133 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
4134 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
4135 | "\x62\x49\x77\x57\x24\x70\x93\x69" | ||
4136 | "\x99\x59\x57\x49\x66\x96\x76\x27" | ||
4137 | "\x31\x41\x59\x26\x53\x58\x97\x93" | ||
4138 | "\x23\x84\x62\x64\x33\x83\x27\x95" | ||
4139 | "\x02\x88\x41\x97\x16\x93\x99\x37" | ||
4140 | "\x51\x05\x82\x09\x74\x94\x45\x92", | ||
4141 | .klen = 64, | ||
4142 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" | ||
4143 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
4144 | .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" | ||
4145 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" | ||
4146 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" | ||
4147 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" | ||
4148 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" | ||
4149 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" | ||
4150 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" | ||
4151 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" | ||
4152 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" | ||
4153 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" | ||
4154 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" | ||
4155 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" | ||
4156 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" | ||
4157 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" | ||
4158 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" | ||
4159 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" | ||
4160 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" | ||
4161 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" | ||
4162 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" | ||
4163 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" | ||
4164 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" | ||
4165 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" | ||
4166 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" | ||
4167 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" | ||
4168 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" | ||
4169 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" | ||
4170 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" | ||
4171 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" | ||
4172 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" | ||
4173 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" | ||
4174 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" | ||
4175 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" | ||
4176 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" | ||
4177 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" | ||
4178 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" | ||
4179 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" | ||
4180 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" | ||
4181 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" | ||
4182 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" | ||
4183 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" | ||
4184 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" | ||
4185 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" | ||
4186 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" | ||
4187 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" | ||
4188 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" | ||
4189 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" | ||
4190 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" | ||
4191 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" | ||
4192 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" | ||
4193 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" | ||
4194 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" | ||
4195 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" | ||
4196 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" | ||
4197 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" | ||
4198 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" | ||
4199 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" | ||
4200 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" | ||
4201 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" | ||
4202 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" | ||
4203 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" | ||
4204 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" | ||
4205 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" | ||
4206 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" | ||
4207 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", | ||
4208 | .ilen = 512, | ||
4209 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
4210 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
4211 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
4212 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
4213 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
4214 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
4215 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
4216 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
4217 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
4218 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
4219 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
4220 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
4221 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
4222 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
4223 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
4224 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
4225 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
4226 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
4227 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
4228 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
4229 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
4230 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
4231 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
4232 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
4233 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
4234 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
4235 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
4236 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
4237 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
4238 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
4239 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
4240 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
4241 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
4242 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
4243 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
4244 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
4245 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
4246 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
4247 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
4248 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
4249 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
4250 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
4251 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
4252 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
4253 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
4254 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
4255 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
4256 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
4257 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
4258 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
4259 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
4260 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
4261 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
4262 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
4263 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
4264 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
4265 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
4266 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
4267 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
4268 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
4269 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
4270 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
4271 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
4272 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
4273 | .rlen = 512, | ||
4274 | }, | ||
4275 | }; | ||
4276 | |||
3596 | /* | 4277 | /* |
3597 | * Serpent test vectors. These are backwards because Serpent writes | 4278 | * Serpent test vectors. These are backwards because Serpent writes |
3598 | * octet sequences in right-to-left mode. | 4279 | * octet sequences in right-to-left mode. |