Table of Contents

Interface IEntropySource

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll

Base interface describing an entropy source for a DRBG.

public interface IEntropySource

Properties

EntropySize

Return the number of bits of entropy this source can produce.

int EntropySize { get; }

Property Value

int

The size, in bits, of the return value of getEntropy.

IsPredictionResistant

Return whether or not this entropy source is regarded as prediction resistant.

bool IsPredictionResistant { get; }

Property Value

bool

true if this instance is prediction resistant; otherwise, false.

Methods

GetEntropy()

Return a byte array of entropy.

byte[] GetEntropy()

Returns

byte[]

The entropy bytes.

GetEntropy(Span<byte>)

int GetEntropy(Span<byte> output)

Parameters

output Span<byte>

Returns

int