Class AESDecrypter
java.lang.Object
net.lingala.zip4j.crypto.AESDecrypter
- All Implemented Interfaces:
Decrypter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AESEngineprivate byte[]private byte[]private MacBasedPRFprivate int -
Constructor Summary
ConstructorsConstructorDescriptionAESDecrypter(AESExtraDataRecord aesExtraDataRecord, char[] password, byte[] salt, byte[] passwordVerifier, boolean useUtf8ForPassword) -
Method Summary
Modifier and TypeMethodDescriptionintdecryptData(byte[] buff, int start, int len) byte[]getCalculatedAuthenticationBytes(int numberOfBytesPushedBack) private voidinit(byte[] salt, byte[] passwordVerifier, char[] password, AESExtraDataRecord aesExtraDataRecord, boolean useUtf8ForPassword)
-
Field Details
-
aesEngine
-
mac
-
nonce
private int nonce -
iv
private byte[] iv -
counterBlock
private byte[] counterBlock
-
-
Constructor Details
-
AESDecrypter
public AESDecrypter(AESExtraDataRecord aesExtraDataRecord, char[] password, byte[] salt, byte[] passwordVerifier, boolean useUtf8ForPassword) throws ZipException - Throws:
ZipException
-
-
Method Details
-
init
private void init(byte[] salt, byte[] passwordVerifier, char[] password, AESExtraDataRecord aesExtraDataRecord, boolean useUtf8ForPassword) throws ZipException - Throws:
ZipException
-
decryptData
- Specified by:
decryptDatain interfaceDecrypter- Throws:
ZipException
-
getCalculatedAuthenticationBytes
public byte[] getCalculatedAuthenticationBytes(int numberOfBytesPushedBack)
-