public class SymmetricEncIntegrityPacket extends InputStreamPacket implements BCPGHeaderObject
Modifier and Type | Field and Description |
---|---|
static int |
VERSION_1
Version 1 SEIPD packet.
|
static int |
VERSION_2
Version 2 SEIPD packet.
|
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 |
---|
SymmetricEncIntegrityPacket()
Deprecated.
use createVersion1Packet()
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
createAAData(int version,
int cipherAlgorithm,
int aeadAlgorithm,
int chunkSize) |
static SymmetricEncIntegrityPacket |
createVersion1Packet() |
static SymmetricEncIntegrityPacket |
createVersion2Packet(int algorithm,
int aeadAlgorithm,
int chunkSize,
byte[] salt) |
void |
encode(BCPGOutputStream bcpgOut) |
byte[] |
getAAData()
Return the AEAD additional authenticated data, which is also used as HKDF info.
|
int |
getAeadAlgorithm()
Return the AEAD algorithm.
|
int |
getChunkSize()
Return the chunksize for the AEAD construction.
|
int |
getCipherAlgorithm()
Return the cipher algorithm.
|
byte[] |
getSalt()
Return the salt used to derive the message key.
|
int |
getType()
Return the header type.
|
int |
getVersion() |
getInputStream
getPacketTag, isCritical
public static final int VERSION_1
SymmetricKeyEncSessionPacket.VERSION_4
or PublicKeyEncSessionPacket.VERSION_3
.public static final int VERSION_2
SymmetricKeyEncSessionPacket.VERSION_6
or PublicKeyEncSessionPacket.VERSION_6
.public SymmetricEncIntegrityPacket()
public static SymmetricEncIntegrityPacket createVersion1Packet()
public static SymmetricEncIntegrityPacket createVersion2Packet(int algorithm, int aeadAlgorithm, int chunkSize, byte[] salt)
public int getVersion()
public int getType()
BCPGHeaderObject
getType
in interface BCPGHeaderObject
public void encode(BCPGOutputStream bcpgOut) throws java.io.IOException
encode
in interface BCPGHeaderObject
java.io.IOException
public int getCipherAlgorithm()
public int getAeadAlgorithm()
public int getChunkSize()
public byte[] getAAData()
public static byte[] createAAData(int version, int cipherAlgorithm, int aeadAlgorithm, int chunkSize)
public byte[] getSalt()