Top Description Methods
org.bouncycastle.crypto.fips

pack-priv Interface SP80090DRBG

extends DRBG
Known Direct Implementers
org.bouncycastle.crypto.fips.CTRSP800DRBG, org.bouncycastle.crypto.fips.HashSP800DRBG, org.bouncycastle.crypto.fips.HMacSP800DRBG

Interface to SP800-90A deterministic random bit generators.

Method Summary

Modifier and TypeMethod and Description
public VariantInternalKatTest
createSelfTest(FipsAlgorithm algorithm)

Redeclares org.bouncycastle.crypto.fips.DRBG.createSelfTest.

Perform a instantiate/generate/reseed test.
public int

Returns:

number of bits generated, -1 if a reseed required.
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
)

Redeclares org.bouncycastle.crypto.fips.DRBG.generate.

Populate a passed in array with random data.
public int

Returns:

the block size (in bits) produced by each round of the DRBG.
getBlockSize
()

Redeclares org.bouncycastle.crypto.fips.DRBG.getBlockSize.

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

Redeclares org.bouncycastle.crypto.fips.DRBG.reseed.

Reseed the DRBG.
Inherited from org.bouncycastle.crypto.fips.DRBG:
createReseedSelfTestgetSecurityStrength

Method Detail

createSelfTestback to summary
public VariantInternalKatTest createSelfTest(FipsAlgorithm algorithm)

Redeclares org.bouncycastle.crypto.fips.DRBG.createSelfTest.

Perform a instantiate/generate/reseed test.

Returns:VariantInternalKatTest

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

a self test

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

Redeclares 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()

Redeclares org.bouncycastle.crypto.fips.DRBG.getBlockSize.

Return the block size of the DRBG.

Returns:int

the block size (in bits) produced by each round of the DRBG.

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

Redeclares org.bouncycastle.crypto.fips.DRBG.reseed.

Reseed the DRBG.

Parameters
additionalInput:byte[]

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