Uh oh!
There was an error while loading. Please reload this page.
Implement CryptoRng for EntropyRng and StdRng - #323
Conversation
dhardy
commented
Mar 22, 2018
Another thing which may have fallen through the cracks: should |
pitdicker
commented
Mar 22, 2018
I don't know. I think |
dhardy
commented
Mar 22, 2018
The only real reason is that |
pitdicker
commented
Mar 22, 2018
Good point. Shall I add it to this PR? |
dhardy
commented
Mar 22, 2018
Looks ready for merge to me |
burdges
commented
Mar 23, 2018
Is the point of EntropyRng that it can use woefully insecure things when nothing secure is available? |
pitdicker
commented
Mar 23, 2018
😄 Actually quite the opposite. It just builds on the idea that |
dhardy
commented
Mar 23, 2018
Using the clock directly (like I tried doing before this), that is. |
burdges
commented
Mar 23, 2018
I think an entropy based CSPRNG needs to know when it has enough randomness and refuse to give out random numbers if it does not. We've no error path so this mean it needs to panic. Is that what happens? |
pitdicker
commented
Mar 23, 2018
|
burdges
commented
Mar 23, 2018
Apologizes but I ignored the whole |
pitdicker
commented
Mar 23, 2018
You can read all about it on the author's page (This is just a Rust implementation of his library) www.chronox.de/jent/doc/CPU-Jitter-NPTRNG.html |
dhardy
commented
Mar 23, 2018
A CSPRNG only needs enough entropy for seeding, after that it's independent of the entropy source (unless you want to reseed).
|
burdges
commented
Mar 24, 2018
I'll read it, thanks! I also finally noticed the panic when entropy sources fail, which makes sense. lol I'd suggest adding this method, both so that users know how to test if an EntropyRng is ready, and to help test that I do not understand why |
pitdicker
commented
Mar 24, 2018
@burdges Thanks for giving it such close attention 😄. The idea to use
A test for |
Implement CryptoRng for EntropyRng and StdRng
Fallen through the cracks...