Skip to content

Commit 5f77368

Browse files
authored
Update no_ecp_dp_secp256r1.diff
1 parent 485198d commit 5f77368

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

patches/no_ecp_dp_secp256r1.diff

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
1+
diff --git a/components/mbedtls/mbedtls/include/mbedtls/check_config.h b/components/mbedtls/mbedtls/include/mbedtls/check_config.h
2+
--- a/components/mbedtls/mbedtls/include/mbedtls/check_config.h
3+
+++ b/components/mbedtls/mbedtls/include/mbedtls/check_config.h
4+
@@ -142,7 +142,6 @@
5+
( !defined(MBEDTLS_ECP_C) || \
6+
!( defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED) || \
7+
defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED) || \
8+
- defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED) || \
9+
defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED) || \
10+
defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED) || \
11+
defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED) || \
12+
@@ -193,7 +192,6 @@
13+
#if defined(MBEDTLS_ECP_LIGHT) && ( !defined(MBEDTLS_BIGNUM_C) || ( \
14+
!defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED) && \
15+
!defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED) && \
16+
- !defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED) && \
17+
!defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED) && \
18+
!defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED) && \
19+
!defined(MBEDTLS_ECP_DP_BP256R1_ENABLED) && \
20+
@@ -361,8 +359,7 @@
21+
#endif
22+
#else /* MBEDTLS_USE_PSA_CRYPTO */
23+
#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED) && \
24+
- ( !defined(MBEDTLS_ECJPAKE_C) || \
25+
- !defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED) )
26+
+ ( !defined(MBEDTLS_ECJPAKE_C) )
27+
#error "MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED defined, but not all prerequisites"
28+
#endif
29+
#endif /* MBEDTLS_USE_PSA_CRYPTO */
130
diff --git a/components/mbedtls/mbedtls/include/mbedtls/mbedtls_config.h b/components/mbedtls/mbedtls/include/mbedtls/mbedtls_config.h
231
index 35921412c6e6..d3abe4007b83 100644
332
--- a/components/mbedtls/mbedtls/include/mbedtls/mbedtls_config.h
4-
+++ a/components/mbedtls/mbedtls/include/mbedtls/mbedtls_config.h
33+
+++ b/components/mbedtls/mbedtls/include/mbedtls/mbedtls_config.h
534
@@ -759,7 +759,6 @@
635
/* Short Weierstrass curves (supporting ECP, ECDH, ECDSA) */
736
#define MBEDTLS_ECP_DP_SECP192R1_ENABLED

0 commit comments

Comments
 (0)