pk: let PK_PARSE_EC_EXTENDED auto-enable ECP_LIGHT
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
434836801f
commit
aecd32c90a
3 changed files with 5 additions and 2 deletions
|
@ -132,7 +132,7 @@
|
||||||
/* MBEDTLS_ECP_C now consists of MBEDTLS_ECP_LIGHT plus functions for curve
|
/* 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,
|
* arithmetic. As a consequence if MBEDTLS_ECP_C is required for some reason,
|
||||||
* then MBEDTLS_ECP_LIGHT should be enabled as well. */
|
* 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
|
#define MBEDTLS_ECP_LIGHT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2450,6 +2450,9 @@ config_psa_crypto_no_ecp_at_all () {
|
||||||
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
||||||
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
|
scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
|
||||||
|
|
||||||
|
# Disable all the features that auto-enable ECP_LIGHT (see build_info.h)
|
||||||
|
scripts/config.py unset MBEDTLS_PK_PARSE_EC_EXTENDED
|
||||||
|
|
||||||
# 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
|
||||||
# 6061, 6332 and following ones)
|
# 6061, 6332 and following ones)
|
||||||
|
|
|
@ -1095,7 +1095,7 @@ depends_on:MBEDTLS_PEM_PARSE_C:MBEDTLS_ECP_LIGHT:MBEDTLS_ECP_DP_BP512R1_ENABLED
|
||||||
pk_parse_keyfile_ec:"data_files/ec_bp512_prv.comp.pem":"NULL":0
|
pk_parse_keyfile_ec:"data_files/ec_bp512_prv.comp.pem":"NULL":0
|
||||||
|
|
||||||
Parse EC Key #15 (SEC1 DER, secp256k1, SpecifiedECDomain)
|
Parse EC Key #15 (SEC1 DER, secp256k1, SpecifiedECDomain)
|
||||||
depends_on:MBEDTLS_ECP_LIGHT:MBEDTLS_ECP_DP_SECP256K1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED
|
depends_on:MBEDTLS_ECP_DP_SECP256K1_ENABLED:MBEDTLS_PK_PARSE_EC_EXTENDED
|
||||||
pk_parse_keyfile_ec:"data_files/ec_prv.specdom.der":"NULL":0
|
pk_parse_keyfile_ec:"data_files/ec_prv.specdom.der":"NULL":0
|
||||||
|
|
||||||
Parse EC Key #16 (RFC 8410, DER, X25519)
|
Parse EC Key #16 (RFC 8410, DER, X25519)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue