public static class FipsDRBG.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
FipsSecureRandom |
build(byte[] nonce,
boolean predictionResistant)
Build a SecureRandom based on a SP 800-90A DRBG.
|
FipsSecureRandom |
build(byte[] nonce,
boolean predictionResistant,
byte[] additionalInput)
Build a SecureRandom based on a SP 800-90A DRBG.
|
FipsDRBG.Builder |
setEntropyBitsRequired(int entropyBitsRequired)
Set the amount of entropy bits required for seeding and reseeding DRBGs used in building SecureRandom objects.
|
FipsDRBG.Builder |
setPersonalizationString(byte[] personalizationString)
Set the personalization string for DRBG SecureRandoms created by this builder
|
FipsDRBG.Builder |
setSecurityStrength(int securityStrength)
Set the security strength required for DRBGs used in building SecureRandom objects.
|
public FipsDRBG.Builder setPersonalizationString(byte[] personalizationString)
personalizationString
- the personalisation string for the underlying DRBG.public FipsDRBG.Builder setSecurityStrength(int securityStrength)
securityStrength
- the security strength (in bits)public FipsDRBG.Builder setEntropyBitsRequired(int entropyBitsRequired)
entropyBitsRequired
- the number of bits of entropy to be requested from the entropy source on each seed/reseed.public FipsSecureRandom build(byte[] nonce, boolean predictionResistant)
nonce
- nonce value to use in DRBG construction.predictionResistant
- specify whether the underlying DRBG in the resulting SecureRandom should reseed on each request for bytes.public FipsSecureRandom build(byte[] nonce, boolean predictionResistant, byte[] additionalInput)
nonce
- nonce value to use in DRBG construction.predictionResistant
- specify whether the underlying DRBG in the resulting SecureRandom should reseed on each request for bytes.additionalInput
- initial additional input to be used for generating the initial continuous health check block by the DRBG.