Class 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
    • 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
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, 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
    • Constructor Detail

      • OpenSslAesCtrRandom

        public OpenSslAesCtrRandom()
    • Method Detail

      • nextBytes

        public void nextBytes​(byte[] bytes)
        Overrides:
        nextBytes in class java.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 class java.security.SecureRandom
      • isEnabled

        public static final boolean isEnabled()
        Checks if the library is in a usable state.