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) |
makeKeyFromPassPhrasepublic 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 PBEDataDecryptorFactoryPGPExceptionpublic PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key) throws PGPException
PGPException