Class AESDecrypter

  • All Implemented Interfaces:
    Decrypter

    public class AESDecrypter
    extends java.lang.Object
    implements Decrypter
    AES Decrypter supports AE-1 and AE-2 decryption for AES-CTR with 128, 192, or 256 Key Strength
    • Constructor Summary

      Constructors 
      Constructor Description
      AESDecrypter​(AESExtraDataRecord aesExtraDataRecord, char[] password, byte[] salt, byte[] passwordVerifier, boolean useUtf8ForPassword)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int decryptData​(byte[] buff, int start, int len)  
      byte[] getCalculatedAuthenticationBytes​(int numberOfBytesPushedBack)  
      private void init​(byte[] salt, byte[] passwordVerifier, char[] password, AESExtraDataRecord aesExtraDataRecord, boolean useUtf8ForPassword)  
      • Methods inherited from class java.lang.Object

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

      • nonce

        private int nonce
      • iv

        private byte[] iv
      • counterBlock

        private byte[] counterBlock
    • Constructor Detail

    • Method Detail

      • getCalculatedAuthenticationBytes

        public byte[] getCalculatedAuthenticationBytes​(int numberOfBytesPushedBack)