All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.openpgp.operator.PGPDataDecryptor Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java API for handling the OpenPGP protocol. This jar contains the OpenPGP API for JDK 1.5 to JDK 1.8. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs.

There is a newer version: 1.79
Show newest version
package org.bouncycastle.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 - 2024 Weber Informatics LLC | Privacy Policy