Table of Contents

Class VmpcRandomGenerator

Namespace
Org.BouncyCastle.Crypto.Prng
Assembly
BouncyCastle.Cryptography.dll
public sealed class VmpcRandomGenerator : IRandomGenerator
Inheritance
VmpcRandomGenerator
Implements
Inherited Members

Constructors

VmpcRandomGenerator()

public VmpcRandomGenerator()

Methods

AddSeedMaterial(byte[])

Add more seed material to the generator.

public void AddSeedMaterial(byte[] seed)

Parameters

seed byte[]

A byte array to be mixed into the generator's state.

AddSeedMaterial(long)

Add more seed material to the generator.

public void AddSeedMaterial(long seed)

Parameters

seed long

A long value to be mixed into the generator's state.

AddSeedMaterial(ReadOnlySpan<byte>)

public void AddSeedMaterial(ReadOnlySpan<byte> seed)

Parameters

seed ReadOnlySpan<byte>

NextBytes(byte[])

Fill byte array with random values.

public void NextBytes(byte[] bytes)

Parameters

bytes byte[]

Array to be filled.

NextBytes(byte[], int, int)

Fill byte array with random values.

public void NextBytes(byte[] bytes, int start, int len)

Parameters

bytes byte[]

Array to receive bytes.

start int

Index to start filling at.

len int

Length of segment to fill.

NextBytes(Span<byte>)

public void NextBytes(Span<byte> bytes)

Parameters

bytes Span<byte>