public class SP800SecureRandom
extends java.security.SecureRandom
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSeed(int numBytes) |
java.lang.String |
getAlgorithm() |
void |
nextBytes(byte[] bytes) |
void |
nextBytes(byte[] bytes,
byte[] additionalInput)
Generate a user-specified number of random bytes, passing additional input to the DRBG.
|
void |
reseed(byte[] additionalInput)
Force a reseed of the DRBG
|
void |
setSeed(byte[] seed) |
void |
setSeed(long seed) |
getInstance, getInstance, getInstance, getInstanceStrong, getProvider, getSeed, nextpublic void setSeed(byte[] seed)
setSeed in class java.security.SecureRandompublic void setSeed(long seed)
setSeed in class java.security.SecureRandompublic java.lang.String getAlgorithm()
getAlgorithm in class java.security.SecureRandompublic void nextBytes(byte[] bytes)
nextBytes in class java.security.SecureRandompublic void nextBytes(byte[] bytes,
byte[] additionalInput)
bytes - the array to be filled in with random bytes.additionalInput - optional additional input for the DRBG, may be null (cast a literal null to byte[], as
Java 9 and later also have SecureRandom.nextBytes(byte[], SecureRandomParameters)).public byte[] generateSeed(int numBytes)
generateSeed in class java.security.SecureRandompublic void reseed(byte[] additionalInput)
additionalInput - optional additional input