Skip to content

Commit 3005952

Browse files
Vge0rgerlubos
authored andcommitted
nrf_security: Enable PSA_CRYPTO for NRF_SECURITY
Enable the option PSA_CRYPTO when NRF_SECURITY is enabled. This will make it possible to select different providers for PSA crypto APIs, one provider being MbedTLS, another is TF-M and a custom one could be used as well. Since nrf_security provides PSA crypto APIs it sets the custom provider as default. Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent 74e6c91 commit 3005952

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

subsys/nrf_security/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ config NRF_SECURITY
4646
# CONFIG_TFM_BL2.
4747
select TFM_BL2_NOT_SUPPORTED if BUILD_WITH_TFM
4848
select PSA_CRYPTO_CLIENT
49+
select PSA_CRYPTO
4950
help
5051
Set this configuration to enable nRF Security. This provides
5152
Arm PSA cryptography APIs with RNG support (optionally).
@@ -58,6 +59,10 @@ config PSA_PROMPTLESS
5859

5960
if NRF_SECURITY
6061

62+
choice PSA_CRYPTO_PROVIDER
63+
default PSA_CRYPTO_PROVIDER_CUSTOM
64+
endchoice
65+
6166
config MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
6267
bool
6368
default y if HAS_HW_NRF_CRACEN && PSA_CRYPTO_DRIVER_CRACEN

0 commit comments

Comments
 (0)