Top Description Methods
org.bouncycastle.crypto.prng

public Interface EntropySource

Known Direct Subinterfaces
org.bouncycastle.jcajce.provider.drbg.IncrementalEntropySource
Known Direct Implementers
org.bouncycastle.jcajce.provider.drbg.DRBG.HybridEntropySource, org.bouncycastle.jcajce.provider.drbg.DRBG.OneShotHybridEntropySource

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.