Class FipsTripleDES.KeyGenerator

    • Constructor Summary

      Constructors 
      Constructor Description
      KeyGenerator​(int keySizeInBits, java.security.SecureRandom random)
      Constructor to generate a general purpose Triple-DES key.
      KeyGenerator​(FipsParameters parameterSet, int keySizeInBits, java.security.SecureRandom random)
      Constructor to generate a specific purpose Triple-DES key for an algorithm in a particular parameter set.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SymmetricKey generateKey()
      Return a newly generated symmetric key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyGenerator

        public KeyGenerator​(int keySizeInBits,
                            java.security.SecureRandom random)
        Constructor to generate a general purpose Triple-DES key.
        Parameters:
        keySizeInBits - size of the key in bits.
        random - secure random to use in key construction.
      • KeyGenerator

        public KeyGenerator​(FipsParameters parameterSet,
                            int keySizeInBits,
                            java.security.SecureRandom random)
        Constructor to generate a specific purpose Triple-DES key for an algorithm in a particular parameter set.
        Parameters:
        parameterSet - FIPS algorithm key is for,
        keySizeInBits - size of the key in bits.
        random - secure random to use in key construction.
    • Method Detail

      • generateKey

        public SymmetricKey generateKey()
        Description copied from interface: SymmetricKeyGenerator
        Return a newly generated symmetric key.
        Returns:
        a new symmetric key.