Skip to content
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

RNG: Ensure true randomness of generated numbers #1120

Closed
playfulFence opened this issue Jan 26, 2024 · 0 comments · Fixed by #1200
Closed

RNG: Ensure true randomness of generated numbers #1120

playfulFence opened this issue Jan 26, 2024 · 0 comments · Fixed by #1200
Assignees

Comments

@playfulFence
Copy link
Contributor

While working on #942 it turned out that the implementation of the CryptoRng trait implies that the generator should generate truly random numbers (be TRNG), so I looked into TRM section (check attachment) and esp-idf implementation and it turns out that IDF does quite a few things to ensure true randomness of generated numbers. Their actions are also in line with what is written in the documentation, so I guess we also need to do make similar adjustments

image

PS: Conditions of TRNG may differ from chip to chip, but generally they're similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants