Bouncy Castle Cryptography Library 1.49

org.bouncycastle.openpgp.operator
Interface PGPDigestCalculator


public interface PGPDigestCalculator


Method Summary
 int getAlgorithm()
          Return the algorithm number representing the digest implemented by this calculator.
 byte[] getDigest()
          Return the digest calculated on what has been written to the calculator's output stream.
 java.io.OutputStream getOutputStream()
          Returns a stream that will accept data for the purpose of calculating a digest.
 void reset()
          Reset the underlying digest calculator
 

Method Detail

getAlgorithm

int getAlgorithm()
Return the algorithm number representing the digest implemented by this calculator.

Returns:
algorithm number

getOutputStream

java.io.OutputStream getOutputStream()
Returns a stream that will accept data for the purpose of calculating a digest. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.

Returns:
an OutputStream

getDigest

byte[] getDigest()
Return the digest calculated on what has been written to the calculator's output stream.

Returns:
a digest.

reset

void reset()
Reset the underlying digest calculator


Bouncy Castle Cryptography Library 1.49