3 ms·
The commit log message is probably a better link than the (short) thread: https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git/commit/?id=d512f889f8
by tptacek 5y ago
The commit log message is probably a better link than the (short) thread:
https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git/commit/?id=d512f889f8c7c7b80fe556748b90ae290b92f610 https://git.kernel.org/pub/scm/linux/kernel/git/crng/random....
It's quite detailed.
The nutshell of this is that `mix_pool_bytes` (we'll call it M), the LFSR mixing function in the core of the LRNG, has been replaced with Blake2. The M function is slow doesn't adequately recover security if the state is compromised. This is a well-known problem, but one no longer accepted in new designs as CSPRNGs are increasingly formalized.
The new LRNG is much simpler (a lot of it is simply calls to Blake2 now), easier to reason about, and fast.
- 0xdeadb00f 5y agoSo just so I'm not misunderstanding: this changes the innerworkings of the "mixing" function that takes a number of raw entropy inputs and mixes them together, from an LFSR-based one to a hash-based one backed by blake2s. But this doesn't change the chacha20-based CSPRNG that actually ends up being the output of /dev/urandom? But am i correct in saying this entropy mixing eventually leads to some seed data that seeds the chacha20-based CSPRNG?