Class AesDecryptor

  • All Implemented Interfaces:
    IDecryptor

    public class AesDecryptor
    extends java.lang.Object
    implements IDecryptor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private AESCipher cipher  
      private boolean initiated  
      private byte[] iv  
      private int ivptr  
      private byte[] key  
    • Constructor Summary

      Constructors 
      Constructor Description
      AesDecryptor​(byte[] key, int off, int len)
      Creates a new instance of AesDecryptor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] finish()  
      byte[] update​(byte[] b, int off, int len)  
      • Methods inherited from class java.lang.Object

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

      • key

        private byte[] key
      • initiated

        private boolean initiated
      • iv

        private byte[] iv
      • ivptr

        private int ivptr
    • Constructor Detail

      • AesDecryptor

        public AesDecryptor​(byte[] key,
                            int off,
                            int len)
        Creates a new instance of AesDecryptor
        Parameters:
        key - the byte array containing the key for decryption
        off - offset of the key in the byte array
        len - the length of the key in the byte array
    • Method Detail

      • update

        public byte[] update​(byte[] b,
                             int off,
                             int len)
        Specified by:
        update in interface IDecryptor
      • finish

        public byte[] finish()
        Specified by:
        finish in interface IDecryptor