Package net.lingala.zip4j.crypto
Class AESDecrypter
- java.lang.Object
-
- net.lingala.zip4j.crypto.AESDecrypter
-
-
Field Summary
Fields Modifier and Type Field Description private AESEngine
aesEngine
private byte[]
counterBlock
private byte[]
iv
private MacBasedPRF
mac
private int
nonce
-
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)
-
-
-
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:
decryptData
in interfaceDecrypter
- Throws:
ZipException
-
getCalculatedAuthenticationBytes
public byte[] getCalculatedAuthenticationBytes(int numberOfBytesPushedBack)
-
-