diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-17 14:04:21 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-18 14:45:32 +0800 |
commit | 4e4aab63d7456fb3db108ad8eead8e330d5fb958 (patch) | |
tree | e6611e5bd790ae82fa4589abe1c3f71c2033e517 /crypto/tcrypt.c | |
parent | f657f82cc9710e2cb3067be932853ce114e5ce29 (diff) | |
download | op-kernel-dev-4e4aab63d7456fb3db108ad8eead8e330d5fb958.zip op-kernel-dev-4e4aab63d7456fb3db108ad8eead8e330d5fb958.tar.gz |
crypto: tcrypt - Add rfc4309(ccm(aes)) speed test
This patch adds a speed test for rfc4309(ccm(aes)) as mode 212.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 4b4a931..5146367 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -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); |