4 ms·
Consider using crypto.randomBytes() for your key generation.
by nwh 13y ago
Consider using crypto.randomBytes() for your key generation.
- absherwin 13y agoSJCL fills its initial entropy pool with crypto.getRandomValues()
- nwh 13y agoApologies, I missed that on first glance. I'm not sure why you'd want to run your CSRNG through a bunch of additional functions, at best you're doing nothing, at worst you're reducing the quality of the entropy.
- absherwin 13y agoNP. Checking code is a good. It's not the clearest code since the initialization is located separately from the main RNG function. If you actually tried to read the inline minified version of SJCL, I'm sorry but impressed.