aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>2012-05-28 09:55:38 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2012-06-12 04:46:07 -0400
commit4da7de4d8be7d18559c56bca446b1161a3b63acc (patch)
tree92634115dd8d17c86675c5d1ae58da8b3d7f8688
parent107778b592576c0c8e8d2ca7a2aa5415a4908223 (diff)
crypto: testmgr - expand twofish test vectors
The AVX implementation of the twofish cipher processes 8 blocks parallel, so we need to make test vectors larger to check parallel code paths. Test vectors are also large enough to deal with 16 block parallel implementations which may occur in the future. Signed-off-by: Johannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/testmgr.h928
1 files changed, 896 insertions, 32 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 34a9d511deef..4d84fe48df08 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -2765,8 +2765,62 @@ static struct cipher_testvec tf_enc_tv_template[] = {
2765 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 2765 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
2766 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 2766 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
2767 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 2767 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
2768 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C", 2768 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
2769 .ilen = 64, 2769 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
2770 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
2771 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
2772 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
2773 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
2774 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
2775 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
2776 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
2777 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
2778 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
2779 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
2780 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
2781 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
2782 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
2783 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
2784 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
2785 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
2786 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
2787 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
2788 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
2789 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
2790 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
2791 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
2792 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
2793 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
2794 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
2795 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
2796 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
2797 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
2798 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
2799 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
2800 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
2801 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
2802 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
2803 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
2804 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
2805 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
2806 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
2807 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
2808 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
2809 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
2810 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
2811 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
2812 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
2813 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
2814 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
2815 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
2816 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
2817 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
2818 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
2819 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
2820 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
2821 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
2822 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
2823 .ilen = 496,
2770 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" 2824 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
2771 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" 2825 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
2772 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" 2826 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
@@ -2774,8 +2828,62 @@ static struct cipher_testvec tf_enc_tv_template[] = {
2774 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" 2828 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
2775 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" 2829 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
2776 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" 2830 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
2777 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02", 2831 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
2778 .rlen = 64, 2832 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
2833 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
2834 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
2835 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
2836 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
2837 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
2838 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
2839 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
2840 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
2841 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
2842 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
2843 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
2844 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
2845 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
2846 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
2847 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
2848 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
2849 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
2850 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
2851 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
2852 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
2853 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
2854 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
2855 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
2856 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
2857 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
2858 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
2859 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
2860 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
2861 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
2862 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
2863 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
2864 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
2865 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
2866 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
2867 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
2868 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
2869 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
2870 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
2871 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
2872 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
2873 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
2874 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
2875 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
2876 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
2877 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
2878 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
2879 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
2880 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
2881 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
2882 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
2883 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
2884 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
2885 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
2886 .rlen = 496,
2779 }, 2887 },
2780}; 2888};
2781 2889
@@ -2822,8 +2930,62 @@ static struct cipher_testvec tf_dec_tv_template[] = {
2822 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" 2930 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
2823 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" 2931 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
2824 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" 2932 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
2825 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02", 2933 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
2826 .ilen = 64, 2934 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
2935 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
2936 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
2937 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
2938 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
2939 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
2940 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
2941 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
2942 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
2943 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
2944 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
2945 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
2946 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
2947 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
2948 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
2949 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
2950 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
2951 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
2952 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
2953 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
2954 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
2955 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
2956 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
2957 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
2958 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
2959 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
2960 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
2961 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
2962 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
2963 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
2964 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
2965 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
2966 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
2967 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
2968 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
2969 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
2970 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
2971 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
2972 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
2973 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
2974 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
2975 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
2976 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
2977 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
2978 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
2979 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
2980 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
2981 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
2982 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
2983 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
2984 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
2985 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
2986 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
2987 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
2988 .ilen = 496,
2827 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" 2989 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
2828 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" 2990 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
2829 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" 2991 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
@@ -2831,8 +2993,62 @@ static struct cipher_testvec tf_dec_tv_template[] = {
2831 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 2993 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
2832 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 2994 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
2833 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 2995 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
2834 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C", 2996 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
2835 .rlen = 64, 2997 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
2998 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
2999 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
3000 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
3001 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
3002 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
3003 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
3004 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
3005 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
3006 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
3007 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
3008 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
3009 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
3010 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
3011 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
3012 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
3013 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
3014 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
3015 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
3016 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
3017 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
3018 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
3019 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
3020 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
3021 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
3022 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
3023 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
3024 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
3025 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
3026 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
3027 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
3028 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
3029 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
3030 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
3031 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
3032 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
3033 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
3034 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
3035 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
3036 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
3037 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
3038 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
3039 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
3040 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
3041 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
3042 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
3043 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
3044 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
3045 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
3046 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
3047 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
3048 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
3049 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
3050 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
3051 .rlen = 496,
2836 }, 3052 },
2837}; 3053};
2838 3054
@@ -2894,8 +3110,62 @@ static struct cipher_testvec tf_cbc_enc_tv_template[] = {
2894 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 3110 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
2895 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 3111 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
2896 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 3112 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
2897 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C", 3113 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
2898 .ilen = 64, 3114 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
3115 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
3116 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
3117 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
3118 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
3119 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
3120 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
3121 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
3122 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
3123 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
3124 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
3125 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
3126 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
3127 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
3128 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
3129 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
3130 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
3131 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
3132 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
3133 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
3134 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
3135 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
3136 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
3137 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
3138 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
3139 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
3140 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
3141 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
3142 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
3143 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
3144 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
3145 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
3146 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
3147 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
3148 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
3149 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
3150 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
3151 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
3152 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
3153 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
3154 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
3155 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
3156 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
3157 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
3158 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
3159 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
3160 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
3161 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
3162 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
3163 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
3164 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
3165 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
3166 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
3167 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
3168 .ilen = 496,
2899 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" 3169 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
2900 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" 3170 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
2901 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" 3171 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
@@ -2903,8 +3173,62 @@ static struct cipher_testvec tf_cbc_enc_tv_template[] = {
2903 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" 3173 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
2904 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" 3174 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
2905 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" 3175 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
2906 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38", 3176 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
2907 .rlen = 64, 3177 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
3178 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
3179 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
3180 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
3181 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
3182 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
3183 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
3184 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
3185 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
3186 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
3187 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
3188 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
3189 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
3190 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
3191 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
3192 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
3193 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
3194 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
3195 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
3196 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
3197 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
3198 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
3199 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
3200 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
3201 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
3202 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
3203 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
3204 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
3205 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
3206 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
3207 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
3208 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
3209 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
3210 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
3211 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
3212 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
3213 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
3214 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
3215 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
3216 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
3217 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
3218 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
3219 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
3220 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
3221 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
3222 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
3223 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
3224 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
3225 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
3226 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
3227 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
3228 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
3229 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
3230 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
3231 .rlen = 496,
2908 }, 3232 },
2909}; 3233};
2910 3234
@@ -2966,8 +3290,62 @@ static struct cipher_testvec tf_cbc_dec_tv_template[] = {
2966 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" 3290 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
2967 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" 3291 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
2968 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" 3292 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
2969 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38", 3293 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
2970 .ilen = 64, 3294 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
3295 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
3296 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
3297 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
3298 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
3299 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
3300 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
3301 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
3302 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
3303 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
3304 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
3305 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
3306 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
3307 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
3308 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
3309 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
3310 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
3311 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
3312 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
3313 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
3314 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
3315 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
3316 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
3317 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
3318 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
3319 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
3320 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
3321 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
3322 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
3323 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
3324 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
3325 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
3326 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
3327 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
3328 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
3329 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
3330 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
3331 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
3332 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
3333 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
3334 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
3335 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
3336 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
3337 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
3338 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
3339 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
3340 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
3341 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
3342 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
3343 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
3344 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
3345 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
3346 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
3347 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
3348 .ilen = 496,
2971 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" 3349 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
2972 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" 3350 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
2973 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" 3351 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
@@ -2975,8 +3353,62 @@ static struct cipher_testvec tf_cbc_dec_tv_template[] = {
2975 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 3353 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
2976 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 3354 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
2977 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 3355 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
2978 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C", 3356 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
2979 .rlen = 64, 3357 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
3358 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
3359 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
3360 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
3361 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
3362 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
3363 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
3364 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
3365 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
3366 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
3367 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
3368 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
3369 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
3370 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
3371 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
3372 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
3373 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
3374 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
3375 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
3376 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
3377 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
3378 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
3379 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
3380 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
3381 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
3382 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
3383 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
3384 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
3385 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
3386 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
3387 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
3388 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
3389 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
3390 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
3391 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
3392 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
3393 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
3394 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
3395 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
3396 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
3397 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
3398 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
3399 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
3400 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
3401 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
3402 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
3403 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
3404 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
3405 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
3406 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
3407 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
3408 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
3409 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
3410 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
3411 .rlen = 496,
2980 }, 3412 },
2981}; 3413};
2982 3414
@@ -2996,8 +3428,62 @@ static struct cipher_testvec tf_ctr_enc_tv_template[] = {
2996 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 3428 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
2997 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 3429 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
2998 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 3430 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
2999 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C", 3431 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
3000 .ilen = 64, 3432 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
3433 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
3434 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
3435 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
3436 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
3437 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
3438 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
3439 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
3440 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
3441 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
3442 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
3443 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
3444 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
3445 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
3446 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
3447 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
3448 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
3449 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
3450 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
3451 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
3452 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
3453 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
3454 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
3455 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
3456 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
3457 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
3458 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
3459 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
3460 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
3461 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
3462 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
3463 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
3464 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
3465 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
3466 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
3467 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
3468 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
3469 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
3470 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
3471 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
3472 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
3473 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
3474 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
3475 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
3476 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
3477 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
3478 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
3479 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
3480 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
3481 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
3482 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
3483 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
3484 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
3485 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
3486 .ilen = 496,
3001 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" 3487 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
3002 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" 3488 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
3003 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" 3489 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
@@ -3005,8 +3491,62 @@ static struct cipher_testvec tf_ctr_enc_tv_template[] = {
3005 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" 3491 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
3006 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" 3492 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
3007 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" 3493 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
3008 "\x01\x41\x21\x12\x38\xAB\x52\x4F", 3494 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
3009 .rlen = 64, 3495 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
3496 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
3497 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
3498 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
3499 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
3500 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
3501 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
3502 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
3503 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
3504 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
3505 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
3506 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
3507 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
3508 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
3509 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
3510 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
3511 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
3512 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
3513 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
3514 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
3515 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
3516 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
3517 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
3518 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
3519 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
3520 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
3521 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
3522 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
3523 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
3524 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
3525 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
3526 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
3527 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
3528 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
3529 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
3530 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
3531 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
3532 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
3533 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
3534 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
3535 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
3536 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
3537 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
3538 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
3539 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
3540 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
3541 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
3542 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
3543 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
3544 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
3545 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
3546 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
3547 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
3548 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
3549 .rlen = 496,
3010 }, { /* Generated with Crypto++ */ 3550 }, { /* Generated with Crypto++ */
3011 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" 3551 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
3012 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" 3552 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
@@ -3023,8 +3563,62 @@ static struct cipher_testvec tf_ctr_enc_tv_template[] = {
3023 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 3563 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
3024 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 3564 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
3025 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" 3565 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
3026 "\xC3\x37\xCE", 3566 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
3027 .ilen = 67, 3567 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
3568 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
3569 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
3570 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
3571 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
3572 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
3573 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
3574 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
3575 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
3576 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
3577 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
3578 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
3579 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
3580 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
3581 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
3582 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
3583 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
3584 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
3585 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
3586 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
3587 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
3588 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
3589 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
3590 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
3591 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
3592 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
3593 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
3594 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
3595 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
3596 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
3597 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
3598 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
3599 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
3600 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
3601 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
3602 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
3603 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
3604 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
3605 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
3606 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
3607 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
3608 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
3609 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
3610 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
3611 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
3612 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
3613 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
3614 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
3615 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
3616 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
3617 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
3618 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
3619 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
3620 "\x2B\xC2\x59",
3621 .ilen = 499,
3028 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" 3622 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
3029 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" 3623 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
3030 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" 3624 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
@@ -3033,8 +3627,62 @@ static struct cipher_testvec tf_ctr_enc_tv_template[] = {
3033 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" 3627 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
3034 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" 3628 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
3035 "\x01\x41\x21\x12\x38\xAB\x52\x4F" 3629 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
3036 "\xA8\x57\x20", 3630 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
3037 .rlen = 67, 3631 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
3632 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
3633 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
3634 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
3635 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
3636 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
3637 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
3638 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
3639 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
3640 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
3641 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
3642 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
3643 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
3644 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
3645 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
3646 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
3647 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
3648 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
3649 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
3650 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
3651 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
3652 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
3653 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
3654 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
3655 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
3656 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
3657 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
3658 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
3659 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
3660 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
3661 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
3662 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
3663 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
3664 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
3665 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
3666 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
3667 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
3668 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
3669 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
3670 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
3671 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
3672 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
3673 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
3674 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
3675 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
3676 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
3677 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
3678 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
3679 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
3680 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
3681 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
3682 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
3683 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
3684 "\x6C\x82\x9D",
3685 .rlen = 499,
3038 }, 3686 },
3039}; 3687};
3040 3688
@@ -3054,8 +3702,62 @@ static struct cipher_testvec tf_ctr_dec_tv_template[] = {
3054 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" 3702 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
3055 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" 3703 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
3056 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" 3704 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
3057 "\x01\x41\x21\x12\x38\xAB\x52\x4F", 3705 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
3058 .ilen = 64, 3706 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
3707 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
3708 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
3709 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
3710 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
3711 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
3712 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
3713 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
3714 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
3715 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
3716 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
3717 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
3718 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
3719 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
3720 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
3721 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
3722 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
3723 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
3724 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
3725 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
3726 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
3727 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
3728 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
3729 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
3730 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
3731 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
3732 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
3733 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
3734 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
3735 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
3736 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
3737 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
3738 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
3739 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
3740 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
3741 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
3742 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
3743 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
3744 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
3745 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
3746 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
3747 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
3748 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
3749 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
3750 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
3751 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
3752 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
3753 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
3754 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
3755 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
3756 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
3757 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
3758 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
3759 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
3760 .ilen = 496,
3059 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" 3761 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
3060 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" 3762 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
3061 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" 3763 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
@@ -3063,8 +3765,62 @@ static struct cipher_testvec tf_ctr_dec_tv_template[] = {
3063 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" 3765 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
3064 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 3766 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
3065 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 3767 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
3066 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C", 3768 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
3067 .rlen = 64, 3769 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
3770 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
3771 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
3772 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
3773 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
3774 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
3775 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
3776 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
3777 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
3778 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
3779 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
3780 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
3781 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
3782 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
3783 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
3784 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
3785 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
3786 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
3787 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
3788 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
3789 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
3790 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
3791 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
3792 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
3793 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
3794 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
3795 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
3796 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
3797 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
3798 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
3799 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
3800 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
3801 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
3802 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
3803 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
3804 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
3805 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
3806 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
3807 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
3808 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
3809 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
3810 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
3811 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
3812 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
3813 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
3814 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
3815 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
3816 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
3817 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
3818 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
3819 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
3820 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
3821 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
3822 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
3823 .rlen = 496,
3068 }, { /* Generated with Crypto++ */ 3824 }, { /* Generated with Crypto++ */
3069 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" 3825 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
3070 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" 3826 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
@@ -3081,8 +3837,62 @@ static struct cipher_testvec tf_ctr_dec_tv_template[] = {
3081 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" 3837 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
3082 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" 3838 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
3083 "\x01\x41\x21\x12\x38\xAB\x52\x4F" 3839 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
3084 "\xA8\x57\x20", 3840 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
3085 .ilen = 67, 3841 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
3842 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
3843 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
3844 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
3845 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
3846 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
3847 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
3848 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
3849 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
3850 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
3851 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
3852 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
3853 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
3854 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
3855 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
3856 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
3857 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
3858 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
3859 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
3860 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
3861 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
3862 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
3863 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
3864 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
3865 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
3866 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
3867 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
3868 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
3869 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
3870 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
3871 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
3872 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
3873 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
3874 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
3875 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
3876 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
3877 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
3878 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
3879 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
3880 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
3881 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
3882 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
3883 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
3884 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
3885 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
3886 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
3887 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
3888 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
3889 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
3890 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
3891 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
3892 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
3893 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
3894 "\x6C\x82\x9D",
3895 .ilen = 499,
3086 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" 3896 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
3087 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" 3897 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
3088 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" 3898 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
@@ -3091,8 +3901,62 @@ static struct cipher_testvec tf_ctr_dec_tv_template[] = {
3091 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" 3901 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
3092 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" 3902 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
3093 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" 3903 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
3094 "\xC3\x37\xCE", 3904 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
3095 .rlen = 67, 3905 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
3906 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
3907 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
3908 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
3909 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
3910 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
3911 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
3912 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
3913 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
3914 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
3915 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
3916 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
3917 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
3918 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
3919 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
3920 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
3921 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
3922 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
3923 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
3924 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
3925 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
3926 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
3927 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
3928 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
3929 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
3930 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
3931 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
3932 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
3933 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
3934 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
3935 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
3936 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
3937 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
3938 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
3939 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
3940 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
3941 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
3942 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
3943 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
3944 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
3945 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
3946 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
3947 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
3948 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
3949 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
3950 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
3951 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
3952 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
3953 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
3954 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
3955 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
3956 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
3957 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
3958 "\x2B\xC2\x59",
3959 .rlen = 499,
3096 }, 3960 },
3097}; 3961};
3098 3962