org.spongycastle.openpgp.operator.PGPDataDecryptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcpg-jdk15on Show documentation
Show all versions of bcpg-jdk15on Show documentation
Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle
intended for the Android platform. Android unfortunately ships with a stripped-down version of
Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full,
up-to-date version of the Bouncy Castle cryptographic libs.
The newest version!
package org.spongycastle.openpgp.operator;
import java.io.InputStream;
/**
* A decryptor that wraps a stream of PGP encrypted data to decrypt, and optionally integrity check,
* the data.
*/
public interface PGPDataDecryptor
{
/**
* Wraps an encrypted data stream with a stream that will return the decrypted data.
*
* @param in the encrypted data.
* @return a decrypting stream.
*/
InputStream getInputStream(InputStream in);
/**
* Obtains the block size of the encryption algorithm used in this decryptor.
*
* @return the block size of the cipher in bytes.
*/
int getBlockSize();
/**
* Obtains the digest calculator used to verify the integrity check.
*/
PGPDigestCalculator getIntegrityCalculator();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy