public final class FipsSecureRandom
extends java.security.SecureRandom
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Return the algorithm name
|
int |
getBlockSize()
Return the block size of the underlying DRBG
|
byte[] |
getPersonalizationString()
Return the personalization string used to create the DRBG.
|
int |
getSecurityStrength()
Return the security strength of the DRBG.
|
boolean |
isPredictionResistant()
Return true if the underlying DRBG is configured for prediction resistance.
|
void |
nextBytes(byte[] bytes,
byte[] additionalInput) |
void |
reseed()
Force a reseed.
|
void |
reseed(byte[] additionalInput)
Force a reseed with additional input.
|
void |
setSeed(long seed) |
generateSeed, getInstance, getInstance, getInstance, getInstanceStrong, getProvider, getSeed, next, nextBytes, setSeedpublic void setSeed(long seed)
setSeed in class java.security.SecureRandompublic void nextBytes(byte[] bytes,
byte[] additionalInput)
public java.lang.String getAlgorithm()
getAlgorithm in class java.security.SecureRandompublic int getBlockSize()
public boolean isPredictionResistant()
public byte[] getPersonalizationString()
public int getSecurityStrength()
public void reseed()
public void reseed(byte[] additionalInput)
additionalInput - additional input to be used in conjunction with reseed.