From: Ard Biesheuvel Date: Wed, 3 Jul 2019 08:55:12 +0000 (+0200) Subject: crypto: tcrypt - add a speed test for AEGIS128 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=97bcb161995548ad319c78b2533f998a7b92ab4c;p=openwrt%2Fstaging%2Fblogic.git crypto: tcrypt - add a speed test for AEGIS128 Reviewed-by: Ondrej Mosnacek Signed-off-by: Ard Biesheuvel Signed-off-by: Herbert Xu --- 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);