-
Notifications
You must be signed in to change notification settings - Fork 13
softdevice_handlers: Use TRNG from Cracen #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
You can find the documentation preview for this PR here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain why we are making this change and what's the difference between these two API? I suppose both psa_generate_random
and cracen_get_trng
are seeded from hardware and give good random numbers back?
If I understand correctly, SoftDevice will generate psudo random numbers internally from the seed we pass to the SoftDevice, so only a true random number for seed i needed. No need to generate twice. |
@@ -10,6 +10,7 @@ | |||
#include <nrf_sdh_soc.h> | |||
#include <nrf_soc.h> | |||
#include <psa/crypto.h> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@Vge0rge Please add changelog entry. |
Use the entropy directly from the TRNG peripheral of Cracen for Softdevice. This is done because softdevice needs true RNG data and internally calculates the PRNG data needed for its operation. Signed-off-by: Georgios Vasilakis <[email protected]>
Use the entropy directly from the TRNG peripheral
of Cracen for Softdevice.