News for hackers. Stuff that matters.
Re:Random number generator updates for Linux 5.17 by loeg on Friday January 07, 2022 @12:32PM (#29841968)
There are good reasons not to use Fortuna-as-written nowadays, so I don't fault Linux that. But it would be nice if someone familiar with the design published something like the Fortuna whitepaper, or Microsoft's Windows 10 RNG whitepaper[1].

(Why not use Fortuna as-written? The main reason is that it is not designed to scale. It's a reasonable design for the single core machines of the era when it was written, but it does not worry about contention at all. You could also swap out AES for Chacha as PRF, because: Chacha is faster to seed, faster to generate on machines without AES-NI, and doesn't have some of the theoretical problems -- discussed in the Fortuna chapter -- that AES has with its relatively small 128-bit blocks.)

[1]: https://aka.ms/win10rng

Re:Random number generator updates for Linux 5.17 by throw0101a on Friday January 07, 2022 @01:46PM (#29843028)

    random(4): Fortuna: allow increased concurrency
    Add experimental feature to increase concurrency in Fortuna.  As this
    diverges slightly from canonical Fortuna, and due to the security
    sensitivity of random(4), it is off by default.  To enable it, set the
    tunable kern.random.fortuna.concurrent_read="1".  The rest of this commit
    message describes the behavior when enabled.

    […]
* https://github.com/freebsd/freebsd-src/commit/179f62805cf05c...

    random(4): Flip default Fortuna generator over to Chacha20
    The implementation was landed in r344913 and has had some bake time (at
    least on my personal systems).  There is some discussion of the motivation
    for defaulting to this cipher as a PRF in the commit log for r344913.
    
    As documented in that commit, administrators can retain the prior (AES-ICM)
    mode of operation by setting the 'kern.random.use_chacha20_cipher' tunable
    to 0 in loader.conf(5).
    
    Approved by: csprng(delphij, markm)
    Differential Revision: https://reviews.freebsd.org/D22878
* https://github.com/freebsd/freebsd-src/commit/68b97d40fbe826...
Re:Random number generator updates for Linux 5.17 by kevans91 on Friday January 07, 2022 @07:50PM (#29847266)
I note that the author of the comment you're responding to and the author of these commits is one and the same, fwiw.