Table of Contents

Class Asn1DigestFactory

Namespace
Org.BouncyCastle.Crypto.Operators
Assembly
BouncyCastle.Cryptography.dll
public class Asn1DigestFactory : IDigestFactory
Inheritance
Asn1DigestFactory
Implements
Inherited Members

Constructors

Asn1DigestFactory(IDigest, DerObjectIdentifier)

public Asn1DigestFactory(IDigest digest, DerObjectIdentifier oid)

Parameters

digest IDigest
oid DerObjectIdentifier

Properties

AlgorithmDetails

The algorithm details object for calculators made by this factory.

public virtual object AlgorithmDetails { get; }

Property Value

object

DigestLength

Return the size of the digest associated with this factory.

public virtual int DigestLength { get; }

Property Value

int

The length of the digest produced by this calculators from this factory in bytes.

Methods

CreateCalculator()

Create a stream calculator for the digest associated with this factory. The stream calculator is used for the actual operation of entering the data to be digested and producing the digest block.

public virtual IStreamCalculator<IBlockResult> CreateCalculator()

Returns

IStreamCalculator<IBlockResult>

A calculator producing an IBlockResult with the final digest in it.

Get(DerObjectIdentifier)

public static Asn1DigestFactory Get(DerObjectIdentifier oid)

Parameters

oid DerObjectIdentifier

Returns

Asn1DigestFactory

Get(string)

public static Asn1DigestFactory Get(string mechanism)

Parameters

mechanism string

Returns

Asn1DigestFactory