Top Description Methods
org.bouncycastle.crypto

public Interface EntropySource

Known Direct Implementers
org.bouncycastle.crypto.fips.ContinuousTestingEntropySource, org.bouncycastle.crypto.fips.DRBGUtils.LyingEntropySource, org.bouncycastle.crypto.general.ContinuousTestingEntropySource, org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.HybridEntropySource, org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.HybridEntropySource.SignallingEntropySource

Base interface describing an entropy source for a DRBG.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

size in bits of the return value of getEntropy.
entropySize
()

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

public byte[]

Returns:

entropy bytes.
getEntropy
()

Return a byte array of entropy.

public boolean

Returns:

true if it is, false otherwise.
isPredictionResistant
()

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

Method Detail

entropySizeback to summary
public int entropySize()

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

Returns:int

size in bits of the return value of getEntropy.

getEntropyback to summary
public byte[] getEntropy()

Return a byte array of entropy.

Returns:byte[]

entropy bytes.

isPredictionResistantback to summary
public boolean isPredictionResistant()

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

Returns:boolean

true if it is, false otherwise.