aboutsummaryrefslogtreecommitdiffstats
path: root/src/rng
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-04-28 05:16:12 +0000
committerlloyd <[email protected]>2012-04-28 05:16:12 +0000
commit3dc99b8c2e00f74b04e11cf0333a230532d8cb13 (patch)
treeed508596ad80067ec6833ab5b8154f545e56192e /src/rng
parent5ba3e1e474a1803e65c6ff0c4bffb1205dcb954a (diff)
Partially roll back b2aef16225863cef27cdee4b91703966b3ed1458, it
caused huge performance issues with DSA/ECDSA signing performance.
Diffstat (limited to 'src/rng')
-rw-r--r--src/rng/hmac_rng/hmac_rng.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}
/*