aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-28 14:12:33 +0000
committerlloyd <[email protected]>2008-06-28 14:12:33 +0000
commit0071ad80fc8eafc607d31018da27640c80d52af2 (patch)
tree33fc52ff38eacd0e41ad8cc074a1d36f02cf18c8 /src
parent584b0db717ece6f64e8d96999d3f8b4374ceb564 (diff)
Reseed the underlying PRNG when ANSI_X931_PRNG:reseed is called
Diffstat (limited to 'src')
-rw-r--r--src/x931_rng.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x931_rng.cpp b/src/x931_rng.cpp
index 24b5059f1..68d633df4 100644
--- a/src/x931_rng.cpp
+++ b/src/x931_rng.cpp
@@ -56,6 +56,8 @@ void ANSI_X931_RNG::update_buffer()
*************************************************/
void ANSI_X931_RNG::reseed()
{
+ prng->reseed();
+
SecureVector<byte> key(cipher->MAXIMUM_KEYLENGTH);
prng->randomize(key, key.size());
cipher->set_key(key, key.size());