Skip to content

Commit

Permalink
nrf_security: Make PSA SSF client independent
Browse files Browse the repository at this point in the history
This renames the configuration
PSA_SSF_CRYPTO_CLIENT -> NRF_PSA_SSF_CRYPTO_CLIENT

and makes it independent from NRF_SECURITY.

This configuration provides the PSA implementation
from the secure domain through the SSF client and
it has no configurability yet. So there is no need
to enforce NRF_SECURITY with this configuration.

Signed-off-by: Georgios Vasilakis <[email protected]>
  • Loading branch information
Vge0rge committed Sep 27, 2024
1 parent 70b3997 commit 94a8dab
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion subsys/nrf_security/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if(CONFIG_BUILD_WITH_TFM)
include(${NRF_SECURITY_ROOT}/cmake/config_to_tf-m.cmake)
endif()

if(CONFIG_BUILD_WITH_TFM OR CONFIG_PSA_SSF_CRYPTO_CLIENT)
if(CONFIG_BUILD_WITH_TFM OR (CONFIG_NRF_PSA_SSF_CRYPTO_CLIENT AND CONFIG_NRF_SECURITY))
# We enable either TF-M or the SSF client PSA crypto interface but we are
# not in the secure image build

Expand Down
6 changes: 6 additions & 0 deletions subsys/nrf_security/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ config NORDIC_SECURITY_BACKEND
Note that this will enable nrf_oberon by default. Multiple backends is
not supported.

config NRF_PSA_SSF_CRYPTO_CLIENT
bool
prompt "PSA crypto provided through SSF"
default y
depends on SSF_CLIENT && SSF_PSA_CRYPTO_SERVICE_ENABLED

config NRF_SECURITY
bool
prompt "Enable nRF Security" if !PSA_PROMPTLESS
Expand Down
2 changes: 0 additions & 2 deletions subsys/nrf_security/Kconfig.psa
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ osource "modules/mbedtls/Kconfig.psa"

rsource "src/core/Kconfig"

rsource "src/ssf_secdom/Kconfig"

comment "PSA Driver Support"

config MBEDTLS_PSA_CRYPTO_DRIVERS
Expand Down
2 changes: 1 addition & 1 deletion subsys/nrf_security/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ add_library(${mbedcrypto_target}
${src_crypto}
)

if(CONFIG_PSA_SSF_CRYPTO_CLIENT)
if(CONFIG_NRF_PSA_SSF_CRYPTO_CLIENT)
add_subdirectory(ssf_secdom)
endif()

Expand Down
11 changes: 0 additions & 11 deletions subsys/nrf_security/src/ssf_secdom/Kconfig

This file was deleted.

0 comments on commit 94a8dab

Please sign in to comment.