Szerkesztés

Megosztás a következőn keresztül:


ECDsa.VerifyHash Method

Definition

Overloads

VerifyHash(Byte[], Byte[], DSASignatureFormat)

Verifies that a digital signature is valid for the provided hash.

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

Verifies that a digital signature is valid for the provided hash.

VerifyHash(Byte[], Byte[])

Verifies that a digital signature is appropriate for the current key and provided data hash.

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Verifies that a digital signature is appropriate for the current key and provided data hash.

VerifyHash(Byte[], Byte[], DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Verifies that a digital signature is valid for the provided hash.

public:
 bool VerifyHash(cli::array <System::Byte> ^ hash, cli::array <System::Byte> ^ signature, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyHash (byte[] hash, byte[] signature, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyHash : byte[] * byte[] * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyHash (hash As Byte(), signature As Byte(), signatureFormat As DSASignatureFormat) As Boolean

Parameters

hash
Byte[]

The signed hash.

signature
Byte[]

The signature to verify.

signatureFormat
DSASignatureFormat

The encoding format for signature.

Returns

true if the digital signature is valid for the provided data; otherwise, false.

Exceptions

hash or signature is null.

signatureFormat is not a known format.

An error occurred in the verification operation.

Applies to

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Verifies that a digital signature is valid for the provided hash.

public:
 bool VerifyHash(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyHash (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyHash (hash As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), signatureFormat As DSASignatureFormat) As Boolean

Parameters

hash
ReadOnlySpan<Byte>

The signed hash.

signature
ReadOnlySpan<Byte>

The signature to verify.

signatureFormat
DSASignatureFormat

The encoding format for signature.

Returns

true if the digital signature is valid for the provided data; otherwise, false.

Exceptions

signatureFormat is not a known format.

An error occurred in the verification operation.

Applies to

VerifyHash(Byte[], Byte[])

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Verifies that a digital signature is appropriate for the current key and provided data hash.

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

Parameters

hash
Byte[]

The hash value of the data to be verified.

signature
Byte[]

The digital signature of the data to be verified against the hash value.

Returns

true if the signature is valid; otherwise, false.

Exceptions

hash or signature is null.

Applies to

VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Verifies that a digital signature is appropriate for the current key and provided data hash.

public:
 virtual bool VerifyHash(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature);
public virtual bool VerifyHash (ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature);
abstract member VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool
override this.VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> bool
Public Overridable Function VerifyHash (hash As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte)) As Boolean

Parameters

hash
ReadOnlySpan<Byte>

The hash value of the data to be verified.

signature
ReadOnlySpan<Byte>

The digital signature of the data to be verified against the hash value.

Returns

true if the signature is valid; otherwise, false.

Applies to