Class AESCipher


  • public class AESCipher
    extends Object
    Creates an AES Cipher with CBC and padding PKCS5/7.
    Author:
    Paulo Soares (psoares@consiste.pt)
    • Constructor Detail

      • AESCipher

        public AESCipher​(boolean forEncryption,
                         byte[] key,
                         byte[] iv)
        Creates a new instance of AESCipher
        Parameters:
        forEncryption - If it is for encryption
        iv - An initialization vector
        key - Bytes for key
    • Method Detail

      • update

        public byte[] update​(byte[] inp,
                             int inpOff,
                             int inpLen)
      • doFinal

        public byte[] doFinal()