crypto: tcrypt - Add rfc4309(ccm(aes)) speed test
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 17 Jun 2015 06:04:21 +0000 (14:04 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Jun 2015 06:45:32 +0000 (14:45 +0800)
This patch adds a speed test for rfc4309(ccm(aes)) as mode 212.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c
crypto/tcrypt.h

index 4b4a9313f308f4339dc676d9e3ae13bfa7548ace..5146367f4a1fca093ed657514e0c6bb82e2bb32b 100644 (file)
@@ -1761,6 +1761,11 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
                                NULL, 0, 16, 8, aead_speed_template_20);
                break;
 
+       case 212:
+               test_aead_speed("rfc4309(ccm(aes))", ENCRYPT, sec,
+                               NULL, 0, 16, 8, aead_speed_template_19);
+               break;
+
        case 300:
                if (alg) {
                        test_hash_speed(alg, sec, generic_hash_speed_template);
index 6c7e21a09f78f170905abf74a897c21dee7a39e9..6cc1b856871b96d5b0d9064fc6ae028649fe89b6 100644 (file)
@@ -65,6 +65,7 @@ static u8 speed_template_32_64[] = {32, 64, 0};
 /*
  * AEAD speed tests
  */
+static u8 aead_speed_template_19[] = {19, 0};
 static u8 aead_speed_template_20[] = {20, 0};
 
 /*