Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1271142 > unrolled thread

[PATCH 1/1] crypto: tcrypt: fix keysize argument of test_aead_speed for gcm(aes)

Started byCyrille Pitchen <cyrille.pitchen@atmel.com>
First post2015-11-17 13:40 +0100
Last post2015-11-23 14:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/1] crypto: tcrypt: fix keysize argument of test_aead_speed for gcm(aes) Cyrille Pitchen <cyrille.pitchen@atmel.com> - 2015-11-17 13:40 +0100
    Re: [PATCH 1/1] crypto: tcrypt: fix keysize argument of  test_aead_speed for gcm(aes) Herbert Xu <herbert@gondor.apana.org.au> - 2015-11-23 14:10 +0100

#1271142 — [PATCH 1/1] crypto: tcrypt: fix keysize argument of test_aead_speed for gcm(aes)

FromCyrille Pitchen <cyrille.pitchen@atmel.com>
Date2015-11-17 13:40 +0100
Subject[PATCH 1/1] crypto: tcrypt: fix keysize argument of test_aead_speed for gcm(aes)
Message-ID<qvNIe-50X-11@gated-at.bofh.it>
The key sizes used by AES in GCM mode should be 128, 192 or 256 bits (16,
24 or 32 bytes).
There is no additional 4byte nonce as for RFC 4106.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
---
 crypto/tcrypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 46a4a757d478..270bc4b82bd9 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1789,7 +1789,7 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
 		test_aead_speed("rfc4106(gcm(aes))", ENCRYPT, sec,
 				NULL, 0, 16, 16, aead_speed_template_20);
 		test_aead_speed("gcm(aes)", ENCRYPT, sec,
-				NULL, 0, 16, 8, aead_speed_template_20);
+				NULL, 0, 16, 8, speed_template_16_24_32);
 		break;
 
 	case 212:
-- 
1.8.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1275307 — Re: [PATCH 1/1] crypto: tcrypt: fix keysize argument of test_aead_speed for gcm(aes)

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2015-11-23 14:10 +0100
SubjectRe: [PATCH 1/1] crypto: tcrypt: fix keysize argument of test_aead_speed for gcm(aes)
Message-ID<qxZ2y-29g-21@gated-at.bofh.it>
In reply to#1271142
On Tue, Nov 17, 2015 at 01:37:10PM +0100, Cyrille Pitchen wrote:
> The key sizes used by AES in GCM mode should be 128, 192 or 256 bits (16,
> 24 or 32 bytes).
> There is no additional 4byte nonce as for RFC 4106.
> 
> Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web