crypto: tcrypt - fix keysize argument of test_aead_speed for gcm(aes)
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Tue, 17 Nov 2015 12:37:10 +0000 (13:37 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 Nov 2015 12:55:52 +0000 (20:55 +0800)
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index 46a4a757d478dc8563e9920ee2ad16736f18faac..270bc4b82bd9aaf2625bbeddf426f0cfbfea0f7e 100644 (file)
@@ -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: