Package jadex.commons.security.random
Class OpenSslAesCtrRandom
- java.lang.Object
-
- java.util.Random
-
- java.security.SecureRandom
-
- jadex.commons.security.random.OpenSslAesCtrRandom
-
- All Implemented Interfaces:
java.io.Serializable
public class OpenSslAesCtrRandom extends java.security.SecureRandom
Access to OpenSSL AES counter mode random.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenSslAesCtrRandom()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generateSeed(int numbytes)
Generates a seed value from OS source.static boolean
isEnabled()
Checks if the library is in a usable state.void
nextBytes(byte[] bytes)
void
reseedPrng(byte[] carryover)
Reseeds the PRNG.-
Methods inherited from class java.security.SecureRandom
getAlgorithm, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, setSeed, setSeed, toString
-
-
-
-
Method Detail
-
nextBytes
public void nextBytes(byte[] bytes)
- Overrides:
nextBytes
in classjava.security.SecureRandom
-
reseedPrng
public void reseedPrng(byte[] carryover)
Reseeds the PRNG.
-
generateSeed
public byte[] generateSeed(int numbytes)
Generates a seed value from OS source.- Overrides:
generateSeed
in classjava.security.SecureRandom
-
isEnabled
public static final boolean isEnabled()
Checks if the library is in a usable state.
-
-