org.bouncycastle.openpgp.operator
Interface PGPDataDecryptor
- public interface PGPDataDecryptor
A decryptor that wraps a stream of PGP encrypted data to decrypt, and optionally integrity check,
the data.
Method Summary |
int |
getBlockSize()
Obtains the block size of the encryption algorithm used in this decryptor. |
java.io.InputStream |
getInputStream(java.io.InputStream in)
Wraps an encrypted data stream with a stream that will return the decrypted data. |
PGPDigestCalculator |
getIntegrityCalculator()
Obtains the digest calculator used to verify the integrity check. |
getInputStream
public java.io.InputStream getInputStream(java.io.InputStream in)
- Wraps an encrypted data stream with a stream that will return the decrypted data.
- Parameters:
in
- the encrypted data.- Returns:
- a decrypting stream.
getBlockSize
public int getBlockSize()
- Obtains the block size of the encryption algorithm used in this decryptor.
- Returns:
- the block size of the cipher in bytes.
getIntegrityCalculator
public PGPDigestCalculator getIntegrityCalculator()
- Obtains the digest calculator used to verify the integrity check.