Class AESCipher


  • public class AESCipher
    extends java.lang.Object
    Creates an AES Cipher with CBC and padding PKCS5/7.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher bp  
    • 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
    • Field Detail

      • bp

        private org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher bp
    • 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()