Package net.lingala.zip4j.crypto
Class AESEncrpyter
- java.lang.Object
-
- net.lingala.zip4j.crypto.AESEncrpyter
-
- All Implemented Interfaces:
IEncrypter
public class AESEncrpyter extends Object implements IEncrypter
-
-
Constructor Summary
Constructors Constructor Description AESEncrpyter(char[] password, int keyStrength)
-
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()intgetPasswordVeriifierLength()byte[]getSaltBytes()intgetSaltLength()voidsetDerivedPasswordVerifier(byte[] derivedPasswordVerifier)voidsetSaltBytes(byte[] saltBytes)
-
-
-
Constructor Detail
-
AESEncrpyter
public AESEncrpyter(char[] password, int keyStrength) throws ZipException- Throws:
ZipException
-
-
Method Detail
-
encryptData
public int encryptData(byte[] buff) throws ZipException- Specified by:
encryptDatain interfaceIEncrypter- Throws:
ZipException
-
encryptData
public int encryptData(byte[] buff, int start, int len) throws ZipException- Specified by:
encryptDatain interfaceIEncrypter- Throws:
ZipException
-
getFinalMac
public byte[] getFinalMac()
-
getDerivedPasswordVerifier
public byte[] getDerivedPasswordVerifier()
-
setDerivedPasswordVerifier
public void setDerivedPasswordVerifier(byte[] derivedPasswordVerifier)
-
getSaltBytes
public byte[] getSaltBytes()
-
setSaltBytes
public void setSaltBytes(byte[] saltBytes)
-
getSaltLength
public int getSaltLength()
-
getPasswordVeriifierLength
public int getPasswordVeriifierLength()
-
-