Package net.lingala.zip4j.crypto.engine
Class ZipCryptoEngine
java.lang.Object
net.lingala.zip4j.crypto.engine.ZipCryptoEngine
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
crc32
(int oldCrc, byte charAt) byte
void
initKeys
(char[] password, boolean useUtf8ForPassword) void
updateKeys
(byte charAt)
-
Field Details
-
keys
private final int[] keys -
CRC_TABLE
private static final int[] CRC_TABLE
-
-
Constructor Details
-
ZipCryptoEngine
public ZipCryptoEngine()
-
-
Method Details
-
initKeys
public void initKeys(char[] password, boolean useUtf8ForPassword) -
updateKeys
public void updateKeys(byte charAt) -
crc32
private int crc32(int oldCrc, byte charAt) -
decryptByte
public byte decryptByte()
-