Class FipsAES.KeyGenerator

    • Constructor Summary

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

      • KeyGenerator

        public KeyGenerator​(int keySizeInBits,
                            java.security.SecureRandom random)
        Constructor to generate a general purpose AES 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 AES 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 SymmetricSecretKey generateKey()
        Generate a key,
        Returns:
        an AES key.