Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PGPDataDecryptor.java « operator « openpgp « spongycastle « org « java « main « src « pg - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ceeca67297e0ca1878d25ed7d708eaf960856bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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();
}