Show / Hide Table of Contents

Class EcDsaSignatureDescriptions.EcDsaSignatureDeformatter

Deformats EC DSA signatures.

Inheritance
System.Object
System.Security.Cryptography.AsymmetricSignatureDeformatter
EcDsaSignatureDescriptions.EcDsaSignatureDeformatter
Inherited Members
System.Security.Cryptography.AsymmetricSignatureDeformatter.VerifySignature(System.Security.Cryptography.HashAlgorithm, System.Byte[])
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.Saml2.XmlSecurity.Signature
Assembly: ComponentSpace.Saml2.dll
Syntax
public class EcDsaSignatureDeformatter : AsymmetricSignatureDeformatter

Methods

SetHashAlgorithm(String)

Sets the name of the hash algorithm used to verify the signature.

Declaration
public override void SetHashAlgorithm(string algorithmName)
Parameters
Type Name Description
System.String algorithmName

The hash algorithm name.

Overrides
System.Security.Cryptography.AsymmetricSignatureDeformatter.SetHashAlgorithm(System.String)

SetKey(AsymmetricAlgorithm)

Sets the key used to verify the signature.

Declaration
public override void SetKey(AsymmetricAlgorithm key)
Parameters
Type Name Description
System.Security.Cryptography.AsymmetricAlgorithm key

The key.

Overrides
System.Security.Cryptography.AsymmetricSignatureDeformatter.SetKey(System.Security.Cryptography.AsymmetricAlgorithm)

VerifySignature(Byte[], Byte[])

Verifies the signature from the specified hash value.

Declaration
public override bool VerifySignature(byte[] hash, byte[] signature)
Parameters
Type Name Description
System.Byte[] hash

The hash.

System.Byte[] signature

The signature.

Returns
Type Description
System.Boolean

true if the signature verifies; otherwise false.

Overrides
System.Security.Cryptography.AsymmetricSignatureDeformatter.VerifySignature(System.Byte[], System.Byte[])
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.