Package net.lingala.zip4j.crypto
Class AESDecrypter
- java.lang.Object
-
- net.lingala.zip4j.crypto.AESDecrypter
-
-
Field Summary
Fields Modifier and Type Field Description private AESEngineaesEngineprivate byte[]counterBlockprivate byte[]ivprivate MacBasedPRFmacprivate intnonce
-
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 intdecryptData(byte[] buff, int start, int len)byte[]getCalculatedAuthenticationBytes(int numberOfBytesPushedBack)private voidinit(byte[] salt, byte[] passwordVerifier, char[] password, AESExtraDataRecord aesExtraDataRecord, boolean useUtf8ForPassword)
-
-
-
Field Detail
-
aesEngine
private AESEngine aesEngine
-
mac
private MacBasedPRF mac
-
nonce
private int nonce
-
iv
private byte[] iv
-
counterBlock
private byte[] counterBlock
-
-
Constructor Detail
-
AESDecrypter
public AESDecrypter(AESExtraDataRecord aesExtraDataRecord, char[] password, byte[] salt, byte[] passwordVerifier, boolean useUtf8ForPassword) throws ZipException
- Throws:
ZipException
-
-
Method Detail
-
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:
decryptDatain interfaceDecrypter- Throws:
ZipException
-
getCalculatedAuthenticationBytes
public byte[] getCalculatedAuthenticationBytes(int numberOfBytesPushedBack)
-
-