Table of Contents

Class Asn1VerifierFactory

Namespace
Org.BouncyCastle.Crypto.Operators
Assembly
BouncyCastle.Cryptography.dll

Verifier class for signature verification in ASN.1 based profiles that use an AlgorithmIdentifier to preserve signature algorithm details.

public class Asn1VerifierFactory : IVerifierFactory
Inheritance
Asn1VerifierFactory
Implements
Inherited Members

Constructors

Asn1VerifierFactory(AlgorithmIdentifier, AsymmetricKeyParameter)

public Asn1VerifierFactory(AlgorithmIdentifier algorithm, AsymmetricKeyParameter publicKey)

Parameters

algorithm AlgorithmIdentifier
publicKey AsymmetricKeyParameter

Asn1VerifierFactory(string, AsymmetricKeyParameter)

Base constructor.

public Asn1VerifierFactory(string algorithm, AsymmetricKeyParameter publicKey)

Parameters

algorithm string

The name of the signature algorithm to use.

publicKey AsymmetricKeyParameter

The public key to be used in the verification operation.

Properties

AlgorithmDetails

The algorithm details object for this verifier.

public object AlgorithmDetails { get; }

Property Value

object

Methods

CreateCalculator()

Create a stream calculator for this verifier. The stream calculator is used for the actual operation of entering the data to be verified and producing a result which can be used to verify the original signature.

public IStreamCalculator<IVerifier> CreateCalculator()

Returns

IStreamCalculator<IVerifier>

A calculator producing an IVerifier which can verify the signature.