org.bouncycastle.crypto.prng
Class SP800SecureRandom
java.lang.Object
|
+--java.util.Random
|
+--java.security.SecureRandom
|
+--org.bouncycastle.crypto.prng.SP800SecureRandom
- All Implemented Interfaces:
- java.io.Serializable
- public class SP800SecureRandom
- extends java.security.SecureRandom
- See Also:
- Serialized Form
Methods inherited from class java.security.SecureRandom |
getInstance, getInstance, getProvider, getSeed, next |
Methods inherited from class java.util.Random |
nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setSeed
public void setSeed(byte[] seed)
- Overrides:
setSeed
in class java.security.SecureRandom
setSeed
public void setSeed(long seed)
- Overrides:
setSeed
in class java.security.SecureRandom
getAlgorithm
public java.lang.String getAlgorithm()
nextBytes
public void nextBytes(byte[] bytes)
- Overrides:
nextBytes
in class java.security.SecureRandom
generateSeed
public byte[] generateSeed(int numBytes)
- Overrides:
generateSeed
in class java.security.SecureRandom
reseed
public void reseed(byte[] additionalInput)
- Force a reseed of the DRBG
- Parameters:
additionalInput
- optional additional input