| Modifier and Type | Field and Description |
|---|---|
| private final PGPPublicKey | |
| public static final String | |
| protected boolean | |
| protected boolean | |
| public static final long | WILDCARD
Deprecated
use WILDCARD_KEYID
|
| public static final byte[] | |
| public static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private byte[] | |
| protected byte[] | |
| public byte[][] | |
| protected abstract byte[] | Returns: encrypted session inforecipients public key pubKey, byte[] session-key sessionKey, byte for v3: session key algorithm ID; for v6: 0 symAlgId, boolean isV3)Encrypt a session key using the recipients public key. |
| public ContainedPacket | Returns: PKESKv6 or v3 packetsession-key algorithm id + session-key + checksum sessionKey)Implements org. Generate a Public-Key Encrypted Session-Key (PKESK) packet of version 3. |
| protected static byte[] | |
| private static boolean | |
| public PublicKeyKeyEncryptionMethodGenerator | Returns: the current generator.Controls whether to obfuscate the size of ECDH session keys using extra padding where necessary. |
| public PublicKeyKeyEncryptionMethodGenerator | Returns: thisboolean enabled)
Deprecated
use
setUseWildcardRecipient(boolean) instead
TODO: Remove in a future release
Controls whether the recipient key ID/fingerprint is hidden (replaced by a wildcard value). |
| public PublicKeyKeyEncryptionMethodGenerator | Returns: thisboolean enabled)Controls whether the recipient key ID/fingerprint is hidden (replaced by a wildcard value). |
| pubKey | back to summary |
|---|---|
| private final PGPPublicKey pubKey | |
| SESSION_KEY_OBFUSCATION_PROPERTY | back to summary |
|---|---|
| public static final String SESSION_KEY_OBFUSCATION_PROPERTY | |
| sessionKeyObfuscation | back to summary |
|---|---|
| protected boolean sessionKeyObfuscation | |
| useWildcardRecipient | back to summary |
|---|---|
| protected boolean useWildcardRecipient | |
| WILDCARD | back to summary |
|---|---|
| public static final long WILDCARD
Deprecated use WILDCARD_KEYID | |
| WILDCARD_FINGERPRINT | back to summary |
|---|---|
| public static final byte[] WILDCARD_FINGERPRINT | |
| WILDCARD_KEYID | back to summary |
|---|---|
| public static final long WILDCARD_KEYID | |
| PublicKeyKeyEncryptionMethodGenerator | back to summary |
|---|---|
| protected PublicKeyKeyEncryptionMethodGenerator(PGPPublicKey pubKey) | |
| addCheckSum | back to summary |
|---|---|
| private void addCheckSum(byte[] sessionInfo, int pos) | |
| convertToEncodedMPI | back to summary |
|---|---|
| private byte[] convertToEncodedMPI(byte[] encryptedSessionInfo) throws PGPException | |
| createSessionInfo | back to summary |
|---|---|
| protected byte[] createSessionInfo(byte algorithm, byte[] keyBytes) | |
| encodeEncryptedSessionInfo | back to summary |
|---|---|
| public byte[][] encodeEncryptedSessionInfo(byte[] encryptedSessionInfo) throws PGPException | |
| encryptSessionInfo | back to summary |
|---|---|
| protected abstract byte[] encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionKey, byte symAlgId, boolean isV3) throws PGPException Encrypt a session key using the recipients public key.
| |
| generate | back to summary |
|---|---|
| public ContainedPacket generate(PGPDataEncryptorBuilder dataEncryptorBuilder, byte[] sessionKey) throws PGPException Implements org. Generate a Public-Key Encrypted Session-Key (PKESK) packet of version 3.
PKESKv3 packets are used with Symmetrically-Encrypted-Integrity-Protected Data (SEIPD) packets of
version 1 or with Symmetrically-Encrypted Data (SED) packets and MUST NOT be used with SEIPDv2 packets.
PKESKv3 packets are used with keys that do not support
Generate a Public-Key Encrypted Session-Key (PKESK) packet of version 6.
PKESKv6 packets are used with Symmetrically-Encrypted Integrity-Protected Data (SEIPD) packets
of version 2 only.
PKESKv6 packets are used with keys that support
| |
| getSessionInfo | back to summary |
|---|---|
| protected static byte[] getSessionInfo(byte[] ephPubEncoding, byte optSymKeyAlgorithm, byte[] wrappedSessionKey) | |
| getSessionKeyObfuscationDefault | back to summary |
|---|---|
| private static boolean getSessionKeyObfuscationDefault() | |
| setSessionKeyObfuscation | back to summary |
|---|---|
| public PublicKeyKeyEncryptionMethodGenerator setSessionKeyObfuscation(boolean enabled) Controls whether to obfuscate the size of ECDH session keys using extra padding where necessary. The default behaviour can be configured using the system property "org.bouncycastle.openpgp.session_key_obfuscation", or else it will default to enabled.
| |
| setUseWildcardKeyID | back to summary |
|---|---|
| public PublicKeyKeyEncryptionMethodGenerator setUseWildcardKeyID(boolean enabled)
Deprecated use Controls whether the recipient key ID/fingerprint is hidden (replaced by a wildcard value).
| |
| setUseWildcardRecipient | back to summary |
|---|---|
| public PublicKeyKeyEncryptionMethodGenerator setUseWildcardRecipient(boolean enabled) Controls whether the recipient key ID/fingerprint is hidden (replaced by a wildcard value).
| |