Top Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class X931PseudoRandom

extends Object
implements DRBG
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.general.DRBG

Field Summary

Modifier and TypeField and Description
private final X931RNG

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
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.general.DRBG.generate.

Populate a passed in array with random data.
public int

Returns:

number of bits produced each cycle.
getBlockSize
()

Implements org.bouncycastle.crypto.general.DRBG.getBlockSize.

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

Implements org.bouncycastle.crypto.general.DRBG.reseed.

Reseed the DRBG.
public void
reseed()

Force a reseed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

drbgback to summary
private final X931RNG drbg

Constructor Detail

X931PseudoRandomback to summary
pack-priv X931PseudoRandom(X931RNG drbg)

Method Detail

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

Implements org.bouncycastle.crypto.general.DRBG.generate.

Doc from org.bouncycastle.crypto.general.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.general.DRBG.getBlockSize.

Return the block size of the underlying DRBG

Returns:int

number of bits produced each cycle.

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

Implements org.bouncycastle.crypto.general.DRBG.reseed.

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

Reseed the DRBG.

Parameters
additionalInput:byte[]

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

reseedback to summary
public void reseed()

Force a reseed.