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>
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
# Copyright (c) 2022 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig UOSCORE
|
|
bool "UOSCORE library"
|
|
depends on ZCBOR
|
|
depends on ZCBOR_CANONICAL
|
|
depends on MBEDTLS
|
|
select UOSCORE_UEDHOC_CRYPTO_COMMON
|
|
|
|
help
|
|
This option enables the UOSCORE library.
|
|
|
|
if UOSCORE
|
|
|
|
config UOSCORE_DEBUG
|
|
bool "Debug logs in the uoscore library"
|
|
|
|
endif # UOSCORE
|
|
|
|
menuconfig UEDHOC
|
|
bool "UEDHOC library"
|
|
depends on ZCBOR
|
|
depends on ZCBOR_CANONICAL
|
|
depends on MBEDTLS
|
|
select UOSCORE_UEDHOC_CRYPTO_COMMON
|
|
help
|
|
This option enables the UEDHOC library.
|
|
|
|
if UEDHOC
|
|
|
|
config UEDHOC_DEBUG
|
|
bool "Debug logs in the uedhoc library"
|
|
|
|
endif # UEDHOC
|
|
|
|
if UOSCORE || UEDHOC
|
|
|
|
config UOSCORE_UEDHOC_CRYPTO_COMMON
|
|
bool
|
|
imply MBEDTLS_PSA_CRYPTO_C if !BUILD_WITH_TFM
|
|
select PSA_WANT_ALG_ECDH
|
|
select PSA_WANT_ALG_ECDSA
|
|
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT
|
|
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT
|
|
select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE
|
|
select PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
|
|
select PSA_WANT_ECC_SECP_R1_256
|
|
select PSA_WANT_KEY_TYPE_AES
|
|
select PSA_WANT_ALG_CCM
|
|
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
|