Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH] crypto: tcrypt - add missing tests for camellia and ghash
@ 2012-09-21  7:27 Jussi Kivilinna
  2012-09-21 16:12 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Jussi Kivilinna @ 2012-09-21  7:27 UTC (permalink / raw)
  To: linux-crypto; +Cc: Herbert Xu, David S. Miller

Add missing tests for ctr(camellia), lrw(camellia), xts(camellia) and ghash,
as these have test vectors available.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
---
 crypto/tcrypt.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 871076b..6e8874b 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1118,6 +1118,9 @@ static int do_test(int m)
 	case 32:
 		ret += tcrypt_test("ecb(camellia)");
 		ret += tcrypt_test("cbc(camellia)");
+		ret += tcrypt_test("ctr(camellia)");
+		ret += tcrypt_test("lrw(camellia)");
+		ret += tcrypt_test("xts(camellia)");
 		break;
 	case 33:
 		ret += tcrypt_test("sha224");
@@ -1171,6 +1174,10 @@ static int do_test(int m)
 		ret += tcrypt_test("rfc4309(ccm(aes))");
 		break;
 
+	case 46:
+		ret += tcrypt_test("ghash");
+		break;
+
 	case 100:
 		ret += tcrypt_test("hmac(md5)");
 		break;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: tcrypt - add missing tests for camellia and ghash
  2012-09-21  7:27 [PATCH] crypto: tcrypt - add missing tests for camellia and ghash Jussi Kivilinna
@ 2012-09-21 16:12 ` David Miller
  2012-09-27  5:45   ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2012-09-21 16:12 UTC (permalink / raw)
  To: jussi.kivilinna; +Cc: linux-crypto, herbert

From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Date: Fri, 21 Sep 2012 10:27:10 +0300

> Add missing tests for ctr(camellia), lrw(camellia), xts(camellia) and ghash,
> as these have test vectors available.
> 
> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>

Acked-by: David S. Miller <davem@davemloft.net>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: tcrypt - add missing tests for camellia and ghash
  2012-09-21 16:12 ` David Miller
@ 2012-09-27  5:45   ` Herbert Xu
  0 siblings, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2012-09-27  5:45 UTC (permalink / raw)
  To: David Miller; +Cc: jussi.kivilinna, linux-crypto

On Fri, Sep 21, 2012 at 12:12:04PM -0400, David Miller wrote:
> From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> Date: Fri, 21 Sep 2012 10:27:10 +0300
> 
> > Add missing tests for ctr(camellia), lrw(camellia), xts(camellia) and ghash,
> > as these have test vectors available.
> > 
> > Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> 
> Acked-by: David S. Miller <davem@davemloft.net>

Patch applied.  Thanks!
-- 
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] 3+ messages in thread

end of thread, other threads:[~2012-09-27  5:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21  7:27 [PATCH] crypto: tcrypt - add missing tests for camellia and ghash Jussi Kivilinna
2012-09-21 16:12 ` David Miller
2012-09-27  5:45   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox