Bewerken

Delen via


AsymmetricSignatureDeformatter.VerifySignature Method

Definition

Verifies the signature.

Overloads

VerifySignature(Byte[], Byte[])

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

VerifySignature(HashAlgorithm, Byte[])

Verifies the signature from the specified hash value.

VerifySignature(Byte[], Byte[])

Source:
AsymmetricSignatureDeformatter.cs
Source:
AsymmetricSignatureDeformatter.cs
Source:
AsymmetricSignatureDeformatter.cs

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

public:
 abstract bool VerifySignature(cli::array <System::Byte> ^ rgbHash, cli::array <System::Byte> ^ rgbSignature);
public abstract bool VerifySignature (byte[] rgbHash, byte[] rgbSignature);
abstract member VerifySignature : byte[] * byte[] -> bool
Public MustOverride Function VerifySignature (rgbHash As Byte(), rgbSignature As Byte()) As Boolean

Parameters

rgbHash
Byte[]

The data signed with rgbSignature.

rgbSignature
Byte[]

The signature to be verified for rgbHash.

Returns

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

Remarks

You must specify a public key and a hash algorithm before calling this method.

See also

Applies to

VerifySignature(HashAlgorithm, Byte[])

Source:
AsymmetricSignatureDeformatter.cs
Source:
AsymmetricSignatureDeformatter.cs
Source:
AsymmetricSignatureDeformatter.cs

Verifies the signature from the specified hash value.

public:
 virtual bool VerifySignature(System::Security::Cryptography::HashAlgorithm ^ hash, cli::array <System::Byte> ^ rgbSignature);
public virtual bool VerifySignature (System.Security.Cryptography.HashAlgorithm hash, byte[] rgbSignature);
abstract member VerifySignature : System.Security.Cryptography.HashAlgorithm * byte[] -> bool
override this.VerifySignature : System.Security.Cryptography.HashAlgorithm * byte[] -> bool
Public Overridable Function VerifySignature (hash As HashAlgorithm, rgbSignature As Byte()) As Boolean

Parameters

hash
HashAlgorithm

The hash algorithm to use to verify the signature.

rgbSignature
Byte[]

The signature to be verified.

Returns

true if the signature is valid for the hash; otherwise, false.

Exceptions

The hash parameter is null.

Remarks

This method sets the hash algorithm to be used before verifying the signature of the input hash algorithm value.

See also

Applies to