| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private byte[] | |
| private int | |
| private byte[] | |
| private S2K | |
| private byte[] | |
| private byte[] | |
| private int | |
| public static final int | VERSION_4
Version 4 SKESK packet. |
| public static final int | VERSION_5
Version 5 SKESK packet. |
| public static final int | VERSION_6
Version 6 SKESK packet. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | SymmetricKeyEncSessionPacket(int
symmetric encryption algorithm encAlgorithm, S2K s2k s2k, byte[] encrypted session key secKeyData)
Deprecated
use createVersion4Packet()
Create a v4 SKESK packet. |
| private | SymmetricKeyEncSessionPacket(int version, int
symmetric encryption algorithm encAlgorithm, int aead algorithm aeadAlgorithm, byte[] initialization vector iv, S2K s2k specifier s2k, byte[] encrypted session key secKeyData, byte[] authentication tag authTag)Create a v5 or v6 SKESK packet. |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static SymmetricKeyEncSessionPacket | createV4Packet(int
symmetric encryption algorithm encAlgorithm, S2K s2k specifier s2k, byte[] encrypted session key secKeyData)Create a v4 SKESK packet. |
| public static SymmetricKeyEncSessionPacket | createV5Packet(int
symmetric encryption algorithm encAlgorithm, int aead algorithm aeadAlgorithm, byte[] initialization vector iv, S2K s2k specifier s2k, byte[] encrypted session key secKeyData, byte[] authentication tag authTag)Create a v5 SKESK packet. |
| public static SymmetricKeyEncSessionPacket | createV6Packet(int
symmetric encryption algorithm encAlgorithm, int aead algorithm aeadAlgorithm, byte[] initialization vector iv, S2K s2k specifier s2k, byte[] encrypted session key secKeyData, byte[] authentication tag authTag)Create a v6 SKESK packet. |
| public void | |
| public byte[] | |
| public int | |
| public byte[] | |
| public int | |
| public byte[] | |
| public S2K | |
| public byte[] | |
| public int |
| aeadAlgorithm | back to summary |
|---|---|
| private int aeadAlgorithm | |
| authTag | back to summary |
|---|---|
| private byte[] authTag | |
| encAlgorithm | back to summary |
|---|---|
| private int encAlgorithm | |
| iv | back to summary |
|---|---|
| private byte[] iv | |
| s2k | back to summary |
|---|---|
| private S2K s2k | |
| s2kBytes | back to summary |
|---|---|
| private byte[] s2kBytes | |
| secKeyData | back to summary |
|---|---|
| private byte[] secKeyData | |
| version | back to summary |
|---|---|
| private int version | |
| VERSION_4 | back to summary |
|---|---|
| public static final int VERSION_4 Version 4 SKESK packet.
Used only with | |
| VERSION_5 | back to summary |
|---|---|
| public static final int VERSION_5 Version 5 SKESK packet.
LibrePGP only.
Used only with | |
| VERSION_6 | back to summary |
|---|---|
| public static final int VERSION_6 Version 6 SKESK packet.
Used only with | |
| SymmetricKeyEncSessionPacket | back to summary |
|---|---|
| public SymmetricKeyEncSessionPacket(BCPGInputStream in) throws IOException | |
| SymmetricKeyEncSessionPacket | back to summary |
|---|---|
| public SymmetricKeyEncSessionPacket(BCPGInputStream in, boolean newPacketFormat) throws IOException | |
| SymmetricKeyEncSessionPacket | back to summary |
|---|---|
| public SymmetricKeyEncSessionPacket(int encAlgorithm, S2K s2k, byte[] secKeyData)
Deprecated use createVersion4Packet() Create a v4 SKESK packet.
| |
| SymmetricKeyEncSessionPacket | back to summary |
|---|---|
| private SymmetricKeyEncSessionPacket(int version, int encAlgorithm, int aeadAlgorithm, byte[] iv, S2K s2k, byte[] secKeyData, byte[] authTag) Create a v5 or v6 SKESK packet.
| |
| createAAData | back to summary |
|---|---|
| public static byte[] createAAData(int version, int encAlgorithm, int aeadAlgorithm) | |
| createV4Packet | back to summary |
|---|---|
| public static SymmetricKeyEncSessionPacket createV4Packet(int encAlgorithm, S2K s2k, byte[] secKeyData) Create a v4 SKESK packet.
| |
| createV5Packet | back to summary |
|---|---|
| public static SymmetricKeyEncSessionPacket createV5Packet(int encAlgorithm, int aeadAlgorithm, byte[] iv, S2K s2k, byte[] secKeyData, byte[] authTag) Create a v5 SKESK packet.
| |
| createV6Packet | back to summary |
|---|---|
| public static SymmetricKeyEncSessionPacket createV6Packet(int encAlgorithm, int aeadAlgorithm, byte[] iv, S2K s2k, byte[] secKeyData, byte[] authTag) Create a v6 SKESK packet.
| |
| encode | back to summary |
|---|---|
| public void encode(BCPGOutputStream out) throws IOException Implements abstract org. | |
| getAAData | back to summary |
|---|---|
| public byte[] getAAData() | |
| getAeadAlgorithm | back to summary |
|---|---|
| public int getAeadAlgorithm() Return the AEAD algorithm tag. V5 packet only.
| |
| getAuthTag | back to summary |
|---|---|
| public byte[] getAuthTag() Return the authentication tag for the AEAD mode. V5 packet only.
| |
| getEncAlgorithm | back to summary |
|---|---|
public int getEncAlgorithm()
| |
| getIv | back to summary |
|---|---|
| public byte[] getIv() Return the IV for the AEAD mode. This is also called nonce. V5 packet only.
| |
| getS2K | back to summary |
|---|---|
public S2K getS2K()
| |
| getSecKeyData | back to summary |
|---|---|
public byte[] getSecKeyData()
| |
| getVersion | back to summary |
|---|---|
public int getVersion()
| |