Skip to content

Commit 480d34d

Browse files
committed
Add patch for disable hybrid MLKEM in FIPS mode
1 parent 735903c commit 480d34d

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:100644 100644 419878719e 0000000000 M providers/fips/fipsprov.c
2+
3+
diff --git a/providers/fips/fipsprov.c b/providers/fips/fipsprov.c
4+
index 419878719e..680d3dd56d 100644
5+
--- a/providers/fips/fipsprov.c
6+
+++ b/providers/fips/fipsprov.c
7+
@@ -543,8 +542,8 @@ static const OSSL_ALGORITHM fips_asym_kem[] = {
8+
#if !defined(OPENSSL_NO_ECX)
9+
- { "X25519MLKEM768", FIPS_DEFAULT_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
10+
- { "X448MLKEM1024", FIPS_DEFAULT_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
11+
+ { "X25519MLKEM768", FIPS_UNAPPROVED_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
12+
+ { "X448MLKEM1024", FIPS_UNAPPROVED_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
13+
#endif
14+
#if !defined(OPENSSL_NO_EC)
15+
- { "SecP256r1MLKEM768", FIPS_DEFAULT_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
16+
- { "SecP384r1MLKEM1024", FIPS_DEFAULT_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
17+
+ { "SecP256r1MLKEM768", FIPS_UNAPPROVED_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
18+
+ { "SecP384r1MLKEM1024", FIPS_UNAPPROVED_PROPERTIES, ossl_mlx_kem_asym_kem_functions },
19+
#endif

upstream_patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ rsa_kem-test-RSA_public_encrypt-result-in-RSASVE.patch
4646
0043-FIPS-ECDSA-P192-verify-disallow.patch
4747
0044-FIPS-ML-KEM-encap-key-check.patch
4848
0045-FIPS-ML-KEM-decap-key-check.patch
49+
0046-disable-hybrid-MLKEM-in-FIPS-mode.patch

0 commit comments

Comments
 (0)