mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 00:46:22 -04:00
build_info: complete list of symbols that auto-enable ECP_LIGHT
The comment is also updated accordingly. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
addeee4531
commit
4922ba132a
@ -129,11 +129,23 @@
|
|||||||
#define MBEDTLS_MD_LIGHT
|
#define MBEDTLS_MD_LIGHT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* MBEDTLS_ECP_C now consists of MBEDTLS_ECP_LIGHT plus functions for curve
|
/* MBEDTLS_ECP_LIGHT is auto-enabled by the following symbols:
|
||||||
* arithmetic. As a consequence if MBEDTLS_ECP_C is required for some reason,
|
* - MBEDTLS_ECP_C because now it consists of MBEDTLS_ECP_LIGHT plus functions
|
||||||
* then MBEDTLS_ECP_LIGHT should be enabled as well. */
|
* for curve arithmetic. As a consequence if MBEDTLS_ECP_C is required for
|
||||||
#if defined(MBEDTLS_ECP_C) || defined(MBEDTLS_PK_PARSE_EC_EXTENDED) || \
|
* some reason, then MBEDTLS_ECP_LIGHT should be enabled as well.
|
||||||
defined(MBEDTLS_PK_PARSE_EC_COMPRESSED)
|
* - MBEDTLS_PK_PARSE_EC_EXTENDED and MBEDTLS_PK_PARSE_EC_COMPRESSED because
|
||||||
|
* these features are not supported in PSA so the only way to have them is
|
||||||
|
* to enable the built-in solution.
|
||||||
|
* - PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE because Weierstrass key derivation
|
||||||
|
* still depends on ECP_LIGHT
|
||||||
|
* - PK_C + USE_PSA + PSA_WANT_ALG_ECDSA is a temporary dependency which will
|
||||||
|
* be fixed by #7453
|
||||||
|
*/
|
||||||
|
#if defined(MBEDTLS_ECP_C) || \
|
||||||
|
defined(MBEDTLS_PK_PARSE_EC_EXTENDED) || \
|
||||||
|
defined(MBEDTLS_PK_PARSE_EC_COMPRESSED) || \
|
||||||
|
defined(MBEDTLS_PSA_BUILTIN_KEY_TYPE_ECC_KEY_PAIR_DERIVE) || \
|
||||||
|
(defined(MBEDTLS_PK_C) && defined(MBEDTLS_USE_PSA_CRYPTO) && defined(PSA_WANT_ALG_ECDSA))
|
||||||
#define MBEDTLS_ECP_LIGHT
|
#define MBEDTLS_ECP_LIGHT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -2453,6 +2453,7 @@ config_psa_crypto_no_ecp_at_all () {
|
|||||||
# Disable all the features that auto-enable ECP_LIGHT (see build_info.h)
|
# Disable all the features that auto-enable ECP_LIGHT (see build_info.h)
|
||||||
scripts/config.py unset MBEDTLS_PK_PARSE_EC_EXTENDED
|
scripts/config.py unset MBEDTLS_PK_PARSE_EC_EXTENDED
|
||||||
scripts/config.py unset MBEDTLS_PK_PARSE_EC_COMPRESSED
|
scripts/config.py unset MBEDTLS_PK_PARSE_EC_COMPRESSED
|
||||||
|
scripts/config.py -f include/psa/crypto_config.h unset PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE
|
||||||
|
|
||||||
# Restartable feature is not yet supported by PSA. Once it will in
|
# Restartable feature is not yet supported by PSA. Once it will in
|
||||||
# the future, the following line could be removed (see issues
|
# the future, the following line could be removed (see issues
|
||||||
|
Loading…
x
Reference in New Issue
Block a user