Class AESCipher


  • public class AESCipher
    extends java.lang.Object
    Creates an AES Cipher with CBC and padding PKCS5/7.
    Author:
    Paulo Soares
    • Constructor Summary

      Constructors 
      Constructor Description
      AESCipher​(boolean forEncryption, byte[] key, byte[] iv)
      Creates a new instance of AESCipher
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] doFinal()  
      byte[] update​(byte[] inp, int inpOff, int inpLen)  
      • Methods inherited from class java.lang.Object

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

      • AESCipher

        public AESCipher​(boolean forEncryption,
                         byte[] key,
                         byte[] iv)
        Creates a new instance of AESCipher
    • Method Detail

      • update

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

        public byte[] doFinal()