Package net.lingala.zip4j.crypto.engine
Class AESEngine
java.lang.Object
net.lingala.zip4j.crypto.engine.AESEngine
Core Engine for AES Encryption
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
encryptBlock
(int[][] KW) private int[][]
generateWorkingKey
(byte[] key) private void
init
(byte[] key) int
processBlock
(byte[] in, byte[] out) int
processBlock
(byte[] in, int inOff, byte[] out, int outOff) private int
shift
(int r, int shift) private void
stateIn
(byte[] bytes, int off) private void
stateOut
(byte[] bytes, int off) private int
subWord
(int x)
-
Field Details
-
rounds
private int rounds -
workingKey
private int[][] workingKey -
C0
private int C0 -
C1
private int C1 -
C2
private int C2 -
C3
private int C3 -
S
private static final byte[] S -
rcon
private static final int[] rcon -
T0
private static final int[] T0
-
-
Constructor Details
-
AESEngine
- Throws:
ZipException
-
-
Method Details
-
init
- Throws:
ZipException
-
generateWorkingKey
- Throws:
ZipException
-
processBlock
- Throws:
ZipException
-
processBlock
- Throws:
ZipException
-
stateIn
private void stateIn(byte[] bytes, int off) -
stateOut
private void stateOut(byte[] bytes, int off) -
encryptBlock
private void encryptBlock(int[][] KW) -
shift
private int shift(int r, int shift) -
subWord
private int subWord(int x)
-