Class AESNativeCBCPacketCipher

java.lang.Object
org.bouncycastle.crypto.engines.AESNativeCBCPacketCipher
All Implemented Interfaces:
AESCBCModePacketCipher, PacketCipher

public class AESNativeCBCPacketCipher extends Object implements PacketCipher, AESCBCModePacketCipher
  • Constructor Details

    • AESNativeCBCPacketCipher

      public AESNativeCBCPacketCipher()
  • Method Details

    • getOutputSize

      public int getOutputSize(boolean encryption, CipherParameters parameters, int len)
      Description copied from interface: PacketCipher
      Returns the expected output size for direction and parameters.
      Specified by:
      getOutputSize in interface PacketCipher
      Parameters:
      encryption - encryption if true
      parameters - The cipher parameters
      len - the input length.
      Returns:
      the required minimum output length in bytes.
    • processPacket

      public int processPacket(boolean encryption, CipherParameters parameters, byte[] input, int inOff, int len, byte[] output, int outOff) throws PacketCipherException
      Description copied from interface: PacketCipher
      Process a packet.
      Specified by:
      processPacket in interface PacketCipher
      Parameters:
      encryption - encryption if true
      parameters - The key parameters
      input - The input byte array
      inOff - Offset within byte array to start reading input.
      len - the number of bytes of input to process.
      output - The output array
      outOff - the offset within the output array to start writing output.
      Returns:
      Throws:
      PacketCipherException - if the transformation encounters an error.
    • toString

      public String toString()
      Overrides:
      toString in class Object