Package 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]generateSeed(int numBytes)java.lang.StringgetAlgorithm()voidnextBytes(byte[] bytes)voidreseed(byte[] additionalInput)Force a reseed of the DRBGvoidsetSeed(byte[] seed)voidsetSeed(long seed)-
Methods inherited from class java.security.SecureRandom
getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, toString
-
-
-
-
Method Detail
-
setSeed
public void setSeed(byte[] seed)
- Overrides:
setSeedin classjava.security.SecureRandom
-
setSeed
public void setSeed(long seed)
- Overrides:
setSeedin classjava.security.SecureRandom
-
getAlgorithm
public java.lang.String getAlgorithm()
- Overrides:
getAlgorithmin classjava.security.SecureRandom
-
nextBytes
public void nextBytes(byte[] bytes)
- Overrides:
nextBytesin classjava.security.SecureRandom
-
generateSeed
public byte[] generateSeed(int numBytes)
- Overrides:
generateSeedin classjava.security.SecureRandom
-
reseed
public void reseed(byte[] additionalInput)
Force a reseed of the DRBG- Parameters:
additionalInput- optional additional input
-
-