Package net.lingala.zip4j.crypto
Class AESEncrypter
- java.lang.Object
-
- net.lingala.zip4j.crypto.AESEncrypter
-
-
Constructor Summary
Constructors Constructor Description AESEncrypter(char[] password, AesKeyStrength aesKeyStrength, boolean useUtf8ForPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intencryptData(byte[] buff)intencryptData(byte[] buff, int start, int len)byte[]getDerivedPasswordVerifier()byte[]getFinalMac()byte[]getSaltBytes()
-
-
-
Constructor Detail
-
AESEncrypter
public AESEncrypter(char[] password, AesKeyStrength aesKeyStrength, boolean useUtf8ForPassword) throws ZipException- Throws:
ZipException
-
-
Method Detail
-
encryptData
public int encryptData(byte[] buff) throws ZipException- Specified by:
encryptDatain interfaceEncrypter- Throws:
ZipException
-
encryptData
public int encryptData(byte[] buff, int start, int len) throws ZipException- Specified by:
encryptDatain interfaceEncrypter- Throws:
ZipException
-
getFinalMac
public byte[] getFinalMac()
-
getDerivedPasswordVerifier
public byte[] getDerivedPasswordVerifier()
-
getSaltBytes
public byte[] getSaltBytes()
-
-