Skip to content

Commit 13675ca

Browse files
gordonklausrlubos
authored andcommitted
samples: bluetooth: Enable PSA RNG on 54h in Dragoon-owned samples
The PSA RNG is a cryptographically secure random number generator. It will be enabled by default, eventually. For now, enable it manually. Signed-off-by: Gordon Klaus <[email protected]>
1 parent 1f6f021 commit 13675ca

24 files changed

+278
-0
lines changed

samples/bluetooth/conn_time_sync/boards/nrf54h20dk_nrf54h20_cpuapp.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
55
#
66

77
CONFIG_BT_RX_STACK_SIZE=2048
8+
9+
# Enable PSA RNG
10+
CONFIG_PSA_CRYPTO_DRIVER_OBERON=n
11+
CONFIG_PSA_SSF_CRYPTO_CLIENT=y
12+
CONFIG_SSF_PSA_CRYPTO_SERVICE_ENABLED=y
13+
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
14+
CONFIG_NRF_SECURITY=y
15+
CONFIG_DCACHE=n

samples/bluetooth/conn_time_sync/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,17 @@
2323
nonsecure-channels = < 0x5>;
2424
owned-channels = < 0x4 0x5 0x6>;
2525
};
26+
27+
// Enable PSA RNG
28+
/ {
29+
chosen {
30+
zephyr,entropy = &psa_rng;
31+
};
32+
33+
psa_rng: psa-rng {
34+
compatible = "zephyr,psa-crypto-rng";
35+
status = "okay";
36+
};
37+
38+
/delete-node/ prng;
39+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Enable PSA RNG
8+
CONFIG_PSA_CRYPTO_DRIVER_OBERON=n
9+
CONFIG_PSA_SSF_CRYPTO_CLIENT=y
10+
CONFIG_SSF_PSA_CRYPTO_SERVICE_ENABLED=y
11+
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
12+
CONFIG_NRF_SECURITY=y
13+
CONFIG_DCACHE=n
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Enable PSA RNG
2+
/ {
3+
chosen {
4+
zephyr,entropy = &psa_rng;
5+
};
6+
7+
psa_rng: psa-rng {
8+
compatible = "zephyr,psa-crypto-rng";
9+
status = "okay";
10+
};
11+
12+
/delete-node/ prng;
13+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Enable PSA RNG
8+
CONFIG_PSA_CRYPTO_DRIVER_OBERON=n
9+
CONFIG_PSA_SSF_CRYPTO_CLIENT=y
10+
CONFIG_SSF_PSA_CRYPTO_SERVICE_ENABLED=y
11+
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
12+
CONFIG_NRF_SECURITY=y
13+
CONFIG_DCACHE=n

samples/bluetooth/event_trigger/boards/nrf54h20dk_nrf54h20_cpurad.overlay

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@
99
egu = &egu020;
1010
};
1111
};
12+
13+
// Enable PSA RNG
14+
/ {
15+
chosen {
16+
zephyr,entropy = &psa_rng;
17+
};
18+
19+
psa_rng: psa-rng {
20+
compatible = "zephyr,psa-crypto-rng";
21+
status = "okay";
22+
};
23+
24+
/delete-node/ prng;
25+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Enable PSA RNG
8+
CONFIG_PSA_CRYPTO_DRIVER_OBERON=n
9+
CONFIG_PSA_SSF_CRYPTO_CLIENT=y
10+
CONFIG_SSF_PSA_CRYPTO_SERVICE_ENABLED=y
11+
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
12+
CONFIG_NRF_SECURITY=y
13+
CONFIG_DCACHE=n
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Enable PSA RNG
2+
/ {
3+
chosen {
4+
zephyr,entropy = &psa_rng;
5+
};
6+
7+
psa_rng: psa-rng {
8+
compatible = "zephyr,psa-crypto-rng";
9+
status = "okay";
10+
};
11+
12+
/delete-node/ prng;
13+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Enable PSA RNG
2+
CONFIG_PSA_CRYPTO_DRIVER_OBERON=n
3+
CONFIG_PSA_SSF_CRYPTO_CLIENT=y
4+
CONFIG_SSF_PSA_CRYPTO_SERVICE_ENABLED=y
5+
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
6+
CONFIG_NRF_SECURITY=y
7+
CONFIG_DCACHE=n
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Enable PSA RNG
2+
/ {
3+
chosen {
4+
zephyr,entropy = &psa_rng;
5+
};
6+
7+
psa_rng: psa-rng {
8+
compatible = "zephyr,psa-crypto-rng";
9+
status = "okay";
10+
};
11+
12+
/delete-node/ prng;
13+
};

0 commit comments

Comments
 (0)