From 8124e357b732a719696bfd5271def4e528f2a1e1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 4 May 2015 16:46:02 +0200 Subject: random: Change initial extra seeding from 2400 bits to 128 bits. * random/random-csprng.c (read_pool): Reduce initial seeding. -- See discussion starting at https://lists.gnupg.org/pipermail/gnupg-devel/2015-April/029750.html and also in May. Signed-off-by: Werner Koch --- random/random-csprng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'random') diff --git a/random/random-csprng.c b/random/random-csprng.c index 332744ba..da50fda7 100644 --- a/random/random-csprng.c +++ b/random/random-csprng.c @@ -973,8 +973,8 @@ read_pool (byte *buffer, size_t length, int level) pool_balance = 0; needed = length - pool_balance; - if (needed < POOLSIZE/2) - needed = POOLSIZE/2; + if (needed < 16) /* At least 128 bits. */ + needed = 16; else if( needed > POOLSIZE ) BUG (); read_random_source (RANDOM_ORIGIN_EXTRAPOLL, needed, -- cgit v1.2.1