public class AEADEncDataPacket extends InputStreamPacket implements AEADAlgorithmTags, BCPGHeaderObject
Modifier and Type | Field and Description |
---|---|
static int |
VERSION_1 |
EAX, GCM, OCB
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 and Description |
---|
AEADEncDataPacket(BCPGInputStream in) |
AEADEncDataPacket(int algorithm,
int aeadAlgorithm,
int chunkSize,
byte[] iv) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
createAAData(int version,
int symAlgorithm,
int aeadAlgorithm,
int chunkSize) |
void |
encode(BCPGOutputStream pgOut) |
byte[] |
getAAData() |
byte |
getAEADAlgorithm() |
byte |
getAlgorithm() |
int |
getChunkSize() |
byte[] |
getIV() |
static int |
getIVLength(byte aeadAlgorithm)
Deprecated.
use AEADUtils.getIVLength()
|
int |
getType()
Return the header type.
|
byte |
getVersion() |
getInputStream
getPacketTag, isCritical
public static final int VERSION_1
public AEADEncDataPacket(BCPGInputStream in) throws java.io.IOException
java.io.IOException
public AEADEncDataPacket(int algorithm, int aeadAlgorithm, int chunkSize, byte[] iv)
public byte getVersion()
public byte getAlgorithm()
public byte getAEADAlgorithm()
public int getChunkSize()
public byte[] getIV()
public byte[] getAAData()
public static byte[] createAAData(int version, int symAlgorithm, int aeadAlgorithm, int chunkSize)
public int getType()
BCPGHeaderObject
getType
in interface BCPGHeaderObject
public void encode(BCPGOutputStream pgOut) throws java.io.IOException
encode
in interface BCPGHeaderObject
java.io.IOException
public static int getIVLength(byte aeadAlgorithm)