Top Description Methods
org.bouncycastle.openpgp.operator

public Interface PGPDataDecryptorFactory

Known Direct Subinterfaces
org.bouncycastle.openpgp.operator.PublicKeyDataDecryptorFactory, org.bouncycastle.openpgp.operator.SessionKeyDataDecryptorFactory
Known Direct Implementers
org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory
Imports
org.bouncycastle.bcpg.SymmetricKeyAlgorithmTags, org.bouncycastle.openpgp.PGPException

Base interface of factories for PGPDataDecryptor.

Method Summary

Modifier and TypeMethod and Description
public PGPDataDecryptor

Returns:

a data decryptor that can decrypt (and verify) streams of encrypted data.
createDataDecryptor
(boolean
true if the packet to be decrypted has integrity checking enabled.
withIntegrityPacket
,
int
the identifier of the encryption algorithm to decrypt with.
encAlgorithm
,
byte[]
the bytes of the key for the cipher.
key
)

Constructs a data decryptor.

public PGPDataDecryptor

Returns:

a data decryptor that can decrypt (and verify) streams of encrypted data.
createDataDecryptor
(int
the identifier of the encryption algorithm to use.
aeadAlgorithm
,
byte[]
the initialization vector to build the AEAD nonces from.
iv
,
int
the chunksize value for the AEAD encrypted chunks.
chunkSize
,
int
the identifier of the encryption algorithm to decrypt with.
encAlgorithm
,
byte[]
the bytes of the key for the cipher.
key
)

Constructs an AEAD data decryptor.

Method Detail

createDataDecryptorback to summary
public PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key) throws PGPException

Constructs a data decryptor.

Parameters
withIntegrityPacket:boolean

true if the packet to be decrypted has integrity checking enabled.

encAlgorithm:int

the identifier of the encryption algorithm to decrypt with.

key:byte[]

the bytes of the key for the cipher.

Returns:PGPDataDecryptor

a data decryptor that can decrypt (and verify) streams of encrypted data.

Exceptions
PGPException:
if an error occurs initialising the decryption and integrity checking functions.
createDataDecryptorback to summary
public PGPDataDecryptor createDataDecryptor(int aeadAlgorithm, byte[] iv, int chunkSize, int encAlgorithm, byte[] key) throws PGPException

Constructs an AEAD data decryptor.

Parameters
aeadAlgorithm:int

the identifier of the encryption algorithm to use.

iv:byte[]

the initialization vector to build the AEAD nonces from.

chunkSize:int

the chunksize value for the AEAD encrypted chunks.

encAlgorithm:int

the identifier of the encryption algorithm to decrypt with.

key:byte[]

the bytes of the key for the cipher.

Returns:PGPDataDecryptor

a data decryptor that can decrypt (and verify) streams of encrypted data.

Exceptions
PGPException:
if an error occurs initialising the decryption and integrity checking functions.