Commit c9e1d48a authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu

crypto: testmgr - remove extra bytes from 3DES-CTR IVs

3DES only has an 8-byte block size, but the 3DES-CTR test vectors use
16-byte IVs.  Remove the unused 8 bytes from the ends of the IVs.
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c1c214ad
...@@ -7580,8 +7580,7 @@ static const struct cipher_testvec des3_ede_ctr_tv_template[] = { ...@@ -7580,8 +7580,7 @@ static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
"\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
"\xEB\xB4\x51\x72\xB4\x51\x72\x1F", "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
.klen = 24, .klen = 24,
.iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF",
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
.ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
"\x8B\x12\x86\x69\xF0\x5B\xCF\x56" "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
"\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
...@@ -7712,8 +7711,7 @@ static const struct cipher_testvec des3_ede_ctr_tv_template[] = { ...@@ -7712,8 +7711,7 @@ static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
"\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
"\xEB\xB4\x51\x72\xB4\x51\x72\x1F", "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
.klen = 24, .klen = 24,
.iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12",
"\xB7\x28\x4D\x83\x24\x59\xF2\x17",
.ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
"\x8B\x12\x86\x69\xF0\x5B\xCF\x56" "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
"\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment