forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples|tests: secure-storage: allow all test rng sources
Add MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_ALLOW_NON_CSPRNG to the list of test Kconfigs. Typical use case of this: - the platform has "zephyr,entropy" defined in the devicetree which means that CSPRNG_AVAILABLE is set; - for some reason the board actually does not have any entropy driver enabled (ex: ENTROPY_BT_HCI is disabled in nrf5340bsim when BT is _not_ enabled in the build); - since TEST_RANDOM_GENERATOR is enabled then also TEST_CSPRNG_GENERATOR would be; - unfortunately the call to psa_generate_random() would fail in get_random_data() (in modules/mbedtls/zephyr_entropy.c) because MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_ALLOW_NON_CSPRNG is not set and it would not reach "subsys/random/random_test_csprng.c". This commit fixes this problem. Signed-off-by: Valerio Setti <[email protected]>
- Loading branch information
1 parent
46b8536
commit aa64dd3
Showing
4 changed files
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/subsys/secure_storage/psa/its/overlay-transform_default.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters