Top Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class ContinuousTestingEntropySource

extends Object
implements EntropySource
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EntropySource
Imports
org.bouncycastle.crypto.EntropySource, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private byte[]
private final EntropySource

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
entropySize()

Implements org.bouncycastle.crypto.EntropySource.entropySize.

Return the number of bits of entropy this source can produce.
public byte[]
getEntropy()

Implements org.bouncycastle.crypto.EntropySource.getEntropy.

Return a byte array of entropy.
public boolean
isPredictionResistant()

Implements org.bouncycastle.crypto.EntropySource.isPredictionResistant.

Return whether or not this entropy source is regarded as prediction resistant.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufback to summary
private byte[] buf
entropySourceback to summary
private final EntropySource entropySource

Constructor Detail

ContinuousTestingEntropySourceback to summary
public ContinuousTestingEntropySource(EntropySource entropySource)

Method Detail

entropySizeback to summary
public int entropySize()

Implements org.bouncycastle.crypto.EntropySource.entropySize.

Doc from org.bouncycastle.crypto.EntropySource.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()

Implements org.bouncycastle.crypto.EntropySource.getEntropy.

Doc from org.bouncycastle.crypto.EntropySource.getEntropy.

Return a byte array of entropy.

Returns:byte[]

entropy bytes.

isPredictionResistantback to summary
public boolean isPredictionResistant()

Implements org.bouncycastle.crypto.EntropySource.isPredictionResistant.

Doc from org.bouncycastle.crypto.EntropySource.isPredictionResistant.

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

Returns:boolean

true if it is, false otherwise.