Skip to content

Commit 804577c

Browse files
committed
[nrf fromlist] tests: secure_storage: enable entropy driver if available
On top of enabling and allowing test entropy sources, enable CONFIG_ENTROPY_GENERATOR so that a real driver and entropy source gets used if available. This is needed for some PSA Crypto implementations that have random number generation conditionally compiled in. Signed-off-by: Tomi Fontanilles <[email protected]> Upstream PR #: 85735 (cherry picked from commit 8cbe554ce942e3dce6cbee721af6d464372fdf91) Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 2bf2085 commit 804577c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/subsys/secure_storage/psa/crypto/overlay-secure_storage.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG_ZTEST_STACK_SIZE=3072
22
CONFIG_MAIN_STACK_SIZE=2048
33

44
CONFIG_MBEDTLS=y
5+
CONFIG_ENTROPY_GENERATOR=y
56
CONFIG_TEST_RANDOM_GENERATOR=y
67
CONFIG_TIMER_RANDOM_GENERATOR=y
78
CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_ALLOW_NON_CSPRNG=y

tests/subsys/secure_storage/psa/its/overlay-transform_default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CONFIG_MBEDTLS=y
2+
CONFIG_ENTROPY_GENERATOR=y
23
CONFIG_TEST_RANDOM_GENERATOR=y
34
CONFIG_TIMER_RANDOM_GENERATOR=y
45
CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_ALLOW_NON_CSPRNG=y

0 commit comments

Comments
 (0)