diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-10-20 07:53:07 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-10-24 09:10:52 -0400 |
commit | 8163fc30d1316c3ecf6f88bc49b44af4aeb2dbf2 (patch) | |
tree | a9ce23ea674015892def027cbf2d0277e4889dbb /crypto | |
parent | c3b9e8f6a4e8d0cc734fd95a980d021e0853d1fd (diff) |
crypto: testmgr - add new larger DES testvectors
Most DES 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 DES.
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/tcrypt.c | 1 | ||||
-rw-r--r-- | crypto/testmgr.c | 15 | ||||
-rw-r--r-- | crypto/testmgr.h | 584 |
3 files changed, 596 insertions, 4 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 7a3c4500f06d..631b9129130b 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -971,6 +971,7 @@ static int do_test(int m) | |||
971 | case 3: | 971 | case 3: |
972 | ret += tcrypt_test("ecb(des)"); | 972 | ret += tcrypt_test("ecb(des)"); |
973 | ret += tcrypt_test("cbc(des)"); | 973 | ret += tcrypt_test("cbc(des)"); |
974 | ret += tcrypt_test("ctr(des)"); | ||
974 | break; | 975 | break; |
975 | 976 | ||
976 | case 4: | 977 | case 4: |
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 941d75cd1f7c..8655309fe713 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -2336,6 +2336,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2336 | } | 2336 | } |
2337 | } | 2337 | } |
2338 | }, { | 2338 | }, { |
2339 | .alg = "ctr(des)", | ||
2340 | .test = alg_test_skcipher, | ||
2341 | .suite = { | ||
2342 | .cipher = { | ||
2343 | .enc = { | ||
2344 | .vecs = des_ctr_enc_tv_template, | ||
2345 | .count = DES_CTR_ENC_TEST_VECTORS | ||
2346 | }, | ||
2347 | .dec = { | ||
2348 | .vecs = des_ctr_dec_tv_template, | ||
2349 | .count = DES_CTR_DEC_TEST_VECTORS | ||
2350 | } | ||
2351 | } | ||
2352 | } | ||
2353 | }, { | ||
2339 | .alg = "ctr(serpent)", | 2354 | .alg = "ctr(serpent)", |
2340 | .test = alg_test_skcipher, | 2355 | .test = alg_test_skcipher, |
2341 | .suite = { | 2356 | .suite = { |
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index b0258f39e369..3e1a27b00941 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h | |||
@@ -2024,10 +2024,12 @@ static struct hash_testvec hmac_sha512_tv_template[] = { | |||
2024 | /* | 2024 | /* |
2025 | * DES test vectors. | 2025 | * DES test vectors. |
2026 | */ | 2026 | */ |
2027 | #define DES_ENC_TEST_VECTORS 10 | 2027 | #define DES_ENC_TEST_VECTORS 11 |
2028 | #define DES_DEC_TEST_VECTORS 4 | 2028 | #define DES_DEC_TEST_VECTORS 5 |
2029 | #define DES_CBC_ENC_TEST_VECTORS 5 | 2029 | #define DES_CBC_ENC_TEST_VECTORS 6 |
2030 | #define DES_CBC_DEC_TEST_VECTORS 4 | 2030 | #define DES_CBC_DEC_TEST_VECTORS 5 |
2031 | #define DES_CTR_ENC_TEST_VECTORS 2 | ||
2032 | #define DES_CTR_DEC_TEST_VECTORS 2 | ||
2031 | #define DES3_EDE_ENC_TEST_VECTORS 3 | 2033 | #define DES3_EDE_ENC_TEST_VECTORS 3 |
2032 | #define DES3_EDE_DEC_TEST_VECTORS 3 | 2034 | #define DES3_EDE_DEC_TEST_VECTORS 3 |
2033 | #define DES3_EDE_CBC_ENC_TEST_VECTORS 1 | 2035 | #define DES3_EDE_CBC_ENC_TEST_VECTORS 1 |
@@ -2134,6 +2136,76 @@ static struct cipher_testvec des_enc_tv_template[] = { | |||
2134 | .rlen = 8, | 2136 | .rlen = 8, |
2135 | .np = 8, | 2137 | .np = 8, |
2136 | .tap = { 1, 1, 1, 1, 1, 1, 1, 1 } | 2138 | .tap = { 1, 1, 1, 1, 1, 1, 1, 1 } |
2139 | }, { /* Generated with Crypto++ */ | ||
2140 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2141 | .klen = 8, | ||
2142 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2143 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2144 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2145 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2146 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2147 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2148 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2149 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2150 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2151 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2152 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2153 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2154 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2155 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2156 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2157 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2158 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2159 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2160 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2161 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2162 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2163 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2164 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2165 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2166 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2167 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2168 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2169 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2170 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2171 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2172 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", | ||
2173 | .ilen = 248, | ||
2174 | .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" | ||
2175 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" | ||
2176 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" | ||
2177 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" | ||
2178 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" | ||
2179 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" | ||
2180 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" | ||
2181 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" | ||
2182 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" | ||
2183 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" | ||
2184 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" | ||
2185 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" | ||
2186 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" | ||
2187 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" | ||
2188 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" | ||
2189 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" | ||
2190 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" | ||
2191 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" | ||
2192 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" | ||
2193 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" | ||
2194 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" | ||
2195 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" | ||
2196 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" | ||
2197 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" | ||
2198 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" | ||
2199 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" | ||
2200 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" | ||
2201 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" | ||
2202 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" | ||
2203 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" | ||
2204 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", | ||
2205 | .rlen = 248, | ||
2206 | .also_non_np = 1, | ||
2207 | .np = 2, | ||
2208 | .tap = { 248 - 8, 8 }, | ||
2137 | }, | 2209 | }, |
2138 | }; | 2210 | }; |
2139 | 2211 | ||
@@ -2174,6 +2246,76 @@ static struct cipher_testvec des_dec_tv_template[] = { | |||
2174 | .rlen = 16, | 2246 | .rlen = 16, |
2175 | .np = 3, | 2247 | .np = 3, |
2176 | .tap = { 3, 12, 1 } | 2248 | .tap = { 3, 12, 1 } |
2249 | }, { /* Generated with Crypto++ */ | ||
2250 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2251 | .klen = 8, | ||
2252 | .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" | ||
2253 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" | ||
2254 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" | ||
2255 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" | ||
2256 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" | ||
2257 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" | ||
2258 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" | ||
2259 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" | ||
2260 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" | ||
2261 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" | ||
2262 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" | ||
2263 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" | ||
2264 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" | ||
2265 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" | ||
2266 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" | ||
2267 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" | ||
2268 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" | ||
2269 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" | ||
2270 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" | ||
2271 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" | ||
2272 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" | ||
2273 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" | ||
2274 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" | ||
2275 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" | ||
2276 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" | ||
2277 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" | ||
2278 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" | ||
2279 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" | ||
2280 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" | ||
2281 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" | ||
2282 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", | ||
2283 | .ilen = 248, | ||
2284 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2285 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2286 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2287 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2288 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2289 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2290 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2291 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2292 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2293 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2294 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2295 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2296 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2297 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2298 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2299 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2300 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2301 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2302 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2303 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2304 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2305 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2306 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2307 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2308 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2309 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2310 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2311 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2312 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2313 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2314 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", | ||
2315 | .rlen = 248, | ||
2316 | .also_non_np = 1, | ||
2317 | .np = 2, | ||
2318 | .tap = { 248 - 8, 8 }, | ||
2177 | }, | 2319 | }, |
2178 | }; | 2320 | }; |
2179 | 2321 | ||
@@ -2229,6 +2371,77 @@ static struct cipher_testvec des_cbc_enc_tv_template[] = { | |||
2229 | .rlen = 24, | 2371 | .rlen = 24, |
2230 | .np = 2, | 2372 | .np = 2, |
2231 | .tap = { 13, 11 } | 2373 | .tap = { 13, 11 } |
2374 | }, { /* Generated with Crypto++ */ | ||
2375 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2376 | .klen = 8, | ||
2377 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", | ||
2378 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2379 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2380 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2381 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2382 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2383 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2384 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2385 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2386 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2387 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2388 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2389 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2390 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2391 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2392 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2393 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2394 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2395 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2396 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2397 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2398 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2399 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2400 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2401 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2402 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2403 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2404 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2405 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2406 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2407 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2408 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", | ||
2409 | .ilen = 248, | ||
2410 | .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" | ||
2411 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" | ||
2412 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" | ||
2413 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" | ||
2414 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" | ||
2415 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" | ||
2416 | "\x81\x72\x74\xDE\x30\x19\x69\x49" | ||
2417 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" | ||
2418 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" | ||
2419 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" | ||
2420 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" | ||
2421 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" | ||
2422 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" | ||
2423 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" | ||
2424 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" | ||
2425 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" | ||
2426 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" | ||
2427 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" | ||
2428 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" | ||
2429 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" | ||
2430 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" | ||
2431 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" | ||
2432 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" | ||
2433 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" | ||
2434 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" | ||
2435 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" | ||
2436 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" | ||
2437 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" | ||
2438 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" | ||
2439 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" | ||
2440 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", | ||
2441 | .rlen = 248, | ||
2442 | .also_non_np = 1, | ||
2443 | .np = 2, | ||
2444 | .tap = { 248 - 8, 8 }, | ||
2232 | }, | 2445 | }, |
2233 | }; | 2446 | }; |
2234 | 2447 | ||
@@ -2267,6 +2480,369 @@ static struct cipher_testvec des_cbc_dec_tv_template[] = { | |||
2267 | .rlen = 8, | 2480 | .rlen = 8, |
2268 | .np = 2, | 2481 | .np = 2, |
2269 | .tap = { 4, 4 } | 2482 | .tap = { 4, 4 } |
2483 | }, { /* Generated with Crypto++ */ | ||
2484 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2485 | .klen = 8, | ||
2486 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", | ||
2487 | .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" | ||
2488 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" | ||
2489 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" | ||
2490 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" | ||
2491 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" | ||
2492 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" | ||
2493 | "\x81\x72\x74\xDE\x30\x19\x69\x49" | ||
2494 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" | ||
2495 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" | ||
2496 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" | ||
2497 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" | ||
2498 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" | ||
2499 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" | ||
2500 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" | ||
2501 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" | ||
2502 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" | ||
2503 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" | ||
2504 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" | ||
2505 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" | ||
2506 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" | ||
2507 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" | ||
2508 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" | ||
2509 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" | ||
2510 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" | ||
2511 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" | ||
2512 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" | ||
2513 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" | ||
2514 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" | ||
2515 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" | ||
2516 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" | ||
2517 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", | ||
2518 | .ilen = 248, | ||
2519 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2520 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2521 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2522 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2523 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2524 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2525 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2526 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2527 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2528 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2529 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2530 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2531 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2532 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2533 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2534 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2535 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2536 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2537 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2538 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2539 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2540 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2541 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2542 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2543 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2544 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2545 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2546 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2547 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2548 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2549 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", | ||
2550 | .rlen = 248, | ||
2551 | .also_non_np = 1, | ||
2552 | .np = 2, | ||
2553 | .tap = { 248 - 8, 8 }, | ||
2554 | }, | ||
2555 | }; | ||
2556 | |||
2557 | static struct cipher_testvec des_ctr_enc_tv_template[] = { | ||
2558 | { /* Generated with Crypto++ */ | ||
2559 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2560 | .klen = 8, | ||
2561 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", | ||
2562 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2563 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2564 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2565 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2566 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2567 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2568 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2569 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2570 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2571 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2572 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2573 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2574 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2575 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2576 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2577 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2578 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2579 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2580 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2581 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2582 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2583 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2584 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2585 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2586 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2587 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2588 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2589 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2590 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2591 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2592 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", | ||
2593 | .ilen = 248, | ||
2594 | .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" | ||
2595 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" | ||
2596 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" | ||
2597 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" | ||
2598 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" | ||
2599 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" | ||
2600 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" | ||
2601 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" | ||
2602 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" | ||
2603 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" | ||
2604 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" | ||
2605 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" | ||
2606 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" | ||
2607 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" | ||
2608 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" | ||
2609 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" | ||
2610 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" | ||
2611 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" | ||
2612 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" | ||
2613 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" | ||
2614 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" | ||
2615 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" | ||
2616 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" | ||
2617 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" | ||
2618 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" | ||
2619 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" | ||
2620 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" | ||
2621 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" | ||
2622 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" | ||
2623 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" | ||
2624 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", | ||
2625 | .rlen = 248, | ||
2626 | .also_non_np = 1, | ||
2627 | .np = 2, | ||
2628 | .tap = { 248 - 8, 8 }, | ||
2629 | }, { /* Generated with Crypto++ */ | ||
2630 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2631 | .klen = 8, | ||
2632 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", | ||
2633 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2634 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2635 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2636 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2637 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2638 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2639 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2640 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2641 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2642 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2643 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2644 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2645 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2646 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2647 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2648 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2649 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2650 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2651 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2652 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2653 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2654 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2655 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2656 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2657 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2658 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2659 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2660 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2661 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2662 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2663 | "\xC6\x2F\xBB\x24\x8D\x19\x82", | ||
2664 | .ilen = 247, | ||
2665 | .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" | ||
2666 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" | ||
2667 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" | ||
2668 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" | ||
2669 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" | ||
2670 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" | ||
2671 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" | ||
2672 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" | ||
2673 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" | ||
2674 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" | ||
2675 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" | ||
2676 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" | ||
2677 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" | ||
2678 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" | ||
2679 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" | ||
2680 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" | ||
2681 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" | ||
2682 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" | ||
2683 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" | ||
2684 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" | ||
2685 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" | ||
2686 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" | ||
2687 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" | ||
2688 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" | ||
2689 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" | ||
2690 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" | ||
2691 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" | ||
2692 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" | ||
2693 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" | ||
2694 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" | ||
2695 | "\x91\x45\x05\x3E\x58\xBF\x32", | ||
2696 | .rlen = 247, | ||
2697 | .also_non_np = 1, | ||
2698 | .np = 2, | ||
2699 | .tap = { 247 - 8, 8 }, | ||
2700 | }, | ||
2701 | }; | ||
2702 | |||
2703 | static struct cipher_testvec des_ctr_dec_tv_template[] = { | ||
2704 | { /* Generated with Crypto++ */ | ||
2705 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2706 | .klen = 8, | ||
2707 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", | ||
2708 | .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" | ||
2709 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" | ||
2710 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" | ||
2711 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" | ||
2712 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" | ||
2713 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" | ||
2714 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" | ||
2715 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" | ||
2716 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" | ||
2717 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" | ||
2718 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" | ||
2719 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" | ||
2720 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" | ||
2721 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" | ||
2722 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" | ||
2723 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" | ||
2724 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" | ||
2725 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" | ||
2726 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" | ||
2727 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" | ||
2728 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" | ||
2729 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" | ||
2730 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" | ||
2731 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" | ||
2732 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" | ||
2733 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" | ||
2734 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" | ||
2735 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" | ||
2736 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" | ||
2737 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" | ||
2738 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", | ||
2739 | .ilen = 248, | ||
2740 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2741 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2742 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2743 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2744 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2745 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2746 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2747 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2748 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2749 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2750 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2751 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2752 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2753 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2754 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2755 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2756 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2757 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2758 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2759 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2760 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2761 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2762 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2763 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2764 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2765 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2766 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2767 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2768 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2769 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2770 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", | ||
2771 | .rlen = 248, | ||
2772 | .also_non_np = 1, | ||
2773 | .np = 2, | ||
2774 | .tap = { 248 - 8, 8 }, | ||
2775 | }, { /* Generated with Crypto++ */ | ||
2776 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", | ||
2777 | .klen = 8, | ||
2778 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", | ||
2779 | .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" | ||
2780 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" | ||
2781 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" | ||
2782 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" | ||
2783 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" | ||
2784 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" | ||
2785 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" | ||
2786 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" | ||
2787 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" | ||
2788 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" | ||
2789 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" | ||
2790 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" | ||
2791 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" | ||
2792 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" | ||
2793 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" | ||
2794 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" | ||
2795 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" | ||
2796 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" | ||
2797 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" | ||
2798 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" | ||
2799 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" | ||
2800 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" | ||
2801 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" | ||
2802 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" | ||
2803 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" | ||
2804 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" | ||
2805 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" | ||
2806 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" | ||
2807 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" | ||
2808 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" | ||
2809 | "\x91\x45\x05\x3E\x58\xBF\x32", | ||
2810 | .ilen = 247, | ||
2811 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" | ||
2812 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" | ||
2813 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" | ||
2814 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" | ||
2815 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" | ||
2816 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" | ||
2817 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" | ||
2818 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" | ||
2819 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" | ||
2820 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" | ||
2821 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" | ||
2822 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" | ||
2823 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" | ||
2824 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" | ||
2825 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" | ||
2826 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" | ||
2827 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" | ||
2828 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" | ||
2829 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" | ||
2830 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" | ||
2831 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" | ||
2832 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" | ||
2833 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" | ||
2834 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" | ||
2835 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" | ||
2836 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" | ||
2837 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" | ||
2838 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" | ||
2839 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" | ||
2840 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" | ||
2841 | "\xC6\x2F\xBB\x24\x8D\x19\x82", | ||
2842 | .rlen = 247, | ||
2843 | .also_non_np = 1, | ||
2844 | .np = 2, | ||
2845 | .tap = { 247 - 8, 8 }, | ||
2270 | }, | 2846 | }, |
2271 | }; | 2847 | }; |
2272 | 2848 | ||