diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-07-03 10:55:12 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-07-26 15:03:59 +1000 |
commit | 97bcb161995548ad319c78b2533f998a7b92ab4c (patch) | |
tree | 6034163267cc0201136fb6ff2ff5f31d98095ace /crypto/tcrypt.c | |
parent | ecc8bc81f2fb3976737ef312f824ba6053aa3590 (diff) | |
download | lwn-97bcb161995548ad319c78b2533f998a7b92ab4c.tar.gz lwn-97bcb161995548ad319c78b2533f998a7b92ab4c.zip |
crypto: tcrypt - add a speed test for AEGIS128
Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index ad78ab5b93cb..c578ccd92c57 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -2327,6 +2327,13 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) 0, speed_template_32); break; + case 221: + test_aead_speed("aegis128", ENCRYPT, sec, + NULL, 0, 16, 8, speed_template_16); + test_aead_speed("aegis128", DECRYPT, sec, + NULL, 0, 16, 8, speed_template_16); + break; + case 300: if (alg) { test_hash_speed(alg, sec, generic_hash_speed_template); |