1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-28 23:44:01 +03:00

tests: scripts: make enabling of secp192 curves fault tolerant in test_psa_crypto_without_heap

This is temporary but still required in order to have this commit merged
before the crypto#570, where these curves are really removed.
These lines will be removed in a follow-up PR once crypto#570 is merged.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti
2025-11-20 13:16:59 +01:00
parent caf73f885a
commit 65ec4cc771

View File

@@ -92,11 +92,13 @@ component_test_psa_crypto_without_heap() {
scripts/config.py unset-all "^PSA_WANT_ALG_RSA_" scripts/config.py unset-all "^PSA_WANT_ALG_RSA_"
# EC-JPAKE use calloc/free in PSA core # EC-JPAKE use calloc/free in PSA core
scripts/config.py unset PSA_WANT_ALG_JPAKE scripts/config.py unset PSA_WANT_ALG_JPAKE
# Enable p192[k|r]1 curves which are disabled by default in tf-psa-crypto. # Curves p192[k|r]1 were disabled by default in TF-PSA-Crypto 1.0 so they
# This is required to get the proper test coverage otherwise there are # were enabled here in order to get full test coverage. Support for these
# tests in 'test_suite_psa_crypto_op_fail' that would never be executed. # curves has completely been removed, but due to interdependency between
scripts/config.py set PSA_WANT_ECC_SECP_K1_192 # CIs (mbedtls vs tf-psa-crypto) we still need to keep these lines here for
scripts/config.py set PSA_WANT_ECC_SECP_R1_192 # a while. They will be removed in #10518
scripts/config.py set PSA_WANT_ECC_SECP_K1_192 || true
scripts/config.py set PSA_WANT_ECC_SECP_R1_192 || true
scripts/config.py set TF_PSA_CRYPTO_ALLOW_REMOVED_MECHANISMS || true scripts/config.py set TF_PSA_CRYPTO_ALLOW_REMOVED_MECHANISMS || true
# Accelerate all PSA features (which are still enabled in CRYPTO_CONFIG_H). # Accelerate all PSA features (which are still enabled in CRYPTO_CONFIG_H).