crypto: tcrypt - add ffdhe2048(dh) test

JIRA: https://issues.redhat.com/browse/RHEL-25845
Upstream Status: merged into the linux.git

Conflicts: a missing upstream patch 65c92cbb3f23 ("crypto:
tcrypt - fix return value for multiple subtests"). Change
a test function call to a previous form.

commit 43a7885ec0dfca2bdc60f2de736e55cf5e7b915d
Author: Vladis Dronov <vdronov@redhat.com>
Date:   Thu Feb 29 18:36:03 2024 +0100

    crypto: tcrypt - add ffdhe2048(dh) test

    Commit 7dce59819750 ("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>

Signed-off-by: Vladis Dronov <vdronov@redhat.com>
This commit is contained in:
Vladis Dronov
2024-03-16 18:15:12 +01:00
parent 9733a31383
commit 2cc9d0c573
+3
View File
@@ -2033,6 +2033,9 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb)
ret += tcrypt_test("cbc(sm4)");
ret += tcrypt_test("ctr(sm4)");
break;
case 193:
ret += tcrypt_test("ffdhe2048(dh)");
break;
case 200:
test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
speed_template_16_24_32);