Skip to content

Commit

Permalink
nrf_security: Enable OWNER ID for SSF server build
Browse files Browse the repository at this point in the history
Enable MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER when
we build SECDOM with the PSA crypto service enabled.

Signed-off-by: Georgios Vasilakis <[email protected]>
  • Loading branch information
Vge0rge authored and nordicjm committed Aug 16, 2024
1 parent 8765c75 commit aa4225e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions subsys/nrf_security/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ set(mbedtls_target mbedtls)
# Populate ARM_MBEDTLS_PATH with the value of ZEPHYR_MBEDTLS_MODULE_DIR
set(ARM_MBEDTLS_PATH ${ZEPHYR_MBEDTLS_MODULE_DIR})

if(CONFIG_SSF_SERVER_PSA_CRYPTO_SERVICE_ENABLED)
# Inside the SSF server, when the PSA crypto service is enabled we need to
# use the OWNER id to give key ownership to the differrent domains.
set(CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER True)
else()
# MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER must be disabled for Zephyr
# builds or when MBEDTLS_USE_PSA_CRYPTO is enabled (e.g. for TLS/DTLS
# and x.509 support) Note: This configuration is internal and may be
# removed with a new mbed TLS version
set(CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER False)
endif()

if(CONFIG_BUILD_WITH_TFM)
# Execute Cmake logic to forward configurations to TF-M build
Expand Down

0 comments on commit aa4225e

Please sign in to comment.