aboutsummaryrefslogtreecommitdiffstats
path: root/src/rng/hmac_rng
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-23 21:36:42 +0000
committerlloyd <[email protected]>2008-11-23 21:36:42 +0000
commit2187f78f9868267384034b76ba477f8ece75e096 (patch)
tree983ad11b47e4ad31940d0cc56fe24979b26bf7de /src/rng/hmac_rng
parent2a90be43f1211671b2be438bf1dc05738c13d74d (diff)
Reduce size of I/O buffer in HMAC_RNG from 128 to 96 bytes. Unlikely that any
entropy source will realistically be able to provide even 768 bits of entropy, so this is probably overkill even still.
Diffstat (limited to 'src/rng/hmac_rng')
-rw-r--r--src/rng/hmac_rng/hmac_rng.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp
index 5f59a1691..188c32689 100644
--- a/src/rng/hmac_rng/hmac_rng.cpp
+++ b/src/rng/hmac_rng/hmac_rng.cpp
@@ -237,7 +237,7 @@ std::string HMAC_RNG::name() const
*************************************************/
HMAC_RNG::HMAC_RNG(MessageAuthenticationCode* extractor_mac,
MessageAuthenticationCode* prf_mac) :
- extractor(extractor_mac), prf(prf_mac), io_buffer(128)
+ extractor(extractor_mac), prf(prf_mac), io_buffer(96)
{
entropy = 0;