summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorVladis Dronov <vdronov@redhat.com>2024-02-29 18:36:03 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2024-03-08 19:23:25 +0800
commit25b8abeb0128107ece07eeb244adb4b7ac1c0968 (patch)
tree71ea838777e0d6d3866d5a6256783f322702fbb3 /crypto/tcrypt.c
parent687f35bd1fc7a325fe6f817af864426e66c288b5 (diff)
downloadlinux-crypto-25b8abeb0128107ece07eeb244adb4b7ac1c0968.tar.gz
linux-crypto-25b8abeb0128107ece07eeb244adb4b7ac1c0968.zip
crypto: tcrypt - add ffdhe2048(dh) test
Commit 7a8cb30a6685 ("crypto: dh - implement ffdheXYZ(dh) templates") implemented the said templates. Add ffdhe2048(dh) test as it is the fastest one. This is a requirement for the FIPS certification. Signed-off-by: Vladis Dronov <vdronov@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/tcrypt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index ea4d1cea..8aea416f 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1851,6 +1851,9 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb)
ret = min(ret, tcrypt_test("cbc(aria)"));
ret = min(ret, tcrypt_test("ctr(aria)"));
break;
+ case 193:
+ ret = min(ret, tcrypt_test("ffdhe2048(dh)"));
+ break;
case 200:
test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
speed_template_16_24_32);