PBEDataDecryptorFactory for handling PBE decryption operations using the Bouncy Castle
lightweight API to implement cryptographic primitives.
| Access | Constructor and Description |
|---|---|
| public | BcPBEDataDecryptorFactory(char[]
the passphrase to use as the primary source of key material. pass, PGPDigestCalculatorProvider a digest calculator provider to provide calculators to support the key generation calculation required. calculatorProvider)Base constructor. |
| 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 |
| public byte[] | recoverAEADEncryptedSessionData(SymmetricKeyEncSessionPacket
v5 or v6 SKESK packet keyData, byte[] initial keying material (e.g. S2K result) ikm)Implements abstract org. |
| public byte[] | Returns: session keythe keyAlgorithm, byte[] encryption algorithm used to
encrypt the session data.the key bytes for the encryption algorithm. key, byte[] the encrypted session data to decrypt. secKeyData)Implements abstract org. Recover the session key from a version 4 SKESK packet used in OpenPGP v4. |
| BcPBEDataDecryptorFactory | back to summary |
|---|---|
| public BcPBEDataDecryptorFactory(char[] pass, PGPDigestCalculatorProvider calculatorProvider) Base constructor.
| |
| 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
| |
| recoverAEADEncryptedSessionData | back to summary |
|---|---|
| public byte[] recoverAEADEncryptedSessionData(SymmetricKeyEncSessionPacket keyData, byte[] ikm) throws PGPException Implements abstract org. Doc from org. Recover the session data of a
| |
| recoverSessionData | back to summary |
|---|---|
| public byte[] recoverSessionData(int keyAlgorithm, byte[] key, byte[] secKeyData) throws PGPException Implements abstract org. Recover the session key from a version 4 SKESK packet used in OpenPGP v4.
| |