summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-06-10 21:57:14 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-06-10 21:57:14 +0700
commitb8b3198c285952625ee00b36a809d6b8a2853a82 (patch)
tree567f8a537b2c424a471be225ffdc1aee189290c3
parentAdd Ed25519 OID (diff)
downloadBouncyCastle.NET-ed25519-b8b3198c285952625ee00b36a809d6b8a2853a82.tar.xz
Add Reseed method to SP800SecureRandom
-rw-r--r--crypto/src/crypto/prng/SP800SecureRandom.cs7
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);
+        }
     }
 }