* [PATCH] crypto: testmgr - add a chunking test for cbc(aes)
@ 2015-07-06 11:37 LABBE Corentin
2015-07-07 14:00 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: LABBE Corentin @ 2015-07-06 11:37 UTC (permalink / raw)
To: herbert, davem; +Cc: linux-crypto, linux-kernel, LABBE Corentin
All tests for cbc(aes) use only blocks of data with a multiple of 4.
This test adds a test with some odd SG size.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
---
crypto/testmgr.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 868edf1..b052555 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -14504,6 +14504,9 @@ static struct cipher_testvec aes_cbc_enc_tv_template[] = {
.result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
"\x27\x08\x94\x2d\xbe\x77\x18\x1a",
.rlen = 16,
+ .also_non_np = 1,
+ .np = 8,
+ .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
}, {
.key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
"\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
@@ -14723,6 +14726,9 @@ static struct cipher_testvec aes_cbc_dec_tv_template[] = {
.ilen = 16,
.result = "Single block msg",
.rlen = 16,
+ .also_non_np = 1,
+ .np = 8,
+ .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
}, {
.key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
"\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
--
2.3.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: testmgr - add a chunking test for cbc(aes)
2015-07-06 11:37 [PATCH] crypto: testmgr - add a chunking test for cbc(aes) LABBE Corentin
@ 2015-07-07 14:00 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2015-07-07 14:00 UTC (permalink / raw)
To: LABBE Corentin; +Cc: davem, linux-crypto, linux-kernel
On Mon, Jul 06, 2015 at 01:37:33PM +0200, LABBE Corentin wrote:
> All tests for cbc(aes) use only blocks of data with a multiple of 4.
> This test adds a test with some odd SG size.
>
> Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Applied.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-07 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 11:37 [PATCH] crypto: testmgr - add a chunking test for cbc(aes) LABBE Corentin
2015-07-07 14:00 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).