From 498223173311584901a4740bd278cc31ec779531 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Thu, 23 Jan 2025 10:56:14 +0100 Subject: [PATCH] Bluetooth: Host: add PSA_WANT_xxx_IMPORT/EXPORT to BT_ECC The BT Host module also uses import/export PSA functions alongside the generate one, so these PSA_WANT should be added as well. Previously it happened to work only because Mbed TLS is enabling IMPORT/EXPORT internally whenever GENERATE/DERIVE is set. However the same might not be true for all PSA Crypto providers. Signed-off-by: Valerio Setti --- subsys/bluetooth/host/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index 122ceb2170d..cc5ee14f92b 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -998,6 +998,8 @@ config BT_ECC select MBEDTLS_PSA_CRYPTO_C if !BUILD_WITH_TFM select PSA_WANT_ALG_ECDH select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE + select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT + select PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT select PSA_WANT_ECC_SECP_R1_256 imply MBEDTLS_PSA_P256M_DRIVER_ENABLED if MBEDTLS_PSA_CRYPTO_C select BT_LONG_WQ