Top Description Methods
org.bouncycastle.openpgp.operator

public Interface PGPDigestCalculatorProvider

Imports
org.bouncycastle.bcpg.HashAlgorithmTags, org.bouncycastle.openpgp.PGPException

A factory for digest algorithms.

Method Summary

Modifier and TypeMethod and Description
public PGPDigestCalculator

Returns:

a digest calculator for the specified algorithm.
get
(int
the identifier of the digest algorithm to instantiate.
algorithm
)

Construct a new instance of a cryptographic digest.

Method Detail

getback to summary
public PGPDigestCalculator get(int algorithm) throws PGPException

Construct a new instance of a cryptographic digest.

Parameters
algorithm:int

the identifier of the digest algorithm to instantiate.

Returns:PGPDigestCalculator

a digest calculator for the specified algorithm.

Exceptions
PGPException:
if an error occurs constructing the specified digest.