Class PBESecretKeyDecryptor
java.lang.Object
org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor
- Direct Known Subclasses:
PGPSecretKeyDecryptorWithAAD
-
Constructor Summary
ModifierConstructorDescriptionprotected
PBESecretKeyDecryptor
(char[] passPhrase, PGPDigestCalculatorProvider calculatorProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetChecksumCalculator
(int hashAlgorithm) byte[]
makeKeyFromPassPhrase
(int keyAlgorithm, S2K s2k) abstract byte[]
recoverKeyData
(int encAlgorithm, byte[] key, byte[] iv, byte[] keyData, int keyOff, int keyLen) abstract byte[]
recoverKeyData
(int encAlgorithm, int aeadAlgorithm, byte[] s2kKey, byte[] iv, int packetTag, int keyVersion, byte[] keyData, byte[] pubkeyData)
-
Constructor Details
-
PBESecretKeyDecryptor
-
-
Method Details
-
getChecksumCalculator
- Throws:
PGPException
-
makeKeyFromPassPhrase
- Throws:
PGPException
-
recoverKeyData
public abstract byte[] recoverKeyData(int encAlgorithm, byte[] key, byte[] iv, byte[] keyData, int keyOff, int keyLen) throws PGPException - Throws:
PGPException
-
recoverKeyData
public abstract byte[] recoverKeyData(int encAlgorithm, int aeadAlgorithm, byte[] s2kKey, byte[] iv, int packetTag, int keyVersion, byte[] keyData, byte[] pubkeyData) throws PGPException - Throws:
PGPException
-