Class AESEngine

java.lang.Object
net.lingala.zip4j.crypto.engine.AESEngine

public class AESEngine extends Object
Core Engine for AES Encryption
  • 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

  • Method Details

    • 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)