Skip to content

Commit 7e1d25a

Browse files
tomi-fontrlubos
authored andcommitted
nrf_security: improve CONFIG_PSA_WANT_GENERATE_RANDOM
- Make it default y if ENTROPY_PSA_CRYPTO_RNG instead of redefining that Kconfig option to select it. - Select it only when NRF_SECURITY is enabled. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 7b4ec75 commit 7e1d25a

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

subsys/nrf_security/Kconfig.psa.nordic

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ comment "Nordic addded RNG configuration"
424424

425425
config PSA_WANT_GENERATE_RANDOM
426426
bool "PSA RNG support" if !PSA_PROMPTLESS
427-
default y if PSA_CRYPTO_ENABLE_ALL
427+
default y if PSA_CRYPTO_ENABLE_ALL || ENTROPY_PSA_CRYPTO_RNG
428428

429429
comment "Nordic added key types"
430430

@@ -686,6 +686,3 @@ config PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_DERIVE
686686
bool "PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_DERIVE" if !MBEDTLS_PROMPTLESS
687687
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
688688
default y if PSA_CRYPTO_ENABLE_ALL
689-
690-
config ENTROPY_PSA_CRYPTO_RNG
691-
select PSA_WANT_GENERATE_RANDOM

subsys/secure_storage/compatibility/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ choice SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION
2727
config SECURE_STORAGE_ITS_TRANSFORM_IMPLEMENTATION_TSBC
2828
bool "ITS transform module implementation compatible with the Trusted storage library"
2929
depends on SECURE_STORAGE_TRUSTED_STORAGE_COMPATIBILITY
30-
select PSA_WANT_GENERATE_RANDOM
30+
select PSA_WANT_GENERATE_RANDOM if NRF_SECURITY
3131
select PSA_WANT_KEY_TYPE_CHACHA20
3232
select PSA_WANT_ALG_CHACHA20_POLY1305
3333

0 commit comments

Comments
 (0)