Class SP800SecureRandom
- Namespace
- Org.BouncyCastle.Crypto.Prng
- Assembly
- BouncyCastle.Cryptography.dll
public class SP800SecureRandom : SecureRandom
- Inheritance
-
SP800SecureRandom
- Inherited Members
Methods
GenerateSeed(int)
public override byte[] GenerateSeed(int numBytes)
Parameters
numBytesint
Returns
- byte[]
GenerateSeed(Span<byte>)
public override void GenerateSeed(Span<byte> seed)
Parameters
NextBytes(byte[])
Fills the elements of a specified array of bytes with random numbers.
public override void NextBytes(byte[] bytes)
Parameters
bytesbyte[]
Exceptions
- ArgumentNullException
bufferis null.
NextBytes(byte[], int, int)
public override void NextBytes(byte[] buf, int off, int len)
Parameters
NextBytes(Span<byte>)
Fills the elements of a specified span of bytes with random numbers.
public override void NextBytes(Span<byte> buffer)
Parameters
Reseed(byte[])
Force a reseed of the DRBG.
public virtual void Reseed(byte[] additionalInput)
Parameters
additionalInputbyte[]optional additional input
SetSeed(byte[])
public override void SetSeed(byte[] seed)
Parameters
seedbyte[]
SetSeed(long)
public override void SetSeed(long seed)
Parameters
seedlong
SetSeed(Span<byte>)
public override void SetSeed(Span<byte> seed)