Editare

Partajați prin


ECDsa.VerifyDataCore Method

Definition

Overloads

VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

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

protected:
 virtual bool VerifyDataCore(System::IO::Stream ^ data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual bool VerifyDataCore (System.IO.Stream data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member VerifyDataCore : System.IO.Stream * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
override this.VerifyDataCore : System.IO.Stream * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Protected Overridable Function VerifyDataCore (data As Stream, signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean

Parameters

data
Stream

The signed data.

signature
ReadOnlySpan<Byte>

The signature to verify.

hashAlgorithm
HashAlgorithmName

The hash algorithm used to hash the data for the verification process.

signatureFormat
DSASignatureFormat

The encoding format for signature.

Returns

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

Exceptions

An error occurred in the hashing or verification operation.

Applies to

VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

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

protected:
 virtual bool VerifyDataCore(ReadOnlySpan<System::Byte> data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual bool VerifyDataCore (ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member VerifyDataCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
override this.VerifyDataCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Protected Overridable Function VerifyDataCore (data As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean

Parameters

data
ReadOnlySpan<Byte>

The signed data.

signature
ReadOnlySpan<Byte>

The signature to verify.

hashAlgorithm
HashAlgorithmName

The hash algorithm used to hash the data for the verification process.

signatureFormat
DSASignatureFormat

The encoding format for signature.

Returns

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

Exceptions

An error occurred in the hashing or verification operation.

Applies to