git: kernel - add a fortuna-based CSPRNG

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


commit 640491dac3a8e413675460849838bdd9c6d7b2bf
Author: Alex Hornung <alex at alexhornung.com>
Date:   Thu Jun 12 15:24:21 2014 +0100

    kernel - add a fortuna-based CSPRNG
    
     * This implements a Fortuna-based CSPRNG.
    
     * All entropy pools are shared across all CPUs in the system.
    
     * SHA256 is used instead of SHA256_d as cryptographical hash
       function.
    
     * ChaCha is used as stream cipher instead of AES in CTR mode.

Summary of changes:
 sys/kern/subr_csprng.c | 297 +++++++++++++++++++++++++++++++++++++++++++++++++
 sys/sys/csprng.h       |  51 +++++++++
 2 files changed, 348 insertions(+)
 create mode 100644 sys/kern/subr_csprng.c
 create mode 100644 sys/sys/csprng.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/640491dac3a8e413675460849838bdd9c6d7b2bf


-- 
DragonFly BSD source repository



More information about the Commits mailing list