Package net.lingala.zip4j.crypto.engine
Class AESEngine
- java.lang.Object
-
- net.lingala.zip4j.crypto.engine.AESEngine
-
public class AESEngine extends java.lang.Object
Core Engine for AES Encryption
-
-
Constructor Summary
Constructors Constructor Description AESEngine(byte[] key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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)
-
-
-
Constructor Detail
-
AESEngine
public AESEngine(byte[] key) throws ZipException
- Throws:
ZipException
-
-
Method Detail
-
init
private void init(byte[] key) throws ZipException
- Throws:
ZipException
-
generateWorkingKey
private int[][] generateWorkingKey(byte[] key) throws ZipException
- Throws:
ZipException
-
processBlock
public int processBlock(byte[] in, byte[] out) throws ZipException
- Throws:
ZipException
-
processBlock
public int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws ZipException
- 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)
-
-