Skip to content

Commit 69395c1

Browse files
valeriosetticvinayak
authored andcommitted
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 <[email protected]>
1 parent a4cd870 commit 69395c1

File tree

45 files changed

+90
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+90
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_ENTROPY_GENERATOR=y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Use USB Audio as audio sink
22
CONFIG_USE_USB_AUDIO_OUTPUT=y
33
CONFIG_USB_DEVICE_PRODUCT="USB Broadcast Sink"
4+
CONFIG_ENTROPY_GENERATOR=y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_ENTROPY_GENERATOR=y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Use USB Audio as audio source
22
CONFIG_USE_USB_AUDIO_INPUT=y
33
CONFIG_USB_DEVICE_PRODUCT="Zephyr Broadcast Source"
4+
CONFIG_ENTROPY_GENERATOR=y

samples/bluetooth/bap_unicast_client/boards/native_sim.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ CONFIG_FPU=y
88
# than every 10 ms as each PDU for some reason takes 2 ticks to process.
99
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
1010
CONFIG_NATIVE_POSIX_SLOWDOWN_TO_REAL_TIME=y
11+
12+
CONFIG_ENTROPY_GENERATOR=y

samples/bluetooth/bap_unicast_client/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ CONFIG_BT_BUF_ACL_TX_SIZE=251
1111
CONFIG_BT_BUF_CMD_TX_SIZE=255
1212

1313
CONFIG_BT_SEND_ECC_EMULATION=y
14+
15+
CONFIG_ENTROPY_GENERATOR=y

samples/bluetooth/bap_unicast_server/boards/nrf5340bsim_nrf5340_cpuapp.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ CONFIG_BT_BUF_ACL_TX_SIZE=251
88
CONFIG_BT_BUF_CMD_TX_SIZE=255
99

1010
CONFIG_BT_SEND_ECC_EMULATION=y
11+
12+
CONFIG_ENTROPY_GENERATOR=y
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# We need a random number generator to properly initialize the PSA Crypto core
2+
# implemented by Mbed TLS. The proper thing to do in this platform would be
3+
# to enable ENTROPY_GENERATOR, but this is not supported right now for the
4+
# following reasons:
5+
# - at device-tree level (nrf54l15_cpuapp.dtsi) the only RNG source available
6+
# is "zephyr,psa-crypto-rng" which means that TF-M is required in order for
7+
# this to work. Unfortunately TF-M is still not supported for this platform, yet.
8+
# - cpuapp does not have a direct access to the RNG without TF-M, so there's
9+
# no other way it can make use of it as of now.
10+
#
11+
# Since both options are not viable, we fall back to the test random generator
12+
# until further support is added to the platform.
13+
CONFIG_TEST_RANDOM_GENERATOR=y

samples/bluetooth/cap_acceptor/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ CONFIG_BT_BUF_ACL_TX_SIZE=251
44
CONFIG_BT_BUF_CMD_TX_SIZE=255
55

66
CONFIG_BT_SEND_ECC_EMULATION=y
7+
CONFIG_ENTROPY_GENERATOR=y

samples/bluetooth/cap_acceptor/boards/nrf5340dk_nrf5340_cpuapp.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ CONFIG_BT_BUF_ACL_TX_SIZE=251
44
CONFIG_BT_BUF_CMD_TX_SIZE=255
55

66
CONFIG_BT_SEND_ECC_EMULATION=y
7+
CONFIG_ENTROPY_GENERATOR=y

0 commit comments

Comments
 (0)