public abstract class PBEDataDecryptorFactory extends java.lang.Object implements PGPDataDecryptorFactory
Modifier | Constructor and Description |
---|---|
protected |
PBEDataDecryptorFactory(char[] passPhrase,
PGPDigestCalculatorProvider calculatorProvider)
Construct a PBE data decryptor factory.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
makeKeyFromPassPhrase(int keyAlgorithm,
S2K s2k)
Generates an encryption key using the pass phrase and digest calculator configured for this
factory.
|
abstract byte[] |
recoverAEADEncryptedSessionData(SymmetricKeyEncSessionPacket keyData,
byte[] ikm)
|
abstract byte[] |
recoverSessionData(int keyAlgorithm,
byte[] key,
byte[] seckKeyData)
Decrypts session data from a
v4 SKESK packet. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDataDecryptor, createDataDecryptor, createDataDecryptor
protected PBEDataDecryptorFactory(char[] passPhrase, PGPDigestCalculatorProvider calculatorProvider)
passPhrase
- the pass phrase to generate decryption keys with.calculatorProvider
- the digest to use in key generation.public byte[] makeKeyFromPassPhrase(int keyAlgorithm, S2K s2k) throws PGPException
keyAlgorithm
- the encryption algorithm
to generate a
key for.s2k
- the string-to-key specification to use to generate the key.PGPException
- if an error occurs generating the key.public abstract byte[] recoverSessionData(int keyAlgorithm, byte[] key, byte[] seckKeyData) throws PGPException
v4 SKESK
packet.
These are used in OpenPGP v4.keyAlgorithm
- the encryption algorithm
used to
encrypt the session data.key
- the key bytes for the encryption algorithm.seckKeyData
- the encrypted session data to decrypt.PGPException
- if an error occurs decrypting the session data.public abstract byte[] recoverAEADEncryptedSessionData(SymmetricKeyEncSessionPacket keyData, byte[] ikm) throws PGPException
keyData
- v5 or v6 SKESK packetikm
- initial keying material (e.g. S2K result)PGPException