DSA.VerifyDataCore Método

Definição

Sobrecargas

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

Verifica se uma assinatura digital é válida para os dados fornecidos.Verifies that a digital signature is valid for the provided data.

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

Verifica se uma assinatura digital é válida para os dados fornecidos.Verifies that a digital signature is valid for the provided data.

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

Verifica se uma assinatura digital é válida para os dados fornecidos.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

Parâmetros

data
Stream

Os dados assinados.The signed data.

signature
ReadOnlySpan<Byte>

A assinatura a ser verificada.The signature to verify.

hashAlgorithm
HashAlgorithmName

O algoritmo de hash usado para efetuar hash nos dados no processo de verificação.The hash algorithm used to hash the data for the verification process.

signatureFormat
DSASignatureFormat

O formato de codificação de signature.The encoding format for signature.

Retornos

Boolean

true se a assinatura digital for válida para os dados fornecidos; caso contrário, false.true if the digital signature is valid for the provided data; otherwise, false.

Exceções

Ocorreu um erro na operação de hash ou verificação.An error occurred in the hashing or verification operation.

Aplica-se a

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

Verifica se uma assinatura digital é válida para os dados fornecidos.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

Parâmetros

data
ReadOnlySpan<Byte>

Os dados assinados.The signed data.

signature
ReadOnlySpan<Byte>

A assinatura a ser verificada.The signature to verify.

hashAlgorithm
HashAlgorithmName

O algoritmo de hash usado para efetuar hash nos dados no processo de verificação.The hash algorithm used to hash the data for the verification process.

signatureFormat
DSASignatureFormat

O formato de codificação de signature.The encoding format for signature.

Retornos

Boolean

true se a assinatura digital for válida para os dados fornecidos; caso contrário, false.true if the digital signature is valid for the provided data; otherwise, false.

Exceções

Ocorreu um erro na operação de hash ou verificação.An error occurred in the hashing or verification operation.

Aplica-se a