Class AESDecrypter

java.lang.Object
net.lingala.zip4j.crypto.AESDecrypter
All Implemented Interfaces:
Decrypter

public class AESDecrypter extends Object implements Decrypter
AES Decrypter supports AE-1 and AE-2 decryption for AES-CTR with 128, 192, or 256 Key Strength
  • Field Details

    • aesEngine

      private AESEngine aesEngine
    • mac

      private MacBasedPRF mac
    • nonce

      private int nonce
    • iv

      private byte[] iv
    • counterBlock

      private byte[] counterBlock
  • Constructor Details

  • Method Details

    • init

      private void init(byte[] salt, byte[] passwordVerifier, char[] password, AESExtraDataRecord aesExtraDataRecord, boolean useUtf8ForPassword) throws ZipException
      Throws:
      ZipException
    • decryptData

      public int decryptData(byte[] buff, int start, int len) throws ZipException
      Specified by:
      decryptData in interface Decrypter
      Throws:
      ZipException
    • getCalculatedAuthenticationBytes

      public byte[] getCalculatedAuthenticationBytes(int numberOfBytesPushedBack)