git: kern_nrandom, rnd drivers: update for new CSPRNG

Alex Hornung alexh at crater.dragonflybsd.org
Mon Jul 14 03:20:43 PDT 2014


commit 790110cdccadc4128de10dd878e006ea6d51ac8c
Author: Alex Hornung <alex at alexhornung.com>
Date:   Mon Jul 14 08:53:06 2014 +0100

    kern_nrandom, rnd drivers: update for new CSPRNG
    
     * Identify each source of entropy with an identifier, so that
       for example the Fortuna CSPRNG can manage the pool index
       for each source.
    
     * Add a new sysctl, kern.rand_mode, which can be used to select
       which generator is used for /dev/random; valid values are:
        - csprng (to use only the Fortuna-based CSPRNG)
        - ibaa (to use only IBAA)
        - mixed (to XOR both csprng and ibaa in the output stream
       It defaults to "mixed".

Summary of changes:
 sys/dev/crypto/glxsb/glxsb.c         |   3 +-
 sys/dev/crypto/hifn/hifn7751.c       |   2 +-
 sys/dev/crypto/padlock/padlock_rng.c |   2 +-
 sys/dev/crypto/rdrand/rdrand.c       |   2 +-
 sys/dev/crypto/safe/safe.c           |   2 +-
 sys/dev/crypto/ubsec/ubsec.c         |   2 +-
 sys/kern/kern_memio.c                |   2 +-
 sys/kern/kern_nrandom.c              | 186 +++++++++++++++++++++++++++--------
 sys/sys/random.h                     |  17 +++-
 9 files changed, 167 insertions(+), 51 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/790110cdccadc4128de10dd878e006ea6d51ac8c


-- 
DragonFly BSD source repository


More information about the Commits mailing list