Package org.bouncycastle.crypto.prng
Class SP800SecureRandom
java.lang.Object
java.util.Random
java.security.SecureRandom
org.bouncycastle.crypto.prng.SP800SecureRandom
- All Implemented Interfaces:
Serializable
,RandomGenerator
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateSeed
(int numBytes) void
nextBytes
(byte[] bytes) void
reseed
(byte[] additionalInput) Force a reseed of the DRBGvoid
setSeed
(byte[] seed) void
setSeed
(long seed) Methods inherited from class java.security.SecureRandom
getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, toString
Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, from, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
Method Details
-
setSeed
public void setSeed(byte[] seed) - Overrides:
setSeed
in classSecureRandom
-
setSeed
public void setSeed(long seed) - Overrides:
setSeed
in classSecureRandom
-
getAlgorithm
- Overrides:
getAlgorithm
in classSecureRandom
-
nextBytes
public void nextBytes(byte[] bytes) - Specified by:
nextBytes
in interfaceRandomGenerator
- Overrides:
nextBytes
in classSecureRandom
-
generateSeed
public byte[] generateSeed(int numBytes) - Overrides:
generateSeed
in classSecureRandom
-
reseed
public void reseed(byte[] additionalInput) Force a reseed of the DRBG- Parameters:
additionalInput
- optional additional input
-