public class BcPBEDataDecryptorFactory extends PBEDataDecryptorFactory
Constructor and Description |
---|
BcPBEDataDecryptorFactory(char[] pass,
BcPGPDigestCalculatorProvider calculatorProvider)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
PGPDataDecryptor |
createDataDecryptor(boolean withIntegrityPacket,
int encAlgorithm,
byte[] key) |
byte[] |
recoverSessionData(int keyAlgorithm,
byte[] key,
byte[] secKeyData) |
makeKeyFromPassPhrase
public BcPBEDataDecryptorFactory(char[] pass, BcPGPDigestCalculatorProvider calculatorProvider)
pass
- the passphrase to use as the primary source of key material.calculatorProvider
- a digest calculator provider to provide calculators to support the key generation calculation required.public byte[] recoverSessionData(int keyAlgorithm, byte[] key, byte[] secKeyData) throws PGPException
recoverSessionData
in class PBEDataDecryptorFactory
PGPException
public PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key) throws PGPException
PGPException