|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.bcpg.Packet
org.bouncycastle.bcpg.InputStreamPacket
org.bouncycastle.bcpg.SymmetricEncIntegrityPacket
A symmetric key encrypted packet with an associated integrity check code.
Field Summary | |
static int |
VERSION_1
Version 1 SEIPD packet. |
static int |
VERSION_2
Version 2 SEIPD packet. |
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 | |
SymmetricEncIntegrityPacket()
Deprecated. use createVersion1Packet() |
Method Summary | |
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()
|
Methods inherited from class org.bouncycastle.bcpg.InputStreamPacket |
getInputStream |
Methods inherited from class org.bouncycastle.bcpg.Packet |
getPacketTag, hasNewPacketFormat, isCritical |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
.
Constructor Detail |
public SymmetricEncIntegrityPacket()
Method Detail |
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()
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |