git: DragonFly_RELEASE_3_8 kernel - Update existing csprng
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Jun 12 21:52:26 PDT 2014
commit ecec50a0e48e56478c028502a2ebac6ecbcb8026
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Jun 12 21:47:45 2014 -0700
kernel - Update existing csprng
* Bring the current csprng up-to-date as per the author. However, note
that we will likely be making additional commits to add other csprng
algorithms to the system.
- Change stateIndex to a static instead of starting at 0 each time
to improve security.
- Move the L_SCHEDULE(keyLen) to the end.
- Warm-up the IBAA in the entropy interrupt. Author suggested warming
it up before each read_random() but that creates a non-deterministic
performance problem.
* Change read_random_unlimited() from L15_Byte() to IBAA_Byte().
read_random() already uses IBAA_Byte(). That is, go with the
heavier-weight csprng for everything (sysctl, /dev/urandom, /dev/random).
Before only /dev/random was using the heavier-weight csprng.
Summary of changes:
sys/kern/kern_nrandom.c | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ecec50a0e48e56478c028502a2ebac6ecbcb8026
--
DragonFly BSD source repository
More information about the Commits
mailing list