Top Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class DRBGPseudoRandom

extends Object
implements DRBG
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.fips.DRBG
Imports
org.bouncycastle.crypto.EntropySource

Field Summary

Modifier and TypeField and Description
private final FipsAlgorithm
private DRBG
private final DRBGProvider
private final EntropySource

Constructor Summary

AccessConstructor and Description
pack-priv
DRBGPseudoRandom(FipsAlgorithm algorithm, EntropySource entropySource, DRBGProvider drbgProvider)

Method Summary

Modifier and TypeMethod and Description
public VariantInternalKatTest
createReseedSelfTest(FipsAlgorithm
the FipsAlgorithm type
algorithm
)

Implements org.bouncycastle.crypto.fips.DRBG.createReseedSelfTest.

Return a KAT for the DRBG - used prior to reseed.
public VariantInternalKatTest
createSelfTest(FipsAlgorithm
the FipsAlgorithm type
algorithm
)

Implements org.bouncycastle.crypto.fips.DRBG.createSelfTest.

Return a KAT for the DRBG - used prior to initialisation.
public int
generate(byte[]
output array for generated bits.
output
,
byte[]
additional input to be added to the DRBG in this step.
additionalInput
,
boolean
true if a reseed should be forced, false otherwise.
predictionResistant
)

Implements org.bouncycastle.crypto.fips.DRBG.generate.

Populate a passed in array with random data.
public int

Returns:

number of bits produced each cycle.
getBlockSize
()

Implements org.bouncycastle.crypto.fips.DRBG.getBlockSize.

Return the block size of the underlying DRBG
public int
getSecurityStrength()

Implements org.bouncycastle.crypto.fips.DRBG.getSecurityStrength.

Return the security strength of the DRBG.
private void
public void
reseed(byte[]
additional input to be added to the DRBG in this step.
additionalInput
)

Implements org.bouncycastle.crypto.fips.DRBG.reseed.

Reseed the DRBG.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
private final FipsAlgorithm algorithm
drbgback to summary
private DRBG drbg
drbgProviderback to summary
private final DRBGProvider drbgProvider
entropySourceback to summary
private final EntropySource entropySource

Constructor Detail

DRBGPseudoRandomback to summary
pack-priv DRBGPseudoRandom(FipsAlgorithm algorithm, EntropySource entropySource, DRBGProvider drbgProvider)

Method Detail

createReseedSelfTestback to summary
public VariantInternalKatTest createReseedSelfTest(FipsAlgorithm algorithm)

Implements org.bouncycastle.crypto.fips.DRBG.createReseedSelfTest.

Doc from org.bouncycastle.crypto.fips.DRBG.createReseedSelfTest.

Return a KAT for the DRBG - used prior to reseed.

Parameters
algorithm:FipsAlgorithm

the FipsAlgorithm type

Returns:VariantInternalKatTest

a self test

createSelfTestback to summary
public VariantInternalKatTest createSelfTest(FipsAlgorithm algorithm)

Implements org.bouncycastle.crypto.fips.DRBG.createSelfTest.

Doc from org.bouncycastle.crypto.fips.DRBG.createSelfTest.

Return a KAT for the DRBG - used prior to initialisation.

Parameters
algorithm:FipsAlgorithm

the FipsAlgorithm type

Returns:VariantInternalKatTest

a self test

generateback to summary
public int generate(byte[] output, byte[] additionalInput, boolean predictionResistant)

Implements org.bouncycastle.crypto.fips.DRBG.generate.

Doc from org.bouncycastle.crypto.fips.DRBG.generate.

Populate a passed in array with random data.

Parameters
output:byte[]

output array for generated bits.

additionalInput:byte[]

additional input to be added to the DRBG in this step.

predictionResistant:boolean

true if a reseed should be forced, false otherwise.

Returns:int

number of bits generated, -1 if a reseed required.

getBlockSizeback to summary
public int getBlockSize()

Implements org.bouncycastle.crypto.fips.DRBG.getBlockSize.

Return the block size of the underlying DRBG

Returns:int

number of bits produced each cycle.

getSecurityStrengthback to summary
public int getSecurityStrength()

Implements org.bouncycastle.crypto.fips.DRBG.getSecurityStrength.

Doc from org.bouncycastle.crypto.fips.DRBG.getSecurityStrength.

Return the security strength of the DRBG.

Returns:int

the security strength (in bits) of the DRBG.

lazyInitDRBGback to summary
private void lazyInitDRBG()
reseedback to summary
public void reseed(byte[] additionalInput)

Implements org.bouncycastle.crypto.fips.DRBG.reseed.

Doc from org.bouncycastle.crypto.fips.DRBG.reseed.

Reseed the DRBG.

Parameters
additionalInput:byte[]

additional input to be added to the DRBG in this step.