From b8b3198c285952625ee00b36a809d6b8a2853a82 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 10 Jun 2017 21:57:14 +0700 Subject: Add Reseed method to SP800SecureRandom --- crypto/src/crypto/prng/SP800SecureRandom.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crypto/src') diff --git a/crypto/src/crypto/prng/SP800SecureRandom.cs b/crypto/src/crypto/prng/SP800SecureRandom.cs index 5c5bda399..ac69e27e2 100644 --- a/crypto/src/crypto/prng/SP800SecureRandom.cs +++ b/crypto/src/crypto/prng/SP800SecureRandom.cs @@ -76,5 +76,12 @@ namespace Org.BouncyCastle.Crypto.Prng { return EntropyUtilities.GenerateSeed(mEntropySource, numBytes); } + + /// Force a reseed of the DRBG. + /// optional additional input + public virtual void Reseed(byte[] additionalInput) + { + mDrbg.Reseed(additionalInput); + } } } -- cgit 1.5.1