Class AESNativeGCMSIVPacketCipher

java.lang.Object
org.bouncycastle.crypto.engines.AESNativeGCMSIVPacketCipher
All Implemented Interfaces:
AESGCMSIVModePacketCipher, PacketCipher

public class AESNativeGCMSIVPacketCipher extends Object implements AESGCMSIVModePacketCipher
  • Constructor Details

    • AESNativeGCMSIVPacketCipher

      public AESNativeGCMSIVPacketCipher()
  • Method Details

    • newInstance

      public static AESGCMSIVModePacketCipher newInstance()
    • getOutputSize

      public int getOutputSize(boolean encryption, CipherParameters params, 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
      params - The cipher parameters
      len - the input length.
      Returns:
      the required minimum output length in bytes.
    • processPacket

      public int processPacket(boolean encryption, CipherParameters params, 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
      params - 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