-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
libc: Refine the arc4random_buf implementation #14509
Conversation
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. Missing Information:
Recommendations:
By providing this missing information, your PR will be much stronger and easier for reviewers to understand and approve. |
1857b1e
to
a01585d
Compare
and follow the kernel side change: apache/nuttx#14509 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
and follow the kernel side change: apache/nuttx#14509 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
a01585d
to
3be58aa
Compare
@xiaoxiang781216 maybe we need to update the random number generation Documentation/ to explain that up_rngbuf() now is used to fill the randomness pool |
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.
Thank you @xiaoxiang781216 :-) Build errors :-) + documentation update needed? :-)
fill the buffer with getrandom instead random pool and move the implementation to from crypto to libc Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
3be58aa
to
1c00b1a
Compare
but we don't have any document which describe random pool. |
fixed. |
Okay then nothing to update :-P But I agree some documentation would be nice to have here (different task), random is important, for instance would random work without hardware entropy generator and with software implementation with |
@xiaoxiang781216 @cederom exactly! How to integrate HW RNG, how to use pseudo random generator without HW RNG, etc |
Okay, TODO added in Issue #14511 :-) |
and follow the kernel side change: apache/nuttx#14509 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Sorry @xiaoxiang781216: The arm-04 build is failing at the NuttX Mirror Repo, wonder if it's because of this PR? Thanks!
https://github.com/NuttX/nuttx/actions/runs/11540264972/job/32129220872#step:7:101 Update: This error is strange. Sometimes it doesn't appear: https://github.com/NuttX/nuttx/actions/runs/11540270335 But it appears on my Home Build Server: https://gist.github.com/nuttxpr/74e46f5eca2a0cd5a234e5389d40457a#file-ci-arm-04-log-L157 |
Note: Please adhere to Contributing Guidelines.
Summary
fill the buffer with getrandom instead random pool and move the implementation to from crypto to libc
Impact
Make arc4random_buf always available
Testing
ci