| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final BcPGPKeyConverter | |
| private final PGPPrivateKey |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PGPDataDecryptor | createDataDecryptor(boolean
true if the packet to be decrypted has integrity
checking enabled.the identifier of the encAlgorithm, byte[] encryption
algorithm to decrypt with.the bytes of the key for the cipher. key)Implements org. |
| public PGPDataDecryptor | createDataDecryptor(AEADEncDataPacket
AEAD encrypted data packet aeadEncDataPacket, PGPSessionKey decrypted session key sessionKey)Implements org. Constructs a data decryptor for |
| public PGPDataDecryptor | createDataDecryptor(SymmetricEncIntegrityPacket
version 2 symmetrically encrypted integrity-protected data packet using AEAD. seipd, PGPSessionKey decrypted session key sessionKey)Implements org. Constructs a data decryptor for |
| private static BufferedAsymmetricBlockCipher | |
| private byte[] | getSessionData(byte[] enc, AsymmetricKeyParameter privKey, int pLen, int hashAlgorithm, int symmetricKeyAlgorithm, RawAgreement agreement, String algorithmName, boolean includesSesKeyAlg, BcPublicKeyDataDecryptorFactory.
|
| private void | |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| public byte[] | recoverSessionData(int
public key algorithm keyAlgorithm, byte[][] encrypted session key data secKeyData, int version of the PKESK packet pkeskVersion)Implements org. Recover the plain session info by decrypting the encrypted session key. |
| private static byte[] |
| KEY_CONVERTER | back to summary |
|---|---|
| private static final BcPGPKeyConverter KEY_CONVERTER | |
| pgpPrivKey | back to summary |
|---|---|
| private final PGPPrivateKey pgpPrivKey | |
| BcPublicKeyDataDecryptorFactory | back to summary |
|---|---|
| public BcPublicKeyDataDecryptorFactory(PGPPrivateKey pgpPrivKey) | |
| createDataDecryptor | back to summary |
|---|---|
| public PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key) throws PGPException Implements org. Doc from org. Constructs a data decryptor for
| |
| createDataDecryptor | back to summary |
|---|---|
| public PGPDataDecryptor createDataDecryptor(AEADEncDataPacket aeadEncDataPacket, PGPSessionKey sessionKey) throws PGPException Implements org. Doc from org. Constructs a data decryptor for
| |
| createDataDecryptor | back to summary |
|---|---|
| public PGPDataDecryptor createDataDecryptor(SymmetricEncIntegrityPacket seipd, PGPSessionKey sessionKey) throws PGPException Implements org. Doc from org. Constructs a data decryptor for
| |
| getBufferedAsymmetricBlockCipher | back to summary |
|---|---|
| private static BufferedAsymmetricBlockCipher getBufferedAsymmetricBlockCipher(int keyAlgorithm, AsymmetricKeyParameter privKey) throws PGPException | |
| getSessionData | back to summary |
|---|---|
| private byte[] getSessionData(byte[] enc, AsymmetricKeyParameter privKey, int pLen, int hashAlgorithm, int symmetricKeyAlgorithm, RawAgreement agreement, String algorithmName, boolean includesSesKeyAlg, BcPublicKeyDataDecryptorFactory. | |
| processEncodedMpi | back to summary |
|---|---|
| private void processEncodedMpi(BufferedAsymmetricBlockCipher c1, int size, byte[] tmp, byte[] bi) | |
| recoverECDHSessionData | back to summary |
|---|---|
| private byte[] recoverECDHSessionData(byte[][] secKeyData, AsymmetricKeyParameter privKey) throws PGPException, IOException, InvalidCipherTextException | |
| recoverElgamalSessionData | back to summary |
|---|---|
| private byte[] recoverElgamalSessionData(int keyAlgorithm, byte[][] secKeyData, AsymmetricKeyParameter privKey) throws PGPException, InvalidCipherTextException | |
| recoverRSASessionData | back to summary |
|---|---|
| private byte[] recoverRSASessionData(int keyAlgorithm, byte[][] secKeyData, AsymmetricKeyParameter privKey) throws PGPException, InvalidCipherTextException | |
| recoverSessionData | back to summary |
|---|---|
| public byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData, int pkeskVersion) throws PGPException Implements org. Doc from org. Recover the plain session info by decrypting the encrypted session key. This method returns the decrypted session info as-is (without prefixing missing cipher algorithm), so the return value is: [sym-alg]?[session-key][checksum]?
| |
| unwrapSessionData | back to summary |
|---|---|
| private static byte[] unwrapSessionData(byte[] keyEnc, int symmetricKeyAlgorithm, KeyParameter key) throws PGPException, InvalidCipherTextException | |
| Modifier and Type | Method and Description |
|---|---|
| public AsymmetricKeyParameter |
| getPublicKeyParameters | back to summary |
|---|---|
| public AsymmetricKeyParameter getPublicKeyParameters(byte[] pEnc, int pEncOff) | |