diff options
| author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-11-11 12:20:33 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-10 12:06:13 +0200 |
| commit | 5397b9894c1bf94fa500ac434282eb2cb210992b (patch) | |
| tree | 30058da216ec13ae3ce4e7a335cf7b0b9d652a51 /include/linux | |
| parent | c30058329d58964dbfd5b7e58798c6354b352cb7 (diff) | |
random32: add periodic reseeding
The current Tausworthe PRNG is never reseeded with truly random data after
the first attempt in late_initcall. As this PRNG is used for some critical
random data as e.g. UDP port randomization we should try better and reseed
the PRNG once in a while with truly random data from get_random_bytes().
When we reseed with prandom_seed we now make also sure to throw the first
output away. This suffices the reseeding procedure.
The delay calculation is based on a proposal from Eric Dumazet.
Joint work with Daniel Borkmann.
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
