pk: let PK_PARSE_EC_EXTENDED auto-enable ECP_LIGHT

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti 2023-06-14 10:42:31 +02:00
parent 434836801f
commit aecd32c90a
3 changed files with 5 additions and 2 deletions

View file

@ -132,7 +132,7 @@
/* MBEDTLS_ECP_C now consists of MBEDTLS_ECP_LIGHT plus functions for curve
* arithmetic. As a consequence if MBEDTLS_ECP_C is required for some reason,
* then MBEDTLS_ECP_LIGHT should be enabled as well. */
#if defined(MBEDTLS_ECP_C)
#if defined(MBEDTLS_ECP_C) || defined(MBEDTLS_PK_PARSE_EC_EXTENDED)
#define MBEDTLS_ECP_LIGHT
#endif