-
Notifications
You must be signed in to change notification settings - Fork 407
Consier speeding up get_secure_random_bytes
#1958
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
Comments
I can take this up if no one has started yet. I've done an initial experiment, and it seems that using chacha can get the execution time of Some of the tests broke, but I think it's due to them relying on the values that the original method generated using the same |
Nice! Thanks. |
I think I need some help here. I opened a draft PR with the current state of my attempt -> #1974. One unit test fails because 2 Also, I'm not sure of the safety of the RNG implementation. Some thoughts on that would also be appreciated 🙂 |
Let's continue the discussion on the PR, thanks! |
We really should swap out for a "real" CSPRNG, not because it'll be more secure, but because it'll be way faster than deriving a new HD key and hashing it. Preferrably something chacha-based given we already have chacha in-tree.
The text was updated successfully, but these errors were encountered: