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
Modifier and TypeMethodDescriptionint
Obtains the block size of the encryption algorithm used in this decryptor.Wraps an encrypted data stream with a stream that will return the decrypted data.Obtains the digest calculator used to verify the integrity check.
-
Method Details
-
getInputStream
Wraps an encrypted data stream with a stream that will return the decrypted data.- Parameters:
in
- the encrypted data.- Returns:
- a decrypting stream.
-
getBlockSize
int getBlockSize()Obtains the block size of the encryption algorithm used in this decryptor.- Returns:
- the block size of the cipher in bytes.
-
getIntegrityCalculator
PGPDigestCalculator getIntegrityCalculator()Obtains the digest calculator used to verify the integrity check.
-