Skip to content

Commit fdf15dd

Browse files
committed
build_info: auto enable PK_PARSE_EC_COMPRESSED when PK_PARSE_C && ECP_C
This helps backward compatibility since compressed points were always supported in previous releases as long as PK_PARSE_C and ECP_C were defined. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
1 parent 15e7044 commit fdf15dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/mbedtls/build_info.h

+9
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@
149149
#define MBEDTLS_ECP_LIGHT
150150
#endif
151151

152+
/* MBEDTLS_PK_PARSE_EC_COMPRESSED is introduced in MbedTLS version 3.5, while
153+
* in previous version compressed points were automatically supported as long
154+
* as PK_PARSE_C and ECP_C were enabled. As a consequence, for backward
155+
* compatibility, we auto-enable PK_PARSE_EC_COMPRESSED when these conditions
156+
* are met. */
157+
#if defined(MBEDTLS_PK_PARSE_C) && defined(MBEDTLS_ECP_C)
158+
#define MBEDTLS_PK_PARSE_EC_COMPRESSED
159+
#endif
160+
152161
/* If MBEDTLS_PSA_CRYPTO_C is defined, make sure MBEDTLS_PSA_CRYPTO_CLIENT
153162
* is defined as well to include all PSA code.
154163
*/

0 commit comments

Comments
 (0)