| Modifier and Type | Field and Description |
|---|---|
| private PGPDigestCalculatorProvider | |
| private char[] |
| Access | Constructor and Description |
|---|---|
| protected | PBEDataDecryptorFactory(char[]
the pass phrase to generate decryption keys with. passPhrase, PGPDigestCalculatorProvider the digest to use in key generation. calculatorProvider)Construct a PBE data decryptor factory. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the key bytes for the encryption algorithm, generated using the pass phrase of this factory.the keyAlgorithm, S2K encryption algorithm to generate a
key for.the string-to-key specification to use to generate the key. s2k)Generates an encryption key using the pass phrase and digest calculator configured for this factory. |
| public abstract byte[] | Returns: the decrypted session data.the 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. seckKeyData)Decrypts session data from an encrypted data packet. |
| calculatorProvider | back to summary |
|---|---|
| private PGPDigestCalculatorProvider calculatorProvider | |
| passPhrase | back to summary |
|---|---|
| private char[] passPhrase | |
| PBEDataDecryptorFactory | back to summary |
|---|---|
| protected PBEDataDecryptorFactory(char[] passPhrase, PGPDigestCalculatorProvider calculatorProvider) Construct a PBE data decryptor factory.
| |
| makeKeyFromPassPhrase | back to summary |
|---|---|
| public byte[] makeKeyFromPassPhrase(int keyAlgorithm, S2K s2k) throws PGPException Generates an encryption key using the pass phrase and digest calculator configured for this factory.
| |
| recoverSessionData | back to summary |
|---|---|
| public abstract byte[] recoverSessionData(int keyAlgorithm, byte[] key, byte[] seckKeyData) throws PGPException Decrypts session data from an encrypted data packet.
| |