Table of Contents

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

numBytes int

Returns

byte[]

GenerateSeed(Span<byte>)

public override void GenerateSeed(Span<byte> seed)

Parameters

seed Span<byte>

NextBytes(byte[])

Fills the elements of a specified array of bytes with random numbers.

public override void NextBytes(byte[] bytes)

Parameters

bytes byte[]

Exceptions

ArgumentNullException

buffer is null.

NextBytes(byte[], int, int)

public override void NextBytes(byte[] buf, int off, int len)

Parameters

buf byte[]
off int
len int

NextBytes(Span<byte>)

Fills the elements of a specified span of bytes with random numbers.

public override void NextBytes(Span<byte> buffer)

Parameters

buffer Span<byte>

The array to be filled with random numbers.

Reseed(byte[])

Force a reseed of the DRBG.

public virtual void Reseed(byte[] additionalInput)

Parameters

additionalInput byte[]

optional additional input

SetSeed(byte[])

public override void SetSeed(byte[] seed)

Parameters

seed byte[]

SetSeed(long)

public override void SetSeed(long seed)

Parameters

seed long

SetSeed(Span<byte>)

public override void SetSeed(Span<byte> seed)

Parameters

seed Span<byte>