Top Fields Constructors Methods
org.bouncycastle.openpgp.operator.jcajce

pack-priv Class SHA1PGPDigestCalculator

extends Object
implements PGPDigestCalculator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.openpgp.operator.PGPDigestCalculator
Imports
java.io.OutputStream, java.security.MessageDigest, .NoSuchAlgorithmException, org.bouncycastle.bcpg.HashAlgorithmTags, org.bouncycastle.jcajce.io.OutputStreamFactory, org.bouncycastle.openpgp.operator.PGPDigestCalculator

Field Summary

Modifier and TypeField and Description
private MessageDigest

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
getAlgorithm()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.getAlgorithm.

Return the algorithm number representing the digest implemented by this calculator.

public byte[]
getDigest()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.getDigest.

Return the digest calculated on what has been written to the calculator's output stream.

public OutputStream
getOutputStream()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.getOutputStream.

Returns a stream that will accept data for the purpose of calculating a digest.

public void
reset()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.reset.

Reset the underlying digest calculator

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestback to summary
private MessageDigest digest

Constructor Detail

SHA1PGPDigestCalculatorback to summary
pack-priv SHA1PGPDigestCalculator()

Method Detail

getAlgorithmback to summary
public int getAlgorithm()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.getAlgorithm.

Doc from org.bouncycastle.openpgp.operator.PGPDigestCalculator.getAlgorithm.

Return the algorithm number representing the digest implemented by this calculator.

Returns:int

the hash algorithm number

getDigestback to summary
public byte[] getDigest()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.getDigest.

Doc from org.bouncycastle.openpgp.operator.PGPDigestCalculator.getDigest.

Return the digest calculated on what has been written to the calculator's output stream.

Returns:byte[]

a digest.

getOutputStreamback to summary
public OutputStream getOutputStream()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.getOutputStream.

Doc from org.bouncycastle.openpgp.operator.PGPDigestCalculator.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:OutputStream

an OutputStream that data to be digested can be written to.

resetback to summary
public void reset()

Implements org.bouncycastle.openpgp.operator.PGPDigestCalculator.reset.

Doc from org.bouncycastle.openpgp.operator.PGPDigestCalculator.reset.

Reset the underlying digest calculator