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 booleanChecks if the library is in a usable state.voidnextBytes(byte[] bytes) voidreseedPrng(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, toStringMethods inherited from class java.util.Random
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLongMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
nextBytesin interfaceRandomGenerator- Overrides:
nextBytesin classSecureRandom
-
reseedPrng
public void reseedPrng(byte[] carryover) Reseeds the PRNG. -
generateSeed
public byte[] generateSeed(int numbytes) Generates a seed value from OS source.- Overrides:
generateSeedin classSecureRandom
-
isEnabled
public static final boolean isEnabled()Checks if the library is in a usable state.
-