diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-06-10 21:57:14 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-06-10 21:57:14 +0700 |
commit | b8b3198c285952625ee00b36a809d6b8a2853a82 (patch) | |
tree | 567f8a537b2c424a471be225ffdc1aee189290c3 | |
parent | Add Ed25519 OID (diff) | |
download | BouncyCastle.NET-ed25519-b8b3198c285952625ee00b36a809d6b8a2853a82.tar.xz |
Add Reseed method to SP800SecureRandom
-rw-r--r-- | crypto/src/crypto/prng/SP800SecureRandom.cs | 7 |
1 files changed, 7 insertions, 0 deletions
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); } + + /// <summary>Force a reseed of the DRBG.</summary> + /// <param name="additionalInput">optional additional input</param> + public virtual void Reseed(byte[] additionalInput) + { + mDrbg.Reseed(additionalInput); + } } } |