Table of Contents

Class EcdsaSignatureDeformatter

Namespace
Fdyay.IdentityServer.Saml.Xml
Assembly
Fdyay.IdentityServer.Saml.dll

Verifies an ECDSA signature over an already-computed hash.

public sealed class EcdsaSignatureDeformatter : AsymmetricSignatureDeformatter
Inheritance
EcdsaSignatureDeformatter
Inherited Members

Methods

SetHashAlgorithm(string)

When overridden in a derived class, sets the hash algorithm to use for verifying the signature.

public override void SetHashAlgorithm(string strName)

Parameters

strName string

The name of the hash algorithm to use for verifying the signature.

SetKey(AsymmetricAlgorithm)

When overridden in a derived class, sets the public key to use for verifying the signature.

public override void SetKey(AsymmetricAlgorithm key)

Parameters

key AsymmetricAlgorithm

The instance of an implementation of AsymmetricAlgorithm that holds the public key.

VerifySignature(byte[], byte[])

When overridden in a derived class, verifies the signature for the specified data.

public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)

Parameters

rgbHash byte[]

The data signed with rgbSignature.

rgbSignature byte[]

The signature to be verified for rgbHash.

Returns

bool

true if rgbSignature matches the signature computed using the specified hash algorithm and key on rgbHash; otherwise, false.