tests: bt: enable entropy sources where missing
Moving from TinyCrypt to PSA Crypto API caused an entropy source to be always required, so this commit adds it in tests where necessary. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
72555fabb4
commit
55c0b2ea45
16 changed files with 46 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
# We need a random number generator to properly initialize the PSA Crypto core
|
||||||
|
# implemented by Mbed TLS. The proper thing to do in this platform would be
|
||||||
|
# to enable ENTROPY_GENERATOR, but this is not supported right now for the
|
||||||
|
# following reasons:
|
||||||
|
# - at device-tree level (nrf54l15_cpuapp.dtsi) the only RNG source available
|
||||||
|
# is "zephyr,psa-crypto-rng" which means that TF-M is required in order for
|
||||||
|
# this to work. Unfortunately TF-M is still not supported for this platform, yet.
|
||||||
|
# - cpuapp does not have a direct access to the RNG without TF-M, so there's
|
||||||
|
# no other way it can make use of it as of now.
|
||||||
|
#
|
||||||
|
# Since both options are not viable, we fall back to the test random generator
|
||||||
|
# until further support is added to the platform.
|
||||||
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
@ -1 +1,2 @@
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -15,3 +15,5 @@ CONFIG_MAIN_STACK_SIZE=2048
|
||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_CBPRINTF_FP_SUPPORT=y
|
CONFIG_CBPRINTF_FP_SUPPORT=y
|
||||||
CONFIG_LOG_BUFFER_SIZE=2048
|
CONFIG_LOG_BUFFER_SIZE=2048
|
||||||
|
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
|
@ -0,0 +1,3 @@
|
||||||
|
&rng {
|
||||||
|
status = "okay";
|
||||||
|
};
|
|
@ -0,0 +1,13 @@
|
||||||
|
# We need a random number generator to properly initialize the PSA Crypto core
|
||||||
|
# implemented by Mbed TLS. The proper thing to do in this platform would be
|
||||||
|
# to enable ENTROPY_GENERATOR, but this is not supported right now for the
|
||||||
|
# following reasons:
|
||||||
|
# - at device-tree level (nrf54l15_cpuapp.dtsi) the only RNG source available
|
||||||
|
# is "zephyr,psa-crypto-rng" which means that TF-M is required in order for
|
||||||
|
# this to work. Unfortunately TF-M is still not supported for this platform, yet.
|
||||||
|
# - cpuapp does not have a direct access to the RNG without TF-M, so there's
|
||||||
|
# no other way it can make use of it as of now.
|
||||||
|
#
|
||||||
|
# Since both options are not viable, we fall back to the test random generator
|
||||||
|
# until further support is added to the platform.
|
||||||
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
@ -1 +1,2 @@
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
|
@ -1 +1,2 @@
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -4,3 +4,4 @@ CONFIG_BT_DEVICE_NAME="P2PSRV1"
|
||||||
CONFIG_BT_GATT_CLIENT=y
|
CONFIG_BT_GATT_CLIENT=y
|
||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_LOG_BUFFER_SIZE=2048
|
CONFIG_LOG_BUFFER_SIZE=2048
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -2,3 +2,4 @@ CONFIG_BT=y
|
||||||
CONFIG_BT_DEVICE_NAME="Test beacon"
|
CONFIG_BT_DEVICE_NAME="Test beacon"
|
||||||
CONFIG_POWEROFF=y
|
CONFIG_POWEROFF=y
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -8,3 +8,5 @@ CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048
|
||||||
# Uncomment to use the maximum buffer size
|
# Uncomment to use the maximum buffer size
|
||||||
# CONFIG_BT_L2CAP_TX_MTU=600
|
# CONFIG_BT_L2CAP_TX_MTU=600
|
||||||
# CONFIG_BT_BUF_ACL_RX_SIZE=600
|
# CONFIG_BT_BUF_ACL_RX_SIZE=600
|
||||||
|
|
||||||
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||||
|
|
|
@ -248,3 +248,6 @@ CONFIG_BT_CTLR_ADV_ISO_STREAM_MAX=4
|
||||||
# Match the number of unicast streams supported in BAP
|
# Match the number of unicast streams supported in BAP
|
||||||
CONFIG_BT_CTLR_ISOAL_SOURCES=2
|
CONFIG_BT_CTLR_ISOAL_SOURCES=2
|
||||||
CONFIG_BT_CTLR_ISOAL_SINKS=2
|
CONFIG_BT_CTLR_ISOAL_SINKS=2
|
||||||
|
|
||||||
|
# Enable entropy source for Mbed TLS's PSA Crypto core
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
||||||
# debug options
|
# debug options
|
||||||
# CONFIG_UART_CONSOLE=y
|
# CONFIG_UART_CONSOLE=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
CONFIG_BT_MAX_CONN=16
|
CONFIG_BT_MAX_CONN=16
|
||||||
|
CONFIG_ENTROPY_GENERATOR=y
|
||||||
|
|
||||||
# debug options
|
# debug options
|
||||||
# CONFIG_UART_CONSOLE=y
|
# CONFIG_UART_CONSOLE=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue