]> Git Repo - J-linux.git/commitdiff
crypto: tcrypt - add ffdhe2048(dh) test
authorVladis Dronov <[email protected]>
Thu, 29 Feb 2024 17:36:03 +0000 (18:36 +0100)
committerHerbert Xu <[email protected]>
Fri, 8 Mar 2024 11:23:25 +0000 (19:23 +0800)
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/tcrypt.c

index ea4d1cea9c06978c7cd1d611367999b5ca075af1..8aea416f64808981dcf72f9427c23848b4836852 100644 (file)
@@ -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);
This page took 0.051747 seconds and 4 git commands to generate.