ECDsa.VerifyHash 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| VerifyHash(Byte[], Byte[], DSASignatureFormat) |
验证数字签名是否对提供的哈希有效。 |
| VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat) |
验证数字签名是否对提供的哈希有效。 |
| VerifyHash(Byte[], Byte[]) |
验证数字签名是否适合当前密钥和提供的数据哈希。 |
| VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
验证数字签名是否适合当前密钥和提供的数据哈希。 |
VerifyHash(Byte[], Byte[], DSASignatureFormat)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
验证数字签名是否对提供的哈希有效。
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
参数
- hash
- Byte[]
带符号哈希。
- signature
- Byte[]
要验证的签名。
- signatureFormat
- DSASignatureFormat
的 signature编码格式。
返回
true 如果数字签名对所提供的数据有效,则为 ;否则,为 false.
例外
hash 或 signature 为 null.
signatureFormat 不是已知格式。
验证操作中发生错误。
适用于
VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, DSASignatureFormat)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
验证数字签名是否对提供的哈希有效。
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
参数
- hash
- ReadOnlySpan<Byte>
带符号哈希。
- signature
- ReadOnlySpan<Byte>
要验证的签名。
- signatureFormat
- DSASignatureFormat
的 signature编码格式。
返回
true 如果数字签名对所提供的数据有效,则为 ;否则,为 false.
例外
signatureFormat 不是已知格式。
验证操作中发生错误。
适用于
VerifyHash(Byte[], Byte[])
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
验证数字签名是否适合当前密钥和提供的数据哈希。
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
参数
- hash
- Byte[]
要验证的数据的哈希值。
- signature
- Byte[]
要根据哈希值验证的数据的数字签名。
返回
true 如果签名有效,则为否则,为 false.
例外
hash 或 signature 为 null.
适用于
VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
- Source:
- ECDsa.cs
验证数字签名是否适合当前密钥和提供的数据哈希。
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
参数
- hash
- ReadOnlySpan<Byte>
要验证的数据的哈希值。
- signature
- ReadOnlySpan<Byte>
要根据哈希值验证的数据的数字签名。
返回
true 如果签名有效,则为否则,为 false.