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
algorithmAlgorithmIdentifierpublicKeyAsymmetricKeyParameter
Asn1VerifierFactory(string, AsymmetricKeyParameter)
Base constructor.
public Asn1VerifierFactory(string algorithm, AsymmetricKeyParameter publicKey)
Parameters
algorithmstringThe name of the signature algorithm to use.
publicKeyAsymmetricKeyParameterThe public key to be used in the verification operation.
Properties
AlgorithmDetails
The algorithm details object for this verifier.
public object AlgorithmDetails { get; }
Property Value
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.