aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-10-20 07:53:02 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2012-10-24 09:10:52 -0400
commitc3b9e8f6a4e8d0cc734fd95a980d021e0853d1fd (patch)
treee8660bebce1ce33355a8eed92f67f456e9e95ce8 /crypto
parent9f28e97d1c8f1d33638bd5be5e8e805ce704097e (diff)
crypto: testmgr - add new larger AES testvectors
Most AES testvectors are short and do not test parallelised codepaths well. Add larger testvectors to test large crypto operations and to test multi-page crypto with AES. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/testmgr.h1112
1 files changed, 1104 insertions, 8 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index fd593d2f948e..b0258f39e369 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -10985,10 +10985,10 @@ static struct cipher_testvec cast6_xts_dec_tv_template[] = {
10985/* 10985/*
10986 * AES test vectors. 10986 * AES test vectors.
10987 */ 10987 */
10988#define AES_ENC_TEST_VECTORS 3 10988#define AES_ENC_TEST_VECTORS 4
10989#define AES_DEC_TEST_VECTORS 3 10989#define AES_DEC_TEST_VECTORS 4
10990#define AES_CBC_ENC_TEST_VECTORS 4 10990#define AES_CBC_ENC_TEST_VECTORS 5
10991#define AES_CBC_DEC_TEST_VECTORS 4 10991#define AES_CBC_DEC_TEST_VECTORS 5
10992#define HMAC_SHA1_AES_CBC_ENC_TEST_VECTORS 7 10992#define HMAC_SHA1_AES_CBC_ENC_TEST_VECTORS 7
10993#define HMAC_SHA256_AES_CBC_ENC_TEST_VECTORS 7 10993#define HMAC_SHA256_AES_CBC_ENC_TEST_VECTORS 7
10994#define HMAC_SHA512_AES_CBC_ENC_TEST_VECTORS 7 10994#define HMAC_SHA512_AES_CBC_ENC_TEST_VECTORS 7
@@ -10996,8 +10996,8 @@ static struct cipher_testvec cast6_xts_dec_tv_template[] = {
10996#define AES_LRW_DEC_TEST_VECTORS 8 10996#define AES_LRW_DEC_TEST_VECTORS 8
10997#define AES_XTS_ENC_TEST_VECTORS 5 10997#define AES_XTS_ENC_TEST_VECTORS 5
10998#define AES_XTS_DEC_TEST_VECTORS 5 10998#define AES_XTS_DEC_TEST_VECTORS 5
10999#define AES_CTR_ENC_TEST_VECTORS 3 10999#define AES_CTR_ENC_TEST_VECTORS 5
11000#define AES_CTR_DEC_TEST_VECTORS 3 11000#define AES_CTR_DEC_TEST_VECTORS 5
11001#define AES_OFB_ENC_TEST_VECTORS 1 11001#define AES_OFB_ENC_TEST_VECTORS 1
11002#define AES_OFB_DEC_TEST_VECTORS 1 11002#define AES_OFB_DEC_TEST_VECTORS 1
11003#define AES_CTR_3686_ENC_TEST_VECTORS 7 11003#define AES_CTR_3686_ENC_TEST_VECTORS 7
@@ -11045,6 +11045,141 @@ static struct cipher_testvec aes_enc_tv_template[] = {
11045 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" 11045 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
11046 "\xea\xfc\x49\x90\x4b\x49\x60\x89", 11046 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
11047 .rlen = 16, 11047 .rlen = 16,
11048 }, { /* Generated with Crypto++ */
11049 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
11050 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
11051 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
11052 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
11053 .klen = 32,
11054 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11055 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11056 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11057 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11058 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11059 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11060 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11061 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11062 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11063 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11064 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11065 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11066 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11067 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11068 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11069 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11070 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11071 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11072 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11073 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11074 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11075 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11076 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11077 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11078 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11079 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11080 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11081 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11082 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11083 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11084 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11085 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11086 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11087 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11088 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11089 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11090 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11091 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11092 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11093 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11094 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11095 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11096 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11097 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11098 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11099 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11100 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11101 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11102 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11103 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11104 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11105 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11106 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11107 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11108 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11109 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11110 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11111 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11112 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11113 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11114 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11115 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11116 .ilen = 496,
11117 .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
11118 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
11119 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
11120 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
11121 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
11122 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
11123 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
11124 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
11125 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
11126 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
11127 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
11128 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
11129 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
11130 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
11131 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
11132 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
11133 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
11134 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
11135 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
11136 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
11137 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
11138 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
11139 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
11140 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
11141 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
11142 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
11143 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
11144 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
11145 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
11146 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
11147 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
11148 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
11149 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
11150 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
11151 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
11152 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
11153 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
11154 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
11155 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
11156 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
11157 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
11158 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
11159 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
11160 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
11161 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
11162 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
11163 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
11164 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
11165 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
11166 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
11167 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
11168 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
11169 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
11170 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
11171 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
11172 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
11173 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
11174 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
11175 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
11176 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
11177 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
11178 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
11179 .rlen = 496,
11180 .also_non_np = 1,
11181 .np = 2,
11182 .tap = { 496 - 16, 16 },
11048 }, 11183 },
11049}; 11184};
11050 11185
@@ -11082,6 +11217,141 @@ static struct cipher_testvec aes_dec_tv_template[] = {
11082 .result = "\x00\x11\x22\x33\x44\x55\x66\x77" 11217 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
11083 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", 11218 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11084 .rlen = 16, 11219 .rlen = 16,
11220 }, { /* Generated with Crypto++ */
11221 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
11222 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
11223 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
11224 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
11225 .klen = 32,
11226 .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
11227 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
11228 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
11229 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
11230 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
11231 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
11232 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
11233 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
11234 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
11235 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
11236 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
11237 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
11238 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
11239 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
11240 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
11241 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
11242 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
11243 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
11244 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
11245 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
11246 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
11247 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
11248 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
11249 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
11250 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
11251 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
11252 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
11253 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
11254 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
11255 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
11256 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
11257 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
11258 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
11259 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
11260 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
11261 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
11262 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
11263 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
11264 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
11265 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
11266 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
11267 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
11268 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
11269 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
11270 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
11271 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
11272 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
11273 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
11274 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
11275 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
11276 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
11277 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
11278 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
11279 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
11280 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
11281 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
11282 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
11283 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
11284 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
11285 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
11286 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
11287 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
11288 .ilen = 496,
11289 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11290 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11291 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11292 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11293 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11294 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11295 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11296 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11297 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11298 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11299 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11300 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11301 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11302 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11303 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11304 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11305 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11306 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11307 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11308 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11309 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11310 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11311 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11312 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11313 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11314 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11315 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11316 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11317 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11318 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11319 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11320 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11321 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11322 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11323 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11324 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11325 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11326 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11327 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11328 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11329 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11330 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11331 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11332 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11333 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11334 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11335 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11336 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11337 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11338 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11339 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11340 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11341 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11342 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11343 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11344 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11345 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11346 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11347 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11348 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11349 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11350 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11351 .rlen = 496,
11352 .also_non_np = 1,
11353 .np = 2,
11354 .tap = { 496 - 16, 16 },
11085 }, 11355 },
11086}; 11356};
11087 11357
@@ -11164,6 +11434,143 @@ static struct cipher_testvec aes_cbc_enc_tv_template[] = {
11164 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" 11434 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
11165 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", 11435 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
11166 .rlen = 64, 11436 .rlen = 64,
11437 }, { /* Generated with Crypto++ */
11438 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
11439 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
11440 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
11441 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
11442 .klen = 32,
11443 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
11444 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
11445 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11446 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11447 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11448 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11449 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11450 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11451 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11452 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11453 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11454 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11455 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11456 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11457 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11458 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11459 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11460 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11461 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11462 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11463 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11464 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11465 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11466 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11467 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11468 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11469 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11470 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11471 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11472 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11473 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11474 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11475 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11476 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11477 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11478 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11479 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11480 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11481 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11482 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11483 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11484 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11485 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11486 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11487 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11488 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11489 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11490 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11491 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11492 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11493 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11494 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11495 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11496 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11497 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11498 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11499 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11500 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11501 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11502 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11503 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11504 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11505 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11506 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11507 .ilen = 496,
11508 .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
11509 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
11510 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
11511 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
11512 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
11513 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
11514 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
11515 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
11516 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
11517 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
11518 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
11519 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
11520 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
11521 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
11522 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
11523 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
11524 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
11525 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
11526 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
11527 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
11528 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
11529 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
11530 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
11531 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
11532 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
11533 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
11534 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
11535 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
11536 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
11537 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
11538 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
11539 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
11540 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
11541 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
11542 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
11543 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
11544 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
11545 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
11546 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
11547 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
11548 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
11549 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
11550 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
11551 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
11552 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
11553 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
11554 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
11555 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
11556 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
11557 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
11558 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
11559 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
11560 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
11561 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
11562 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
11563 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
11564 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
11565 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
11566 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
11567 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
11568 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
11569 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
11570 .rlen = 496,
11571 .also_non_np = 1,
11572 .np = 2,
11573 .tap = { 496 - 16, 16 },
11167 }, 11574 },
11168}; 11575};
11169 11576
@@ -11246,6 +11653,143 @@ static struct cipher_testvec aes_cbc_dec_tv_template[] = {
11246 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 11653 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11247 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 11654 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11248 .rlen = 64, 11655 .rlen = 64,
11656 }, { /* Generated with Crypto++ */
11657 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
11658 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
11659 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
11660 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
11661 .klen = 32,
11662 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
11663 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
11664 .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
11665 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
11666 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
11667 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
11668 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
11669 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
11670 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
11671 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
11672 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
11673 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
11674 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
11675 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
11676 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
11677 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
11678 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
11679 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
11680 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
11681 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
11682 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
11683 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
11684 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
11685 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
11686 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
11687 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
11688 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
11689 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
11690 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
11691 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
11692 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
11693 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
11694 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
11695 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
11696 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
11697 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
11698 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
11699 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
11700 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
11701 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
11702 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
11703 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
11704 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
11705 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
11706 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
11707 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
11708 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
11709 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
11710 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
11711 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
11712 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
11713 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
11714 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
11715 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
11716 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
11717 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
11718 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
11719 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
11720 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
11721 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
11722 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
11723 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
11724 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
11725 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
11726 .ilen = 496,
11727 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11728 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11729 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11730 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11731 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11732 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11733 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11734 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11735 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11736 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11737 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11738 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11739 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11740 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11741 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11742 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11743 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11744 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11745 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11746 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11747 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11748 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11749 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11750 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11751 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11752 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11753 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11754 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11755 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11756 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11757 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11758 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11759 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11760 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11761 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11762 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11763 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11764 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11765 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11766 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11767 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11768 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11769 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11770 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11771 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11772 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11773 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11774 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11775 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11776 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11777 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11778 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11779 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11780 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11781 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11782 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11783 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11784 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11785 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11786 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11787 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11788 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11789 .rlen = 496,
11790 .also_non_np = 1,
11791 .np = 2,
11792 .tap = { 496 - 16, 16 },
11249 }, 11793 },
11250}; 11794};
11251 11795
@@ -13352,7 +13896,283 @@ static struct cipher_testvec aes_ctr_enc_tv_template[] = {
13352 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" 13896 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
13353 "\x13\xc2\xdd\x08\x45\x79\x41\xa6", 13897 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
13354 .rlen = 64, 13898 .rlen = 64,
13355 } 13899 }, { /* Generated with Crypto++ */
13900 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
13901 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
13902 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
13903 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
13904 .klen = 32,
13905 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
13906 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
13907 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13908 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13909 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13910 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13911 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13912 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13913 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13914 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13915 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13916 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13917 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13918 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13919 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13920 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13921 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13922 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13923 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13924 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13925 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13926 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13927 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13928 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13929 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13930 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13931 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13932 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13933 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13934 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13935 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13936 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13937 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13938 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13939 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13940 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13941 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13942 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13943 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13944 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13945 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13946 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13947 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13948 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13949 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13950 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13951 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13952 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13953 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13954 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13955 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13956 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13957 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13958 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13959 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13960 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13961 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13962 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13963 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13964 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13965 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13966 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13967 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13968 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13969 .ilen = 496,
13970 .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
13971 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
13972 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
13973 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
13974 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
13975 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
13976 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
13977 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
13978 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
13979 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
13980 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
13981 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
13982 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
13983 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
13984 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
13985 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
13986 "\x34\x4B\x31\x69\x84\x66\x96\x44"
13987 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
13988 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
13989 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
13990 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
13991 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
13992 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
13993 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
13994 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
13995 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
13996 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
13997 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
13998 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
13999 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
14000 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
14001 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
14002 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
14003 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
14004 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
14005 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
14006 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
14007 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
14008 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
14009 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
14010 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
14011 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
14012 "\x85\x99\x22\xE8\x91\x38\x70\x83"
14013 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
14014 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
14015 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
14016 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
14017 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
14018 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
14019 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
14020 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
14021 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
14022 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
14023 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
14024 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
14025 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
14026 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
14027 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
14028 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
14029 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
14030 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
14031 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
14032 .rlen = 496,
14033 .also_non_np = 1,
14034 .np = 2,
14035 .tap = { 496 - 16, 16 },
14036 }, { /* Generated with Crypto++ */
14037 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14038 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14039 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14040 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14041 .klen = 32,
14042 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14043 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14044 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14045 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14046 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14047 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14048 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14049 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14050 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14051 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14052 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14053 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14054 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14055 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14056 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14057 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14058 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14059 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14060 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14061 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14062 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14063 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14064 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14065 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14066 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14067 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14068 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14069 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14070 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14071 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14072 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14073 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14074 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14075 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14076 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14077 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14078 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14079 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14080 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14081 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14082 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14083 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14084 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14085 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14086 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14087 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14088 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14089 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14090 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14091 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14092 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14093 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14094 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14095 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14096 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14097 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14098 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14099 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14100 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14101 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14102 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14103 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14104 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14105 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
14106 "\x7B\xE4\x4D",
14107 .ilen = 499,
14108 .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
14109 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
14110 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
14111 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
14112 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
14113 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
14114 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
14115 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
14116 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
14117 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
14118 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
14119 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
14120 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
14121 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
14122 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
14123 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
14124 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
14125 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
14126 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
14127 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
14128 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
14129 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
14130 "\x45\x18\x18\x74\x19\xAD\x71\x01"
14131 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
14132 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
14133 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
14134 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
14135 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
14136 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
14137 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
14138 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
14139 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
14140 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
14141 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
14142 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
14143 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
14144 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
14145 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
14146 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
14147 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
14148 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
14149 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
14150 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
14151 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
14152 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
14153 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
14154 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
14155 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
14156 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
14157 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
14158 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
14159 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
14160 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
14161 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
14162 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
14163 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
14164 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
14165 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
14166 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
14167 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
14168 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
14169 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
14170 "\xFB\xF2\x3F",
14171 .rlen = 499,
14172 .also_non_np = 1,
14173 .np = 2,
14174 .tap = { 499 - 16, 16 },
14175 },
13356}; 14176};
13357 14177
13358static struct cipher_testvec aes_ctr_dec_tv_template[] = { 14178static struct cipher_testvec aes_ctr_dec_tv_template[] = {
@@ -13431,7 +14251,283 @@ static struct cipher_testvec aes_ctr_dec_tv_template[] = {
13431 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" 14251 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13432 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", 14252 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13433 .rlen = 64, 14253 .rlen = 64,
13434 } 14254 }, { /* Generated with Crypto++ */
14255 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14256 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14257 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14258 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14259 .klen = 32,
14260 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
14261 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
14262 .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
14263 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
14264 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
14265 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
14266 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
14267 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
14268 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
14269 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
14270 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
14271 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
14272 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
14273 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
14274 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
14275 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
14276 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
14277 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
14278 "\x34\x4B\x31\x69\x84\x66\x96\x44"
14279 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
14280 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
14281 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
14282 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
14283 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
14284 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
14285 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
14286 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
14287 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
14288 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
14289 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
14290 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
14291 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
14292 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
14293 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
14294 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
14295 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
14296 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
14297 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
14298 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
14299 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
14300 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
14301 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
14302 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
14303 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
14304 "\x85\x99\x22\xE8\x91\x38\x70\x83"
14305 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
14306 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
14307 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
14308 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
14309 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
14310 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
14311 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
14312 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
14313 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
14314 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
14315 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
14316 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
14317 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
14318 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
14319 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
14320 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
14321 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
14322 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
14323 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
14324 .ilen = 496,
14325 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14326 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14327 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14328 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14329 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14330 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14331 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14332 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14333 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14334 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14335 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14336 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14337 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14338 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14339 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14340 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14341 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14342 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14343 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14344 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14345 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14346 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14347 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14348 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14349 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14350 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14351 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14352 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14353 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14354 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14355 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14356 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14357 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14358 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14359 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14360 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14361 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14362 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14363 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14364 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14365 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14366 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14367 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14368 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14369 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14370 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14371 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14372 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14373 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14374 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14375 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14376 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14377 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14378 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14379 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14380 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14381 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14382 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14383 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14384 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14385 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14386 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
14387 .rlen = 496,
14388 .also_non_np = 1,
14389 .np = 2,
14390 .tap = { 496 - 16, 16 },
14391 }, { /* Generated with Crypto++ */
14392 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14393 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14394 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14395 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14396 .klen = 32,
14397 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14398 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14399 .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
14400 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
14401 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
14402 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
14403 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
14404 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
14405 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
14406 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
14407 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
14408 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
14409 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
14410 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
14411 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
14412 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
14413 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
14414 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
14415 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
14416 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
14417 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
14418 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
14419 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
14420 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
14421 "\x45\x18\x18\x74\x19\xAD\x71\x01"
14422 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
14423 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
14424 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
14425 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
14426 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
14427 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
14428 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
14429 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
14430 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
14431 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
14432 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
14433 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
14434 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
14435 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
14436 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
14437 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
14438 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
14439 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
14440 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
14441 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
14442 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
14443 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
14444 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
14445 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
14446 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
14447 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
14448 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
14449 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
14450 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
14451 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
14452 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
14453 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
14454 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
14455 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
14456 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
14457 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
14458 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
14459 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
14460 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
14461 "\xFB\xF2\x3F",
14462 .ilen = 499,
14463 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14464 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14465 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14466 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14467 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14468 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14469 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14470 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14471 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14472 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14473 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14474 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14475 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14476 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14477 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14478 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14479 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14480 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14481 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14482 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14483 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14484 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14485 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14486 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14487 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14488 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14489 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14490 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14491 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14492 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14493 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14494 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14495 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14496 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14497 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14498 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14499 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14500 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14501 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14502 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14503 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14504 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14505 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14506 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14507 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14508 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14509 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14510 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14511 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14512 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14513 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14514 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14515 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14516 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14517 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14518 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14519 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14520 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14521 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14522 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14523 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14524 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
14525 "\x7B\xE4\x4D",
14526 .rlen = 499,
14527 .also_non_np = 1,
14528 .np = 2,
14529 .tap = { 499 - 16, 16 },
14530 },
13435}; 14531};
13436 14532
13437static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = { 14533static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {