Package org.bouncycastle.bcpg
Class AEADEncDataPacket
- java.lang.Object
-
- org.bouncycastle.bcpg.Packet
-
- org.bouncycastle.bcpg.InputStreamPacket
-
- org.bouncycastle.bcpg.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 Summary
-
Fields inherited from interface org.bouncycastle.bcpg.AEADAlgorithmTags
EAX, GCM, OCB
-
Fields inherited from interface org.bouncycastle.bcpg.PacketTags
AEAD_ENC_DATA, COMPRESSED_DATA, EXPERIMENTAL_1, EXPERIMENTAL_2, EXPERIMENTAL_3, EXPERIMENTAL_4, LITERAL_DATA, MARKER, MOD_DETECTION_CODE, ONE_PASS_SIGNATURE, PADDING, PUBLIC_KEY, PUBLIC_KEY_ENC_SESSION, PUBLIC_SUBKEY, RESERVED, SECRET_KEY, SECRET_SUBKEY, SIGNATURE, SYM_ENC_INTEGRITY_PRO, SYMMETRIC_KEY_ENC, SYMMETRIC_KEY_ENC_SESSION, TRUST, USER_ATTRIBUTE, USER_ID
-
-
Constructor Summary
Constructors Constructor Description AEADEncDataPacket(int algorithm, int aeadAlgorithm, int chunkSize, byte[] iv)AEADEncDataPacket(BCPGInputStream in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidencode(BCPGOutputStream pgOut)byte[]getAAData()bytegetAEADAlgorithm()bytegetAlgorithm()intgetChunkSize()byte[]getIV()static intgetIVLength(byte aeadAlgorithm)Deprecated.use AEADUtils.getIVLength()intgetType()Return the header type.bytegetVersion()-
Methods inherited from class org.bouncycastle.bcpg.InputStreamPacket
getInputStream
-
-
-
-
Constructor Detail
-
AEADEncDataPacket
public AEADEncDataPacket(BCPGInputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
AEADEncDataPacket
public AEADEncDataPacket(int algorithm, int aeadAlgorithm, int chunkSize, byte[] iv)
-
-
Method Detail
-
getVersion
public byte getVersion()
-
getAlgorithm
public byte getAlgorithm()
-
getAEADAlgorithm
public byte getAEADAlgorithm()
-
getChunkSize
public int getChunkSize()
-
getIV
public byte[] getIV()
-
getAAData
public byte[] getAAData()
-
getType
public int getType()
Description copied from interface:BCPGHeaderObjectReturn the header type.- Specified by:
getTypein interfaceBCPGHeaderObject- Returns:
- header type code
-
encode
public void encode(BCPGOutputStream pgOut) throws java.io.IOException
- Specified by:
encodein interfaceBCPGHeaderObject- Throws:
java.io.IOException
-
getIVLength
public static int getIVLength(byte aeadAlgorithm)
Deprecated.use AEADUtils.getIVLength()
-
-