modules: uoscore-uedhoc: enable legacy Mbed TLS crypto support in TF-M

On TF-M platforms the PSA_WANT_xxx above do not enable the legacy
MBEDTLS_ECP_C build symbol which is required to enable the
mbedtls_pk_ec() function used in uOSCORE/uEDHOC.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2025-06-03 23:42:43 +02:00 committed by Anas Nashif
parent c05bcee41d
commit b09a3df131

View File

@ -51,5 +51,10 @@ config UOSCORE_UEDHOC_CRYPTO_COMMON
select PSA_WANT_KEY_TYPE_HMAC
select PSA_WANT_ALG_HMAC
select PSA_WANT_ALG_SHA_256
# On TF-M platforms the PSA_WANT_xxx above do not enable the legacy
# MBEDTLS_ECP_C build symbol which is required to enable the
# mbedtls_pk_ec() function used in uOSCORE/uEDHOC.
select MBEDTLS_ECP_C if BUILD_WITH_TFM
select MBEDTLS_ECP_DP_SECP256R1_ENABLED if BUILD_WITH_TFM
endif # UOSCORE || UEDHOC