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.
test: drivers: rand32: add overlay for PSA Crypto Random entropy
This adds an overlay DT & config to enable the PSA Crypto Random entropy driver to get random bytes from TFM. Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Valerio Setti <[email protected]>
- Loading branch information
1 parent
7266f82
commit 62dc712
Showing
3 changed files
with
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (c) 2022 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
zephyr,entropy = &rng_psa; | ||
}; | ||
|
||
rng_psa: entropy_psa_crypto { | ||
compatible = "zephyr,psa-crypto-rng"; | ||
status = "okay"; | ||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CONFIG_ZTEST=y | ||
CONFIG_ZTEST_NEW_API=y | ||
CONFIG_LOG=y | ||
CONFIG_ENTROPY_GENERATOR=y | ||
CONFIG_HARDWARE_DEVICE_CS_GENERATOR=y | ||
CONFIG_TFM_PARTITION_CRYPTO=y | ||
CONFIG_TFM_CRYPTO_RNG_MODULE_ENABLED=y | ||
CONFIG_ENTROPY_PSA_CRYPTO_RNG=y |
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