Class AEADEncDataPacket

All Implemented Interfaces:
AEADAlgorithmTags, BCPGHeaderObject, PacketTags

public class AEADEncDataPacket extends InputStreamPacket implements AEADAlgorithmTags, BCPGHeaderObject
Packet representing AEAD encrypted data. At the moment this appears to exist in the following expired draft only, but it's appearing despite this.
  • Field Details

  • Constructor Details

    • AEADEncDataPacket

      public AEADEncDataPacket(BCPGInputStream in) throws IOException
      Throws:
      IOException
    • AEADEncDataPacket

      public AEADEncDataPacket(int algorithm, int aeadAlgorithm, int chunkSize, byte[] iv)
  • Method Details

    • getVersion

      public byte getVersion()
    • getAlgorithm

      public byte getAlgorithm()
    • getAEADAlgorithm

      public byte getAEADAlgorithm()
    • getChunkSize

      public int getChunkSize()
    • getIV

      public byte[] getIV()
    • getAAData

      public byte[] getAAData()
    • createAAData

      public static byte[] createAAData(int version, int symAlgorithm, int aeadAlgorithm, int chunkSize)
    • getType

      public int getType()
      Description copied from interface: BCPGHeaderObject
      Return the header type.
      Specified by:
      getType in interface BCPGHeaderObject
      Returns:
      header type code
    • encode

      public void encode(BCPGOutputStream pgOut) throws IOException
      Specified by:
      encode in interface BCPGHeaderObject
      Throws:
      IOException
    • getIVLength

      public static int getIVLength(byte aeadAlgorithm)
      Deprecated.
      use AEADUtils.getIVLength()