aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r--crypto/testmgr.h810
1 files changed, 808 insertions, 2 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index f8179e0344ed..9309948a7028 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -12125,8 +12125,12 @@ static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
12125}; 12125};
12126 12126
12127/* Cast5 test vectors from RFC 2144 */ 12127/* Cast5 test vectors from RFC 2144 */
12128#define CAST5_ENC_TEST_VECTORS 3 12128#define CAST5_ENC_TEST_VECTORS 4
12129#define CAST5_DEC_TEST_VECTORS 3 12129#define CAST5_DEC_TEST_VECTORS 4
12130#define CAST5_CBC_ENC_TEST_VECTORS 1
12131#define CAST5_CBC_DEC_TEST_VECTORS 1
12132#define CAST5_CTR_ENC_TEST_VECTORS 1
12133#define CAST5_CTR_DEC_TEST_VECTORS 1
12130 12134
12131static struct cipher_testvec cast5_enc_tv_template[] = { 12135static struct cipher_testvec cast5_enc_tv_template[] = {
12132 { 12136 {
@@ -12152,6 +12156,137 @@ static struct cipher_testvec cast5_enc_tv_template[] = {
12152 .ilen = 8, 12156 .ilen = 8,
12153 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", 12157 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
12154 .rlen = 8, 12158 .rlen = 8,
12159 }, { /* Generated from TF test vectors */
12160 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12161 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
12162 .klen = 16,
12163 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
12164 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12165 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12166 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12167 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12168 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12169 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12170 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12171 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12172 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12173 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12174 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12175 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12176 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12177 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12178 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12179 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12180 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12181 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12182 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12183 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12184 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12185 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12186 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12187 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12188 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12189 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12190 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12191 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12192 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12193 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12194 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12195 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12196 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12197 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12198 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12199 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12200 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12201 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12202 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12203 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12204 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12205 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12206 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12207 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12208 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12209 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12210 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12211 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12212 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12213 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12214 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12215 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12216 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12217 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12218 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12219 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12220 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12221 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12222 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12223 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12224 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12225 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12226 .ilen = 496,
12227 .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
12228 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
12229 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
12230 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
12231 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
12232 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
12233 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
12234 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
12235 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
12236 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
12237 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
12238 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
12239 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
12240 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
12241 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
12242 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
12243 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
12244 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
12245 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
12246 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
12247 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
12248 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
12249 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
12250 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
12251 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
12252 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
12253 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
12254 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
12255 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
12256 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
12257 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
12258 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
12259 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
12260 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
12261 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
12262 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
12263 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
12264 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
12265 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
12266 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
12267 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
12268 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
12269 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
12270 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
12271 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
12272 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
12273 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
12274 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
12275 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
12276 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
12277 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
12278 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
12279 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
12280 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
12281 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
12282 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
12283 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
12284 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
12285 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
12286 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
12287 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
12288 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
12289 .rlen = 496,
12155 }, 12290 },
12156}; 12291};
12157 12292
@@ -12179,6 +12314,677 @@ static struct cipher_testvec cast5_dec_tv_template[] = {
12179 .ilen = 8, 12314 .ilen = 8,
12180 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", 12315 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12181 .rlen = 8, 12316 .rlen = 8,
12317 }, { /* Generated from TF test vectors */
12318 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12319 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
12320 .klen = 16,
12321 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
12322 .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
12323 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
12324 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
12325 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
12326 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
12327 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
12328 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
12329 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
12330 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
12331 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
12332 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
12333 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
12334 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
12335 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
12336 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
12337 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
12338 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
12339 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
12340 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
12341 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
12342 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
12343 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
12344 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
12345 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
12346 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
12347 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
12348 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
12349 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
12350 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
12351 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
12352 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
12353 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
12354 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
12355 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
12356 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
12357 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
12358 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
12359 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
12360 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
12361 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
12362 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
12363 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
12364 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
12365 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
12366 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
12367 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
12368 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
12369 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
12370 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
12371 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
12372 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
12373 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
12374 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
12375 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
12376 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
12377 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
12378 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
12379 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
12380 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
12381 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
12382 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
12383 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
12384 .ilen = 496,
12385 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12386 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12387 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12388 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12389 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12390 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12391 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12392 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12393 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12394 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12395 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12396 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12397 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12398 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12399 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12400 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12401 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12402 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12403 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12404 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12405 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12406 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12407 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12408 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12409 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12410 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12411 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12412 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12413 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12414 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12415 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12416 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12417 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12418 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12419 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12420 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12421 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12422 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12423 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12424 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12425 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12426 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12427 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12428 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12429 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12430 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12431 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12432 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12433 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12434 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12435 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12436 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12437 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12438 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12439 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12440 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12441 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12442 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12443 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12444 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12445 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12446 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12447 .rlen = 496,
12448 },
12449};
12450
12451static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
12452 { /* Generated from TF test vectors */
12453 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12454 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
12455 .klen = 16,
12456 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
12457 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12458 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12459 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12460 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12461 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12462 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12463 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12464 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12465 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12466 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12467 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12468 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12469 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12470 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12471 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12472 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12473 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12474 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12475 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12476 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12477 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12478 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12479 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12480 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12481 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12482 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12483 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12484 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12485 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12486 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12487 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12488 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12489 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12490 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12491 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12492 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12493 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12494 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12495 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12496 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12497 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12498 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12499 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12500 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12501 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12502 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12503 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12504 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12505 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12506 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12507 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12508 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12509 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12510 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12511 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12512 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12513 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12514 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12515 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12516 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12517 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12518 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12519 .ilen = 496,
12520 .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
12521 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
12522 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
12523 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
12524 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
12525 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
12526 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
12527 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
12528 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
12529 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
12530 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
12531 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
12532 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
12533 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
12534 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
12535 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
12536 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
12537 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
12538 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
12539 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
12540 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
12541 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
12542 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
12543 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
12544 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
12545 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
12546 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
12547 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
12548 "\x90\x12\x37\x49\x27\x98\x69\x18"
12549 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
12550 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
12551 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
12552 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
12553 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
12554 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
12555 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
12556 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
12557 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
12558 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
12559 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
12560 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
12561 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
12562 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
12563 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
12564 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
12565 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
12566 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
12567 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
12568 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
12569 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
12570 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
12571 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
12572 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
12573 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
12574 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
12575 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
12576 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
12577 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
12578 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
12579 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
12580 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
12581 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
12582 .rlen = 496,
12583 },
12584};
12585
12586static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
12587 { /* Generated from TF test vectors */
12588 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12589 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
12590 .klen = 16,
12591 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
12592 .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
12593 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
12594 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
12595 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
12596 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
12597 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
12598 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
12599 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
12600 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
12601 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
12602 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
12603 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
12604 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
12605 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
12606 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
12607 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
12608 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
12609 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
12610 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
12611 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
12612 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
12613 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
12614 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
12615 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
12616 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
12617 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
12618 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
12619 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
12620 "\x90\x12\x37\x49\x27\x98\x69\x18"
12621 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
12622 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
12623 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
12624 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
12625 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
12626 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
12627 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
12628 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
12629 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
12630 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
12631 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
12632 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
12633 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
12634 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
12635 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
12636 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
12637 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
12638 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
12639 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
12640 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
12641 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
12642 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
12643 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
12644 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
12645 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
12646 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
12647 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
12648 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
12649 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
12650 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
12651 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
12652 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
12653 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
12654 .ilen = 496,
12655 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12656 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12657 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12658 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12659 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12660 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12661 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12662 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12663 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12664 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12665 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12666 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12667 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12668 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12669 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12670 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12671 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12672 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12673 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12674 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12675 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12676 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12677 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12678 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12679 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12680 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12681 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12682 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12683 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12684 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12685 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12686 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12687 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12688 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12689 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12690 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12691 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12692 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12693 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12694 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12695 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12696 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12697 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12698 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12699 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12700 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12701 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12702 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12703 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12704 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12705 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12706 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12707 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12708 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12709 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12710 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12711 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12712 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12713 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12714 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12715 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12716 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12717 .rlen = 496,
12718 },
12719};
12720
12721static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
12722 { /* Generated from TF test vectors */
12723 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12724 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
12725 .klen = 16,
12726 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
12727 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12728 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12729 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12730 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12731 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12732 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12733 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12734 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12735 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12736 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12737 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12738 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12739 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12740 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12741 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12742 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12743 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12744 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12745 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12746 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12747 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12748 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12749 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12750 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12751 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12752 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12753 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12754 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12755 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12756 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12757 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12758 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12759 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12760 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12761 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12762 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12763 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12764 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12765 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12766 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12767 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12768 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12769 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12770 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12771 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12772 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12773 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12774 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12775 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12776 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12777 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12778 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12779 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12780 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12781 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12782 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12783 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12784 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12785 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12786 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12787 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12788 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12789 .ilen = 496,
12790 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
12791 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
12792 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
12793 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
12794 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
12795 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
12796 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
12797 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
12798 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
12799 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
12800 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
12801 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
12802 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
12803 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
12804 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
12805 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
12806 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
12807 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
12808 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
12809 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
12810 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
12811 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
12812 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
12813 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
12814 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
12815 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
12816 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
12817 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
12818 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
12819 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
12820 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
12821 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
12822 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
12823 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
12824 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
12825 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
12826 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
12827 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
12828 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
12829 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
12830 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
12831 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
12832 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
12833 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
12834 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
12835 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
12836 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
12837 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
12838 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
12839 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
12840 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
12841 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
12842 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
12843 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
12844 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
12845 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
12846 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
12847 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
12848 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
12849 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
12850 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
12851 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
12852 .rlen = 496,
12853 },
12854};
12855
12856static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
12857 { /* Generated from TF test vectors */
12858 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12859 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
12860 .klen = 16,
12861 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
12862 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
12863 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
12864 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
12865 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
12866 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
12867 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
12868 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
12869 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
12870 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
12871 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
12872 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
12873 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
12874 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
12875 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
12876 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
12877 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
12878 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
12879 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
12880 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
12881 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
12882 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
12883 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
12884 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
12885 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
12886 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
12887 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
12888 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
12889 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
12890 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
12891 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
12892 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
12893 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
12894 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
12895 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
12896 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
12897 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
12898 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
12899 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
12900 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
12901 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
12902 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
12903 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
12904 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
12905 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
12906 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
12907 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
12908 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
12909 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
12910 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
12911 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
12912 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
12913 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
12914 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
12915 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
12916 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
12917 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
12918 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
12919 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
12920 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
12921 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
12922 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
12923 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
12924 .ilen = 496,
12925 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12926 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12927 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12928 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12929 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12930 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12931 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12932 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12933 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12934 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12935 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12936 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12937 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12938 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12939 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12940 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12941 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12942 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12943 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12944 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12945 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12946 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12947 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12948 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12949 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12950 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12951 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12952 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12953 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12954 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12955 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12956 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12957 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12958 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12959 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12960 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12961 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12962 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12963 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12964 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12965 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12966 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12967 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12968 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12969 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12970 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12971 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12972 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12973 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12974 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12975 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12976 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12977 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12978 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12979 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12980 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12981 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12982 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12983 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12984 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12985 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12986 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12987 .rlen = 496,
12182 }, 12988 },
12183}; 12989};
12184 12990