public static class X931PRNG.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
GeneralSecureRandom |
build(SymmetricKey key,
boolean predictionResistant)
Construct a X9.31 secure random generator using the passed in engine and key.
|
X931PRNG.Builder |
setDateTimeVector(byte[] dateTimeVector)
Set the dateTime vector to be used with the generator.
|
public X931PRNG.Builder setDateTimeVector(byte[] dateTimeVector)
dateTimeVector
- a dateTime vector - needs to be the same size as the block size of the cipher.public GeneralSecureRandom build(SymmetricKey key, boolean predictionResistant)
key
- the block cipher key to initialise algorithm implementation with.predictionResistant
- true if engine to be reseeded on each use, false otherwise.