Driver-only ECC: auto-enable ECP_LIGHT
when needed
#7442
Labels
component-crypto
Crypto primitives and low-level interfaces
enhancement
size-s
Estimated task size: small (~2d)
This is split from #7390 - the original plan was for
ECP_LIGHT
to be auto-enabled when needed, but we then decided to first implement it as an internal symbol with no official way for users to enable (other that-D
inCFLAGS
), and address auto-enablement as a 2nd step.We should auto-enable
ECP_LIGHT
in the following circumstances:ECP_C
is defined (done).PK_C && USE_PSA && PSA_WANT_ALG_ECDSA
, see Define (private) "light" subset of ECP #7410 (comment)MBEDTLS_PK_PARSE_EC_EXTENDED
is defined.MBEDTLS_PK_PARSE_EC_COMPRESSED
to be added as part of this task.PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE
is requested.When this is done, the following changes can be made in
all.sh
:component_test_psa_crypto_config_accel_all_ec_algs_use_psa()
removed-DMBEDTLS_ECP_LIGHT
as it's no longer needed (will be auto-enabled).config_psa_crypto_full_all_ec_algs_no_ecp_use_psa()
we need to disable any option that would re-enableECP_LIGHT
.Depends on:
The text was updated successfully, but these errors were encountered: