Package jadex.ipc.impl.security.random
Class OpenSslAesCtrRandom
java.lang.Object
java.util.Random
java.security.SecureRandom
jadex.ipc.impl.security.random.OpenSslAesCtrRandom
- All Implemented Interfaces:
Serializable
,RandomGenerator
Access to OpenSSL AES counter mode random.
- 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateSeed
(int numbytes) Generates a seed value from OS source.static final boolean
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
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
-
Constructor Details
-
OpenSslAesCtrRandom
public OpenSslAesCtrRandom()
-
-
Method Details
-
nextBytes
public void nextBytes(byte[] bytes) - Specified by:
nextBytes
in interfaceRandomGenerator
- Overrides:
nextBytes
in classSecureRandom
-
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 classSecureRandom
-
isEnabled
public static final boolean isEnabled()Checks if the library is in a usable state.
-