Skip to content

Commit 7cad522

Browse files
hakonfamrlubos
authored andcommitted
nrf_security: fix broken builtin key support for nrf54h
It was no longer enabled after the upmerge. Ref: NCSDK-29546 Signed-off-by: Håkon Amundsen <[email protected]>
1 parent 47f5b29 commit 7cad522

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

subsys/nrf_security/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ target_compile_definitions(psa_crypto_library_config
117117
# The name and intent of this comes from TF-M distribution
118118
add_library(psa_interface INTERFACE)
119119

120-
# In nRF54L this configuration is required for the HUK keys to work
121-
if(CONFIG_SOC_SERIES_NRF54LX AND (CONFIG_HW_UNIQUE_KEY OR CONFIG_IDENTITY_KEY))
120+
if(CONFIG_MBEDTLS_ENABLE_BUILTIN_KEYS)
122121
# Add config files required for PSA crypto interface
123122
target_compile_definitions(psa_interface
124123
INTERFACE

subsys/nrf_security/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ config PSA_PROMPTLESS
5353

5454
if NRF_SECURITY
5555

56+
config MBEDTLS_ENABLE_BUILTIN_KEYS
57+
bool
58+
default y if SOC_SERIES_NRF54LX && (HW_UNIQUE_KEY || IDENTITY_KEY)
59+
default y if SOC_SERIES_NRF54HX && (SOC_NRF54H20_CPUSEC)
60+
help
61+
Promptless option used to control if MBEDTLS should have support for builtin keys or not.
62+
5663
config MBEDTLS_CFG_FILE
5764
string "mbed TLS configuration file"
5865
default "nrf-config.h"

0 commit comments

Comments
 (0)