From 3dc99b8c2e00f74b04e11cf0333a230532d8cb13 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 28 Apr 2012 05:16:12 +0000 Subject: Partially roll back b2aef16225863cef27cdee4b91703966b3ed1458, it caused huge performance issues with DSA/ECDSA signing performance. --- src/rng/hmac_rng/hmac_rng.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rng') diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp index 74ba522a4..174651e18 100644 --- a/src/rng/hmac_rng/hmac_rng.cpp +++ b/src/rng/hmac_rng/hmac_rng.cpp @@ -124,7 +124,7 @@ void HMAC_RNG::reseed(size_t poll_bits) */ void HMAC_RNG::add_entropy(const byte input[], size_t length) { - const size_t USER_ENTROPY_WATERSHED = 20; + const size_t USER_ENTROPY_WATERSHED = 64; extractor->update(input, length); user_input_len += length; @@ -136,7 +136,7 @@ void HMAC_RNG::add_entropy(const byte input[], size_t length) * the extractor input. */ if(user_input_len >= USER_ENTROPY_WATERSHED) - reseed(128); + reseed(0); } /* -- cgit v1.2.3