Bouncy Castle Cryptography Library 1.79

org.bouncycastle.openpgp.operator
Interface PublicKeyDataDecryptorFactory

All Superinterfaces:
PGPDataDecryptorFactory
All Known Implementing Classes:
AbstractPublicKeyDataDecryptorFactory

public interface PublicKeyDataDecryptorFactory
extends PGPDataDecryptorFactory


Method Summary
 byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData)
          Deprecated. use recoverSessionData(PublicKeyEncSessionPacket, InputStreamPacket) instead.
 byte[] recoverSessionData(int keyAlgorithm, byte[][] secKeyData, int pkeskVersion)
          Deprecated. use recoverSessionData(PublicKeyEncSessionPacket, InputStreamPacket) instead.
 byte[] recoverSessionData(PublicKeyEncSessionPacket pkesk, InputStreamPacket encData)
          Recover the plain session info by decrypting the encrypted session key.
 
Methods inherited from interface org.bouncycastle.openpgp.operator.PGPDataDecryptorFactory
createDataDecryptor, createDataDecryptor, createDataDecryptor
 

Method Detail

recoverSessionData

public byte[] recoverSessionData(PublicKeyEncSessionPacket pkesk,
                                 InputStreamPacket encData)
                          throws PGPException
Recover the plain session info by decrypting the encrypted session key. The session info ALWAYS has the symmetric algorithm ID prefixed, so the return value is: [sym-alg][session-key][checksum]?
Parameters:
pkesk - public-key encrypted session-key packet
encData - encrypted data (sed/seipd/oed) packet
Returns:
decrypted session info
Throws:
PGPException -  

recoverSessionData

public byte[] recoverSessionData(int keyAlgorithm,
                                 byte[][] secKeyData)
                          throws PGPException
Deprecated. use recoverSessionData(PublicKeyEncSessionPacket, InputStreamPacket) instead.

Recover the plain session info by decrypting the encrypted session key. This method returns the decrypted session info as-is (without prefixing missing cipher algorithm), so the return value is: [sym-alg]?[session-key][checksum]?
Parameters:
keyAlgorithm - public key algorithm
secKeyData - encrypted session key data
Returns:
decrypted session info
Throws:
PGPException -  

recoverSessionData

public byte[] recoverSessionData(int keyAlgorithm,
                                 byte[][] secKeyData,
                                 int pkeskVersion)
                          throws PGPException
Deprecated. use recoverSessionData(PublicKeyEncSessionPacket, InputStreamPacket) instead.

Recover the plain session info by decrypting the encrypted session key. This method returns the decrypted session info as-is (without prefixing missing cipher algorithm), so the return value is: [sym-alg]?[session-key][checksum]?
Parameters:
keyAlgorithm - public key algorithm
secKeyData - encrypted session key data
pkeskVersion - version of the PKESK packet
Returns:
decrypted session info
Throws:
PGPException -  

Bouncy Castle Cryptography Library 1.79