Class AEADEncDataPacket

All Implemented Interfaces:
AEADAlgorithmTags, BCPGHeaderObject, PacketTags

public class AEADEncDataPacket extends InputStreamPacket implements AEADAlgorithmTags, BCPGHeaderObject
Packet representing non-standard, LibrePGP OCB (AEAD) encrypted data. At the moment this appears to exist in the following expired draft only, but it's appearing despite this. For standardized, interoperable OpenPGP AEAD encrypted data, see SymmetricEncIntegrityPacket of version SymmetricEncIntegrityPacket.VERSION_2.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getVersion

      public byte getVersion()
    • getAlgorithm

      public byte getAlgorithm()
      Return the algorithm-id of the symmetric encryption algorithm used to encrypt the data.
      Returns:
      symmetric encryption algorithm
    • 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()