Bouncy Castle Cryptography Library 1.79

org.bouncycastle.openpgp.operator
Class PBESecretKeyDecryptor

java.lang.Object
  |
  +--org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor
Direct Known Subclasses:
PGPSecretKeyDecryptorWithAAD

public abstract class PBESecretKeyDecryptor
extends java.lang.Object


Constructor Summary
protected PBESecretKeyDecryptor(char[] passPhrase, PGPDigestCalculatorProvider calculatorProvider)
           
 
Method Summary
 PGPDigestCalculator getChecksumCalculator(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBESecretKeyDecryptor

protected PBESecretKeyDecryptor(char[] passPhrase,
                                PGPDigestCalculatorProvider calculatorProvider)
Method Detail

getChecksumCalculator

public PGPDigestCalculator getChecksumCalculator(int hashAlgorithm)
                                          throws PGPException

makeKeyFromPassPhrase

public byte[] makeKeyFromPassPhrase(int keyAlgorithm,
                                    S2K s2k)
                             throws PGPException

recoverKeyData

public abstract byte[] recoverKeyData(int encAlgorithm,
                                      byte[] key,
                                      byte[] iv,
                                      byte[] keyData,
                                      int keyOff,
                                      int keyLen)
                               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

Bouncy Castle Cryptography Library 1.79