Skip to content

Commit d045415

Browse files
tomi-fontde-nordic
authored andcommitted
boot: zephyr: auto-enable TEST_RANDOM_GENERATOR
When enabling `PSA_CRYPTO` and there is no entropy driver in the system. This is needed because in that scenario `MBEDTLS_PSA_CRYPTO_LEGACY_RNG` gets picked by the build system and it would previously automatically `select TEST_RANDOM_GENERATOR` but this bit has been removed so it now needs to be explicitly enabled. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 2d42e8e commit d045415

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

boot/zephyr/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ config BOOT_RSA_TF_PSA_CRYPTO_LEGACY
281281
bool "Use legacy crypto from TF-PSA-Crypto (i.e. Mbed TLS 4.x)"
282282
select BOOT_USE_MBEDTLS
283283
select PSA_CRYPTO
284+
select TEST_RANDOM_GENERATOR if !ENTROPY_HAS_DRIVER
284285
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
285286
select PSA_WANT_ALG_RSA_PKCKS1_V15
286287
select PSA_WANT_ALG_RSA_PSS
@@ -291,6 +292,7 @@ config BOOT_RSA_PSA
291292
bool "Use PSA API crypto"
292293
select BOOT_USE_PSA_CRYPTO
293294
select PSA_CRYPTO
295+
select TEST_RANDOM_GENERATOR if !ENTROPY_HAS_DRIVER
294296
select MBEDTLS_ENABLE_HEAP if MBEDTLS_BUILTIN
295297
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
296298
select PSA_WANT_ALG_RSA_PKCKS1_V15

0 commit comments

Comments
 (0)