Class AESParameters

java.lang.Object
de.hda.fbi.ucs.eucrite.parameters.AESParameters
All Implemented Interfaces:
AlgorithmParameters

public class AESParameters
extends Object
implements AlgorithmParameters
The parameters required for the AES symmetrical encryption scheme. It can be used to encrypt and decrypt data with a single, secret key. Whoever has this key is able to decrypt the encrypted data. Therefore, the key must be stored in a secure way.

AES can be used for example to encrypt data on storage. If you want to encrypt messages, you should use a hybrid scheme (see RSA_KEMParameters or McEliece_KEMParameters), where an asymmetric key is used in addition to encrypt and share the secret key with the receiver of the message.

Author:
Alexander Zeier
  • Constructor Details

    • AESParameters

      public AESParameters​(AESParameters.Keysize keySize, AESParameters.Mode mode, AESParameters.Padding padding)
      Creates a new AESParameters object with the given keySize, mode and padding scheme. AES is an symmetrical encryption scheme.
      Parameters:
      keySize - The size of the AES key. It can be 128, 192 or 256 bit.
      mode - The mode used for encryption.
      padding - The padding scheme used for encryption.
  • Method Details

    • getType

      public AlgorithmParameters.Type getType()
      Description copied from interface: AlgorithmParameters
      Return the type of the cryptographic scheme.
      Specified by:
      getType in interface AlgorithmParameters
      Returns:
      The type of the cryptographic scheme.
    • getMode

      public String getMode()
      Returns the mode.
      Returns:
      The encryption mode.
    • getKeySize

      public int getKeySize()
      Returns the AES key size.
      Returns:
      The size of the AES key.
    • getPadding

      public String getPadding()
      Returns the padding scheme.
      Returns:
      The padding scheme.