From 099189bf62d45350a1107299dc2f08d2b1374191 Mon Sep 17 00:00:00 2001 From: Maciej Baczmanski Date: Wed, 24 Apr 2024 13:04:04 +0200 Subject: [PATCH] [nrf fromtree] kconfig: openthread: Fix PSA Key Ref config for RCP architecture `OPENTHREAD_PLATFORM_KEY_REF` should not be selected for RCP architecture, as keys are handled on host's side and passed to device over Spinel, and therefore they cannot be exported on platform from reference with PSA Crypto API. Signed-off-by: Maciej Baczmanski (cherry picked from commit 479e957b79c5d522a16844df51de8c81b556a025) --- subsys/net/l2/openthread/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/net/l2/openthread/Kconfig b/subsys/net/l2/openthread/Kconfig index ef71e411b4e..9673aa7702a 100644 --- a/subsys/net/l2/openthread/Kconfig +++ b/subsys/net/l2/openthread/Kconfig @@ -323,8 +323,8 @@ config OPENTHREAD_MAC_SOFTWARE_CSMA_BACKOFF_ENABLE config OPENTHREAD_CRYPTO_PSA bool "ARM PSA crypto API" depends on MBEDTLS_PSA_CRYPTO_C || BUILD_WITH_TFM - select OPENTHREAD_PLATFORM_KEY_REF - select OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE + select OPENTHREAD_PLATFORM_KEY_REF if !OPENTHREAD_COPROCESSOR_RCP + imply OPENTHREAD_PLATFORM_KEYS_EXPORTABLE_ENABLE help Enable crypto backend library implementation based on ARM PSA crypto API instead of the default, using mbedTLS.