Skip to content

Use TRNG as additional entropy source on RP2350#10826

Merged
tannewt merged 1 commit intoadafruit:mainfrom
mimi89999:trng_rp2350
Feb 18, 2026
Merged

Use TRNG as additional entropy source on RP2350#10826
tannewt merged 1 commit intoadafruit:mainfrom
mimi89999:trng_rp2350

Conversation

@mimi89999
Copy link

@mimi89999 mimi89999 commented Feb 17, 2026

On RP2350 entropy will come from both the dedicated TRNG peripheral and the ROSC.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Why not just use what pico-sdk does?

@mimi89999
Copy link
Author

Why not just use what pico-sdk does?

pico_rand uses splitmix64/xoroshiro128** as its conditioner, while this implementation uses SHA-256, which is a cryptographically stronger conditioner. It also gives more control over the TRNG configuration (health tests, sampling rate).

This is consistent with what the RP2350 bootrom itself does. As documented in section 12.12.4.1 of the datasheet, the bootrom also uses SHA-256 for entropy conditioning:
https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Ok! Thank you!

@tannewt tannewt merged commit 35401b5 into adafruit:main Feb 18, 2026
166 checks passed
@mimi89999 mimi89999 deleted the trng_rp2350 branch February 18, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments