Top Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class FixedEntropySourceProvider

extends Object
implements EntropySourceProvider
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.EntropySourceProvider
Known Direct Subclasses
org.bouncycastle.crypto.fips.FipsDRBG.KATEntropyProvider, org.bouncycastle.crypto.fips.DRBGUtils.KATEntropyProvider
Imports
org.bouncycastle.crypto.EntropySource, .EntropySourceProvider

Field Summary

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

Constructor Summary

AccessConstructor and Description
protected
FixedEntropySourceProvider(byte[] data, boolean isPredictionResistant)

Method Summary

Modifier and TypeMethod and Description
public EntropySource
get(final int
the size of the block of entropy required.
bitsRequired
)

Implements org.bouncycastle.crypto.EntropySourceProvider.get.

Return an entropy source providing block of entropy.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private final byte[] data
isPredictionResistantback to summary
private final boolean isPredictionResistant

Constructor Detail

FixedEntropySourceProviderback to summary
protected FixedEntropySourceProvider(byte[] data, boolean isPredictionResistant)

Method Detail

getback to summary
public EntropySource get(final int bitsRequired)

Implements org.bouncycastle.crypto.EntropySourceProvider.get.

Doc from org.bouncycastle.crypto.EntropySourceProvider.get.

Return an entropy source providing block of entropy.

Parameters
bitsRequired:int

the size of the block of entropy required.

Returns:EntropySource

an entropy source providing bitsRequired blocks of entropy.