diff options
author | Eric Biggers <ebiggers@google.com> | 2018-02-14 13:42:23 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-22 09:16:56 -0500 |
commit | 41b3316e75ee5e8aec7234c9d631582b13a38c7d (patch) | |
tree | dc2678d2a60552da0918702b2764e1ec9e7d701d /crypto/testmgr.h | |
parent | c3bb521bb6ac3023ae236a3a361f951f8d78ecc4 (diff) |
crypto: speck - add test vectors for Speck64-XTS
Add test vectors for Speck64-XTS, generated in userspace using C code.
The inputs were borrowed from the AES-XTS test vectors, with key lengths
adjusted.
xts-speck64-neon passes these tests. However, they aren't currently
applicable for the generic XTS template, as that only supports a 128-bit
block size.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r-- | crypto/testmgr.h | 671 |
1 files changed, 671 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 68f2502d6f0a..73ba22c87da9 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h | |||
@@ -15138,6 +15138,677 @@ static const struct cipher_testvec speck64_dec_tv_template[] = { | |||
15138 | }, | 15138 | }, |
15139 | }; | 15139 | }; |
15140 | 15140 | ||
15141 | /* | ||
15142 | * Speck64-XTS test vectors, taken from the AES-XTS test vectors with the result | ||
15143 | * recomputed with Speck64 as the cipher, and key lengths adjusted | ||
15144 | */ | ||
15145 | |||
15146 | static const struct cipher_testvec speck64_xts_enc_tv_template[] = { | ||
15147 | { | ||
15148 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15149 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15150 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15151 | .klen = 24, | ||
15152 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15153 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15154 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15155 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15156 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15157 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15158 | .ilen = 32, | ||
15159 | .result = "\x84\xaf\x54\x07\x19\xd4\x7c\xa6" | ||
15160 | "\xe4\xfe\xdf\xc4\x1f\x34\xc3\xc2" | ||
15161 | "\x80\xf5\x72\xe7\xcd\xf0\x99\x22" | ||
15162 | "\x35\xa7\x2f\x06\xef\xdc\x51\xaa", | ||
15163 | .rlen = 32, | ||
15164 | }, { | ||
15165 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
15166 | "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
15167 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
15168 | .klen = 24, | ||
15169 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
15170 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15171 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15172 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15173 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15174 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
15175 | .ilen = 32, | ||
15176 | .result = "\x12\x56\x73\xcd\x15\x87\xa8\x59" | ||
15177 | "\xcf\x84\xae\xd9\x1c\x66\xd6\x9f" | ||
15178 | "\xb3\x12\x69\x7e\x36\xeb\x52\xff" | ||
15179 | "\x62\xdd\xba\x90\xb3\xe1\xee\x99", | ||
15180 | .rlen = 32, | ||
15181 | }, { | ||
15182 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" | ||
15183 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" | ||
15184 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
15185 | .klen = 24, | ||
15186 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
15187 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15188 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15189 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15190 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15191 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
15192 | .ilen = 32, | ||
15193 | .result = "\x15\x1b\xe4\x2c\xa2\x5a\x2d\x2c" | ||
15194 | "\x27\x36\xc0\xbf\x5d\xea\x36\x37" | ||
15195 | "\x2d\x1a\x88\xbc\x66\xb5\xd0\x0b" | ||
15196 | "\xa1\xbc\x19\xb2\x0f\x3b\x75\x34", | ||
15197 | .rlen = 32, | ||
15198 | }, { | ||
15199 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
15200 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
15201 | "\x31\x41\x59\x26\x53\x58\x97\x93", | ||
15202 | .klen = 24, | ||
15203 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15204 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15205 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15206 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15207 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15208 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15209 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15210 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15211 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15212 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15213 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15214 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15215 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15216 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15217 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15218 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15219 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15220 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15221 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15222 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15223 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15224 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15225 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15226 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15227 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15228 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15229 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15230 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15231 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15232 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15233 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15234 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15235 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15236 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
15237 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15238 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15239 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15240 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15241 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15242 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15243 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15244 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15245 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15246 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15247 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15248 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15249 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15250 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15251 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15252 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15253 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15254 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15255 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15256 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15257 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15258 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15259 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15260 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15261 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15262 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15263 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15264 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15265 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15266 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15267 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15268 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
15269 | .ilen = 512, | ||
15270 | .result = "\xaf\xa1\x81\xa6\x32\xbb\x15\x8e" | ||
15271 | "\xf8\x95\x2e\xd3\xe6\xee\x7e\x09" | ||
15272 | "\x0c\x1a\xf5\x02\x97\x8b\xe3\xb3" | ||
15273 | "\x11\xc7\x39\x96\xd0\x95\xf4\x56" | ||
15274 | "\xf4\xdd\x03\x38\x01\x44\x2c\xcf" | ||
15275 | "\x88\xae\x8e\x3c\xcd\xe7\xaa\x66" | ||
15276 | "\xfe\x3d\xc6\xfb\x01\x23\x51\x43" | ||
15277 | "\xd5\xd2\x13\x86\x94\x34\xe9\x62" | ||
15278 | "\xf9\x89\xe3\xd1\x7b\xbe\xf8\xef" | ||
15279 | "\x76\x35\x04\x3f\xdb\x23\x9d\x0b" | ||
15280 | "\x85\x42\xb9\x02\xd6\xcc\xdb\x96" | ||
15281 | "\xa7\x6b\x27\xb6\xd4\x45\x8f\x7d" | ||
15282 | "\xae\xd2\x04\xd5\xda\xc1\x7e\x24" | ||
15283 | "\x8c\x73\xbe\x48\x7e\xcf\x65\x28" | ||
15284 | "\x29\xe5\xbe\x54\x30\xcb\x46\x95" | ||
15285 | "\x4f\x2e\x8a\x36\xc8\x27\xc5\xbe" | ||
15286 | "\xd0\x1a\xaf\xab\x26\xcd\x9e\x69" | ||
15287 | "\xa1\x09\x95\x71\x26\xe9\xc4\xdf" | ||
15288 | "\xe6\x31\xc3\x46\xda\xaf\x0b\x41" | ||
15289 | "\x1f\xab\xb1\x8e\xd6\xfc\x0b\xb3" | ||
15290 | "\x82\xc0\x37\x27\xfc\x91\xa7\x05" | ||
15291 | "\xfb\xc5\xdc\x2b\x74\x96\x48\x43" | ||
15292 | "\x5d\x9c\x19\x0f\x60\x63\x3a\x1f" | ||
15293 | "\x6f\xf0\x03\xbe\x4d\xfd\xc8\x4a" | ||
15294 | "\xc6\xa4\x81\x6d\xc3\x12\x2a\x5c" | ||
15295 | "\x07\xff\xf3\x72\x74\x48\xb5\x40" | ||
15296 | "\x50\xb5\xdd\x90\x43\x31\x18\x15" | ||
15297 | "\x7b\xf2\xa6\xdb\x83\xc8\x4b\x4a" | ||
15298 | "\x29\x93\x90\x8b\xda\x07\xf0\x35" | ||
15299 | "\x6d\x90\x88\x09\x4e\x83\xf5\x5b" | ||
15300 | "\x94\x12\xbb\x33\x27\x1d\x3f\x23" | ||
15301 | "\x51\xa8\x7c\x07\xa2\xae\x77\xa6" | ||
15302 | "\x50\xfd\xcc\xc0\x4f\x80\x7a\x9f" | ||
15303 | "\x66\xdd\xcd\x75\x24\x8b\x33\xf7" | ||
15304 | "\x20\xdb\x83\x9b\x4f\x11\x63\x6e" | ||
15305 | "\xcf\x37\xef\xc9\x11\x01\x5c\x45" | ||
15306 | "\x32\x99\x7c\x3c\x9e\x42\x89\xe3" | ||
15307 | "\x70\x6d\x15\x9f\xb1\xe6\xb6\x05" | ||
15308 | "\xfe\x0c\xb9\x49\x2d\x90\x6d\xcc" | ||
15309 | "\x5d\x3f\xc1\xfe\x89\x0a\x2e\x2d" | ||
15310 | "\xa0\xa8\x89\x3b\x73\x39\xa5\x94" | ||
15311 | "\x4c\xa4\xa6\xbb\xa7\x14\x46\x89" | ||
15312 | "\x10\xff\xaf\xef\xca\xdd\x4f\x80" | ||
15313 | "\xb3\xdf\x3b\xab\xd4\xe5\x5a\xc7" | ||
15314 | "\x33\xca\x00\x8b\x8b\x3f\xea\xec" | ||
15315 | "\x68\x8a\xc2\x6d\xfd\xd4\x67\x0f" | ||
15316 | "\x22\x31\xe1\x0e\xfe\x5a\x04\xd5" | ||
15317 | "\x64\xa3\xf1\x1a\x76\x28\xcc\x35" | ||
15318 | "\x36\xa7\x0a\x74\xf7\x1c\x44\x9b" | ||
15319 | "\xc7\x1b\x53\x17\x02\xea\xd1\xad" | ||
15320 | "\x13\x51\x73\xc0\xa0\xb2\x05\x32" | ||
15321 | "\xa8\xa2\x37\x2e\xe1\x7a\x3a\x19" | ||
15322 | "\x26\xb4\x6c\x62\x5d\xb3\x1a\x1d" | ||
15323 | "\x59\xda\xee\x1a\x22\x18\xda\x0d" | ||
15324 | "\x88\x0f\x55\x8b\x72\x62\xfd\xc1" | ||
15325 | "\x69\x13\xcd\x0d\x5f\xc1\x09\x52" | ||
15326 | "\xee\xd6\xe3\x84\x4d\xee\xf6\x88" | ||
15327 | "\xaf\x83\xdc\x76\xf4\xc0\x93\x3f" | ||
15328 | "\x4a\x75\x2f\xb0\x0b\x3e\xc4\x54" | ||
15329 | "\x7d\x69\x8d\x00\x62\x77\x0d\x14" | ||
15330 | "\xbe\x7c\xa6\x7d\xc5\x24\x4f\xf3" | ||
15331 | "\x50\xf7\x5f\xf4\xc2\xca\x41\x97" | ||
15332 | "\x37\xbe\x75\x74\xcd\xf0\x75\x6e" | ||
15333 | "\x25\x23\x94\xbd\xda\x8d\xb0\xd4", | ||
15334 | .rlen = 512, | ||
15335 | }, { | ||
15336 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
15337 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
15338 | "\x62\x49\x77\x57\x24\x70\x93\x69" | ||
15339 | "\x99\x59\x57\x49\x66\x96\x76\x27", | ||
15340 | .klen = 32, | ||
15341 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" | ||
15342 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15343 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15344 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15345 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15346 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15347 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15348 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15349 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15350 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15351 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15352 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15353 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15354 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15355 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15356 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15357 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15358 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15359 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15360 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15361 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15362 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15363 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15364 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15365 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15366 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15367 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15368 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15369 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15370 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15371 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15372 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15373 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15374 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
15375 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15376 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15377 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15378 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15379 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15380 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15381 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15382 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15383 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15384 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15385 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15386 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15387 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15388 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15389 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15390 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15391 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15392 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15393 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15394 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15395 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15396 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15397 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15398 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15399 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15400 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15401 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15402 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15403 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15404 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15405 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15406 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
15407 | .ilen = 512, | ||
15408 | .result = "\x55\xed\x71\xd3\x02\x8e\x15\x3b" | ||
15409 | "\xc6\x71\x29\x2d\x3e\x89\x9f\x59" | ||
15410 | "\x68\x6a\xcc\x8a\x56\x97\xf3\x95" | ||
15411 | "\x4e\x51\x08\xda\x2a\xf8\x6f\x3c" | ||
15412 | "\x78\x16\xea\x80\xdb\x33\x75\x94" | ||
15413 | "\xf9\x29\xc4\x2b\x76\x75\x97\xc7" | ||
15414 | "\xf2\x98\x2c\xf9\xff\xc8\xd5\x2b" | ||
15415 | "\x18\xf1\xaf\xcf\x7c\xc5\x0b\xee" | ||
15416 | "\xad\x3c\x76\x7c\xe6\x27\xa2\x2a" | ||
15417 | "\xe4\x66\xe1\xab\xa2\x39\xfc\x7c" | ||
15418 | "\xf5\xec\x32\x74\xa3\xb8\x03\x88" | ||
15419 | "\x52\xfc\x2e\x56\x3f\xa1\xf0\x9f" | ||
15420 | "\x84\x5e\x46\xed\x20\x89\xb6\x44" | ||
15421 | "\x8d\xd0\xed\x54\x47\x16\xbe\x95" | ||
15422 | "\x8a\xb3\x6b\x72\xc4\x32\x52\x13" | ||
15423 | "\x1b\xb0\x82\xbe\xac\xf9\x70\xa6" | ||
15424 | "\x44\x18\xdd\x8c\x6e\xca\x6e\x45" | ||
15425 | "\x8f\x1e\x10\x07\x57\x25\x98\x7b" | ||
15426 | "\x17\x8c\x78\xdd\x80\xa7\xd9\xd8" | ||
15427 | "\x63\xaf\xb9\x67\x57\xfd\xbc\xdb" | ||
15428 | "\x44\xe9\xc5\x65\xd1\xc7\x3b\xff" | ||
15429 | "\x20\xa0\x80\x1a\xc3\x9a\xad\x5e" | ||
15430 | "\x5d\x3b\xd3\x07\xd9\xf5\xfd\x3d" | ||
15431 | "\x4a\x8b\xa8\xd2\x6e\x7a\x51\x65" | ||
15432 | "\x6c\x8e\x95\xe0\x45\xc9\x5f\x4a" | ||
15433 | "\x09\x3c\x3d\x71\x7f\x0c\x84\x2a" | ||
15434 | "\xc8\x48\x52\x1a\xc2\xd5\xd6\x78" | ||
15435 | "\x92\x1e\xa0\x90\x2e\xea\xf0\xf3" | ||
15436 | "\xdc\x0f\xb1\xaf\x0d\x9b\x06\x2e" | ||
15437 | "\x35\x10\x30\x82\x0d\xe7\xc5\x9b" | ||
15438 | "\xde\x44\x18\xbd\x9f\xd1\x45\xa9" | ||
15439 | "\x7b\x7a\x4a\xad\x35\x65\x27\xca" | ||
15440 | "\xb2\xc3\xd4\x9b\x71\x86\x70\xee" | ||
15441 | "\xf1\x89\x3b\x85\x4b\x5b\xaa\xaf" | ||
15442 | "\xfc\x42\xc8\x31\x59\xbe\x16\x60" | ||
15443 | "\x4f\xf9\xfa\x12\xea\xd0\xa7\x14" | ||
15444 | "\xf0\x7a\xf3\xd5\x8d\xbd\x81\xef" | ||
15445 | "\x52\x7f\x29\x51\x94\x20\x67\x3c" | ||
15446 | "\xd1\xaf\x77\x9f\x22\x5a\x4e\x63" | ||
15447 | "\xe7\xff\x73\x25\xd1\xdd\x96\x8a" | ||
15448 | "\x98\x52\x6d\xf3\xac\x3e\xf2\x18" | ||
15449 | "\x6d\xf6\x0a\x29\xa6\x34\x3d\xed" | ||
15450 | "\xe3\x27\x0d\x9d\x0a\x02\x44\x7e" | ||
15451 | "\x5a\x7e\x67\x0f\x0a\x9e\xd6\xad" | ||
15452 | "\x91\xe6\x4d\x81\x8c\x5c\x59\xaa" | ||
15453 | "\xfb\xeb\x56\x53\xd2\x7d\x4c\x81" | ||
15454 | "\x65\x53\x0f\x41\x11\xbd\x98\x99" | ||
15455 | "\xf9\xc6\xfa\x51\x2e\xa3\xdd\x8d" | ||
15456 | "\x84\x98\xf9\x34\xed\x33\x2a\x1f" | ||
15457 | "\x82\xed\xc1\x73\x98\xd3\x02\xdc" | ||
15458 | "\xe6\xc2\x33\x1d\xa2\xb4\xca\x76" | ||
15459 | "\x63\x51\x34\x9d\x96\x12\xae\xce" | ||
15460 | "\x83\xc9\x76\x5e\xa4\x1b\x53\x37" | ||
15461 | "\x17\xd5\xc0\x80\x1d\x62\xf8\x3d" | ||
15462 | "\x54\x27\x74\xbb\x10\x86\x57\x46" | ||
15463 | "\x68\xe1\xed\x14\xe7\x9d\xfc\x84" | ||
15464 | "\x47\xbc\xc2\xf8\x19\x4b\x99\xcf" | ||
15465 | "\x7a\xe9\xc4\xb8\x8c\x82\x72\x4d" | ||
15466 | "\x7b\x4f\x38\x55\x36\x71\x64\xc1" | ||
15467 | "\xfc\x5c\x75\x52\x33\x02\x18\xf8" | ||
15468 | "\x17\xe1\x2b\xc2\x43\x39\xbd\x76" | ||
15469 | "\x9b\x63\x76\x32\x2f\x19\x72\x10" | ||
15470 | "\x9f\x21\x0c\xf1\x66\x50\x7f\xa5" | ||
15471 | "\x0d\x1f\x46\xe0\xba\xd3\x2f\x3c", | ||
15472 | .rlen = 512, | ||
15473 | .also_non_np = 1, | ||
15474 | .np = 3, | ||
15475 | .tap = { 512 - 20, 4, 16 }, | ||
15476 | } | ||
15477 | }; | ||
15478 | |||
15479 | static const struct cipher_testvec speck64_xts_dec_tv_template[] = { | ||
15480 | { | ||
15481 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15482 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15483 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15484 | .klen = 24, | ||
15485 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15486 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15487 | .input = "\x84\xaf\x54\x07\x19\xd4\x7c\xa6" | ||
15488 | "\xe4\xfe\xdf\xc4\x1f\x34\xc3\xc2" | ||
15489 | "\x80\xf5\x72\xe7\xcd\xf0\x99\x22" | ||
15490 | "\x35\xa7\x2f\x06\xef\xdc\x51\xaa", | ||
15491 | .ilen = 32, | ||
15492 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15493 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15494 | "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15495 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15496 | .rlen = 32, | ||
15497 | }, { | ||
15498 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
15499 | "\x11\x11\x11\x11\x11\x11\x11\x11" | ||
15500 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
15501 | .klen = 24, | ||
15502 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
15503 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15504 | .input = "\x12\x56\x73\xcd\x15\x87\xa8\x59" | ||
15505 | "\xcf\x84\xae\xd9\x1c\x66\xd6\x9f" | ||
15506 | "\xb3\x12\x69\x7e\x36\xeb\x52\xff" | ||
15507 | "\x62\xdd\xba\x90\xb3\xe1\xee\x99", | ||
15508 | .ilen = 32, | ||
15509 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15510 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15511 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15512 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
15513 | .rlen = 32, | ||
15514 | }, { | ||
15515 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" | ||
15516 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" | ||
15517 | "\x22\x22\x22\x22\x22\x22\x22\x22", | ||
15518 | .klen = 24, | ||
15519 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" | ||
15520 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15521 | .input = "\x15\x1b\xe4\x2c\xa2\x5a\x2d\x2c" | ||
15522 | "\x27\x36\xc0\xbf\x5d\xea\x36\x37" | ||
15523 | "\x2d\x1a\x88\xbc\x66\xb5\xd0\x0b" | ||
15524 | "\xa1\xbc\x19\xb2\x0f\x3b\x75\x34", | ||
15525 | .ilen = 32, | ||
15526 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15527 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15528 | "\x44\x44\x44\x44\x44\x44\x44\x44" | ||
15529 | "\x44\x44\x44\x44\x44\x44\x44\x44", | ||
15530 | .rlen = 32, | ||
15531 | }, { | ||
15532 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
15533 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
15534 | "\x31\x41\x59\x26\x53\x58\x97\x93", | ||
15535 | .klen = 24, | ||
15536 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" | ||
15537 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15538 | .input = "\xaf\xa1\x81\xa6\x32\xbb\x15\x8e" | ||
15539 | "\xf8\x95\x2e\xd3\xe6\xee\x7e\x09" | ||
15540 | "\x0c\x1a\xf5\x02\x97\x8b\xe3\xb3" | ||
15541 | "\x11\xc7\x39\x96\xd0\x95\xf4\x56" | ||
15542 | "\xf4\xdd\x03\x38\x01\x44\x2c\xcf" | ||
15543 | "\x88\xae\x8e\x3c\xcd\xe7\xaa\x66" | ||
15544 | "\xfe\x3d\xc6\xfb\x01\x23\x51\x43" | ||
15545 | "\xd5\xd2\x13\x86\x94\x34\xe9\x62" | ||
15546 | "\xf9\x89\xe3\xd1\x7b\xbe\xf8\xef" | ||
15547 | "\x76\x35\x04\x3f\xdb\x23\x9d\x0b" | ||
15548 | "\x85\x42\xb9\x02\xd6\xcc\xdb\x96" | ||
15549 | "\xa7\x6b\x27\xb6\xd4\x45\x8f\x7d" | ||
15550 | "\xae\xd2\x04\xd5\xda\xc1\x7e\x24" | ||
15551 | "\x8c\x73\xbe\x48\x7e\xcf\x65\x28" | ||
15552 | "\x29\xe5\xbe\x54\x30\xcb\x46\x95" | ||
15553 | "\x4f\x2e\x8a\x36\xc8\x27\xc5\xbe" | ||
15554 | "\xd0\x1a\xaf\xab\x26\xcd\x9e\x69" | ||
15555 | "\xa1\x09\x95\x71\x26\xe9\xc4\xdf" | ||
15556 | "\xe6\x31\xc3\x46\xda\xaf\x0b\x41" | ||
15557 | "\x1f\xab\xb1\x8e\xd6\xfc\x0b\xb3" | ||
15558 | "\x82\xc0\x37\x27\xfc\x91\xa7\x05" | ||
15559 | "\xfb\xc5\xdc\x2b\x74\x96\x48\x43" | ||
15560 | "\x5d\x9c\x19\x0f\x60\x63\x3a\x1f" | ||
15561 | "\x6f\xf0\x03\xbe\x4d\xfd\xc8\x4a" | ||
15562 | "\xc6\xa4\x81\x6d\xc3\x12\x2a\x5c" | ||
15563 | "\x07\xff\xf3\x72\x74\x48\xb5\x40" | ||
15564 | "\x50\xb5\xdd\x90\x43\x31\x18\x15" | ||
15565 | "\x7b\xf2\xa6\xdb\x83\xc8\x4b\x4a" | ||
15566 | "\x29\x93\x90\x8b\xda\x07\xf0\x35" | ||
15567 | "\x6d\x90\x88\x09\x4e\x83\xf5\x5b" | ||
15568 | "\x94\x12\xbb\x33\x27\x1d\x3f\x23" | ||
15569 | "\x51\xa8\x7c\x07\xa2\xae\x77\xa6" | ||
15570 | "\x50\xfd\xcc\xc0\x4f\x80\x7a\x9f" | ||
15571 | "\x66\xdd\xcd\x75\x24\x8b\x33\xf7" | ||
15572 | "\x20\xdb\x83\x9b\x4f\x11\x63\x6e" | ||
15573 | "\xcf\x37\xef\xc9\x11\x01\x5c\x45" | ||
15574 | "\x32\x99\x7c\x3c\x9e\x42\x89\xe3" | ||
15575 | "\x70\x6d\x15\x9f\xb1\xe6\xb6\x05" | ||
15576 | "\xfe\x0c\xb9\x49\x2d\x90\x6d\xcc" | ||
15577 | "\x5d\x3f\xc1\xfe\x89\x0a\x2e\x2d" | ||
15578 | "\xa0\xa8\x89\x3b\x73\x39\xa5\x94" | ||
15579 | "\x4c\xa4\xa6\xbb\xa7\x14\x46\x89" | ||
15580 | "\x10\xff\xaf\xef\xca\xdd\x4f\x80" | ||
15581 | "\xb3\xdf\x3b\xab\xd4\xe5\x5a\xc7" | ||
15582 | "\x33\xca\x00\x8b\x8b\x3f\xea\xec" | ||
15583 | "\x68\x8a\xc2\x6d\xfd\xd4\x67\x0f" | ||
15584 | "\x22\x31\xe1\x0e\xfe\x5a\x04\xd5" | ||
15585 | "\x64\xa3\xf1\x1a\x76\x28\xcc\x35" | ||
15586 | "\x36\xa7\x0a\x74\xf7\x1c\x44\x9b" | ||
15587 | "\xc7\x1b\x53\x17\x02\xea\xd1\xad" | ||
15588 | "\x13\x51\x73\xc0\xa0\xb2\x05\x32" | ||
15589 | "\xa8\xa2\x37\x2e\xe1\x7a\x3a\x19" | ||
15590 | "\x26\xb4\x6c\x62\x5d\xb3\x1a\x1d" | ||
15591 | "\x59\xda\xee\x1a\x22\x18\xda\x0d" | ||
15592 | "\x88\x0f\x55\x8b\x72\x62\xfd\xc1" | ||
15593 | "\x69\x13\xcd\x0d\x5f\xc1\x09\x52" | ||
15594 | "\xee\xd6\xe3\x84\x4d\xee\xf6\x88" | ||
15595 | "\xaf\x83\xdc\x76\xf4\xc0\x93\x3f" | ||
15596 | "\x4a\x75\x2f\xb0\x0b\x3e\xc4\x54" | ||
15597 | "\x7d\x69\x8d\x00\x62\x77\x0d\x14" | ||
15598 | "\xbe\x7c\xa6\x7d\xc5\x24\x4f\xf3" | ||
15599 | "\x50\xf7\x5f\xf4\xc2\xca\x41\x97" | ||
15600 | "\x37\xbe\x75\x74\xcd\xf0\x75\x6e" | ||
15601 | "\x25\x23\x94\xbd\xda\x8d\xb0\xd4", | ||
15602 | .ilen = 512, | ||
15603 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15604 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15605 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15606 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15607 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15608 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15609 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15610 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15611 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15612 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15613 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15614 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15615 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15616 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15617 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15618 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15619 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15620 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15621 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15622 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15623 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15624 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15625 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15626 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15627 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15628 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15629 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15630 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15631 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15632 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15633 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15634 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
15635 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15636 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15637 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15638 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15639 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15640 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15641 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15642 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15643 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15644 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15645 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15646 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15647 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15648 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15649 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15650 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15651 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15652 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15653 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15654 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15655 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15656 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15657 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15658 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15659 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15660 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15661 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15662 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15663 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15664 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15665 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15666 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
15667 | .rlen = 512, | ||
15668 | }, { | ||
15669 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" | ||
15670 | "\x23\x53\x60\x28\x74\x71\x35\x26" | ||
15671 | "\x62\x49\x77\x57\x24\x70\x93\x69" | ||
15672 | "\x99\x59\x57\x49\x66\x96\x76\x27", | ||
15673 | .klen = 32, | ||
15674 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" | ||
15675 | "\x00\x00\x00\x00\x00\x00\x00\x00", | ||
15676 | .input = "\x55\xed\x71\xd3\x02\x8e\x15\x3b" | ||
15677 | "\xc6\x71\x29\x2d\x3e\x89\x9f\x59" | ||
15678 | "\x68\x6a\xcc\x8a\x56\x97\xf3\x95" | ||
15679 | "\x4e\x51\x08\xda\x2a\xf8\x6f\x3c" | ||
15680 | "\x78\x16\xea\x80\xdb\x33\x75\x94" | ||
15681 | "\xf9\x29\xc4\x2b\x76\x75\x97\xc7" | ||
15682 | "\xf2\x98\x2c\xf9\xff\xc8\xd5\x2b" | ||
15683 | "\x18\xf1\xaf\xcf\x7c\xc5\x0b\xee" | ||
15684 | "\xad\x3c\x76\x7c\xe6\x27\xa2\x2a" | ||
15685 | "\xe4\x66\xe1\xab\xa2\x39\xfc\x7c" | ||
15686 | "\xf5\xec\x32\x74\xa3\xb8\x03\x88" | ||
15687 | "\x52\xfc\x2e\x56\x3f\xa1\xf0\x9f" | ||
15688 | "\x84\x5e\x46\xed\x20\x89\xb6\x44" | ||
15689 | "\x8d\xd0\xed\x54\x47\x16\xbe\x95" | ||
15690 | "\x8a\xb3\x6b\x72\xc4\x32\x52\x13" | ||
15691 | "\x1b\xb0\x82\xbe\xac\xf9\x70\xa6" | ||
15692 | "\x44\x18\xdd\x8c\x6e\xca\x6e\x45" | ||
15693 | "\x8f\x1e\x10\x07\x57\x25\x98\x7b" | ||
15694 | "\x17\x8c\x78\xdd\x80\xa7\xd9\xd8" | ||
15695 | "\x63\xaf\xb9\x67\x57\xfd\xbc\xdb" | ||
15696 | "\x44\xe9\xc5\x65\xd1\xc7\x3b\xff" | ||
15697 | "\x20\xa0\x80\x1a\xc3\x9a\xad\x5e" | ||
15698 | "\x5d\x3b\xd3\x07\xd9\xf5\xfd\x3d" | ||
15699 | "\x4a\x8b\xa8\xd2\x6e\x7a\x51\x65" | ||
15700 | "\x6c\x8e\x95\xe0\x45\xc9\x5f\x4a" | ||
15701 | "\x09\x3c\x3d\x71\x7f\x0c\x84\x2a" | ||
15702 | "\xc8\x48\x52\x1a\xc2\xd5\xd6\x78" | ||
15703 | "\x92\x1e\xa0\x90\x2e\xea\xf0\xf3" | ||
15704 | "\xdc\x0f\xb1\xaf\x0d\x9b\x06\x2e" | ||
15705 | "\x35\x10\x30\x82\x0d\xe7\xc5\x9b" | ||
15706 | "\xde\x44\x18\xbd\x9f\xd1\x45\xa9" | ||
15707 | "\x7b\x7a\x4a\xad\x35\x65\x27\xca" | ||
15708 | "\xb2\xc3\xd4\x9b\x71\x86\x70\xee" | ||
15709 | "\xf1\x89\x3b\x85\x4b\x5b\xaa\xaf" | ||
15710 | "\xfc\x42\xc8\x31\x59\xbe\x16\x60" | ||
15711 | "\x4f\xf9\xfa\x12\xea\xd0\xa7\x14" | ||
15712 | "\xf0\x7a\xf3\xd5\x8d\xbd\x81\xef" | ||
15713 | "\x52\x7f\x29\x51\x94\x20\x67\x3c" | ||
15714 | "\xd1\xaf\x77\x9f\x22\x5a\x4e\x63" | ||
15715 | "\xe7\xff\x73\x25\xd1\xdd\x96\x8a" | ||
15716 | "\x98\x52\x6d\xf3\xac\x3e\xf2\x18" | ||
15717 | "\x6d\xf6\x0a\x29\xa6\x34\x3d\xed" | ||
15718 | "\xe3\x27\x0d\x9d\x0a\x02\x44\x7e" | ||
15719 | "\x5a\x7e\x67\x0f\x0a\x9e\xd6\xad" | ||
15720 | "\x91\xe6\x4d\x81\x8c\x5c\x59\xaa" | ||
15721 | "\xfb\xeb\x56\x53\xd2\x7d\x4c\x81" | ||
15722 | "\x65\x53\x0f\x41\x11\xbd\x98\x99" | ||
15723 | "\xf9\xc6\xfa\x51\x2e\xa3\xdd\x8d" | ||
15724 | "\x84\x98\xf9\x34\xed\x33\x2a\x1f" | ||
15725 | "\x82\xed\xc1\x73\x98\xd3\x02\xdc" | ||
15726 | "\xe6\xc2\x33\x1d\xa2\xb4\xca\x76" | ||
15727 | "\x63\x51\x34\x9d\x96\x12\xae\xce" | ||
15728 | "\x83\xc9\x76\x5e\xa4\x1b\x53\x37" | ||
15729 | "\x17\xd5\xc0\x80\x1d\x62\xf8\x3d" | ||
15730 | "\x54\x27\x74\xbb\x10\x86\x57\x46" | ||
15731 | "\x68\xe1\xed\x14\xe7\x9d\xfc\x84" | ||
15732 | "\x47\xbc\xc2\xf8\x19\x4b\x99\xcf" | ||
15733 | "\x7a\xe9\xc4\xb8\x8c\x82\x72\x4d" | ||
15734 | "\x7b\x4f\x38\x55\x36\x71\x64\xc1" | ||
15735 | "\xfc\x5c\x75\x52\x33\x02\x18\xf8" | ||
15736 | "\x17\xe1\x2b\xc2\x43\x39\xbd\x76" | ||
15737 | "\x9b\x63\x76\x32\x2f\x19\x72\x10" | ||
15738 | "\x9f\x21\x0c\xf1\x66\x50\x7f\xa5" | ||
15739 | "\x0d\x1f\x46\xe0\xba\xd3\x2f\x3c", | ||
15740 | .ilen = 512, | ||
15741 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15742 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15743 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15744 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15745 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15746 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15747 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15748 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15749 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15750 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15751 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15752 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15753 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15754 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15755 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15756 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15757 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15758 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15759 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15760 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15761 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15762 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15763 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15764 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15765 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15766 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15767 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15768 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15769 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15770 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15771 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15772 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" | ||
15773 | "\x00\x01\x02\x03\x04\x05\x06\x07" | ||
15774 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" | ||
15775 | "\x10\x11\x12\x13\x14\x15\x16\x17" | ||
15776 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | ||
15777 | "\x20\x21\x22\x23\x24\x25\x26\x27" | ||
15778 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" | ||
15779 | "\x30\x31\x32\x33\x34\x35\x36\x37" | ||
15780 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" | ||
15781 | "\x40\x41\x42\x43\x44\x45\x46\x47" | ||
15782 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" | ||
15783 | "\x50\x51\x52\x53\x54\x55\x56\x57" | ||
15784 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" | ||
15785 | "\x60\x61\x62\x63\x64\x65\x66\x67" | ||
15786 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" | ||
15787 | "\x70\x71\x72\x73\x74\x75\x76\x77" | ||
15788 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" | ||
15789 | "\x80\x81\x82\x83\x84\x85\x86\x87" | ||
15790 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" | ||
15791 | "\x90\x91\x92\x93\x94\x95\x96\x97" | ||
15792 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" | ||
15793 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" | ||
15794 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" | ||
15795 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" | ||
15796 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" | ||
15797 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" | ||
15798 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" | ||
15799 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" | ||
15800 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" | ||
15801 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" | ||
15802 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" | ||
15803 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" | ||
15804 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", | ||
15805 | .rlen = 512, | ||
15806 | .also_non_np = 1, | ||
15807 | .np = 3, | ||
15808 | .tap = { 512 - 20, 4, 16 }, | ||
15809 | } | ||
15810 | }; | ||
15811 | |||
15141 | /* Cast6 test vectors from RFC 2612 */ | 15812 | /* Cast6 test vectors from RFC 2612 */ |
15142 | static const struct cipher_testvec cast6_enc_tv_template[] = { | 15813 | static const struct cipher_testvec cast6_enc_tv_template[] = { |
15143 | { | 15814 | { |