提交 17880f11 编写于 作者: E Eric Biggers 提交者: Herbert Xu

crypto: testmgr - make an cbc(des) encryption test vector chunked

One "cbc(des)" decryption test vector doesn't exactly match an
encryption test vector with input and result swapped.  It's *almost* the
same as one, but the decryption version is "chunked" while the
encryption version is "unchunked".  In preparation for removing the
decryption test vectors, make the encryption one both chunked and
unchunked, so we don't lose any test coverage.
Signed-off-by: NEric Biggers <ebiggers@google.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 097012e8
......@@ -5885,6 +5885,9 @@ static const struct cipher_testvec des_cbc_enc_tv_template[] = {
.ilen = 8,
.result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
.rlen = 8,
.np = 2,
.tap = { 4, 4 },
.also_non_np = 1,
}, { /* Copy of openssl vector for chunk testing */
/* From OpenSSL */
.key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册