Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/nrf-bm/release_notes/release_notes_changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SoftDevice Handler
==================

* Updated the system initialization to initialize on application level.
* Updated the entropy source to use the Cracen true random number generator instead of the Cracen pseudorandom number generator.

Boards
======
Expand Down
3 changes: 2 additions & 1 deletion subsys/softdevice_handler/nrf_sdh_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <nrf_sdh_soc.h>
#include <nrf_soc.h>
#include <psa/crypto.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we can get rid of this then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, because the psa_status codes comes from this header.

#include <cracen_psa.h>
#include <zephyr/logging/log.h>

LOG_MODULE_DECLARE(nrf_sdh, CONFIG_NRF_SDH_LOG_LEVEL);
Expand Down Expand Up @@ -48,7 +49,7 @@ static void softdevice_rng_seed(void)
psa_status_t status;
uint8_t seed[SD_RAND_SEED_SIZE];

status = psa_generate_random(seed, sizeof(seed));
status = cracen_get_trng(seed, sizeof(seed));
if (status == PSA_SUCCESS) {
err = sd_rand_seed_set(seed);
memset(seed, 0, sizeof(seed));
Expand Down