Skip to content

Commit 0ce2cad

Browse files
nefigtutPlaidCat
authored andcommitted
crypto: tcrypt - add ffdhe2048(dh) test
Commit 7dce598 ("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>
1 parent 1884c19 commit 0ce2cad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crypto/tcrypt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,6 +2033,9 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb)
20332033
ret += tcrypt_test("cbc(sm4)");
20342034
ret += tcrypt_test("ctr(sm4)");
20352035
break;
2036+
case 193:
2037+
ret = min(ret, tcrypt_test("ffdhe2048(dh)"));
2038+
break;
20362039
case 200:
20372040
test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,
20382041
speed_template_16_24_32);

0 commit comments

Comments
 (0)