DSA.VerifyDataCore 方法

定义

重载

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

验证数字签名对于所提供的数据是否有效。

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

验证数字签名对于所提供的数据是否有效。

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

Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs

验证数字签名对于所提供的数据是否有效。

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

参数

data
Stream

已签名的数据。

signature
ReadOnlySpan<Byte>

要验证的签名。

hashAlgorithm
HashAlgorithmName

用于对验证过程的数据进行哈希处理的哈希算法。

signatureFormat
DSASignatureFormat

signature 的编码格式。

返回

如果数字签名对所提供的数据有效,则为 true;否则为 false

例外

哈希处理或验证时出错。

适用于

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

Source:
DSA.cs
Source:
DSA.cs
Source:
DSA.cs

验证数字签名对于所提供的数据是否有效。

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

参数

data
ReadOnlySpan<Byte>

已签名的数据。

signature
ReadOnlySpan<Byte>

要验证的签名。

hashAlgorithm
HashAlgorithmName

用于对验证过程的数据进行哈希处理的哈希算法。

signatureFormat
DSASignatureFormat

signature 的编码格式。

返回

如果数字签名对所提供的数据有效,则为 true;否则为 false

例外

哈希处理或验证时出错。

适用于