ECDsaCng.VerifyHash 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) | 验证数字签名是否适用于当前密钥和提供的数据哈希。 | 
| VerifyHash(Byte[], Byte[]) | 验证数字签名是否适用于当前密钥和提供的数据哈希。 | 
VerifyHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
验证数字签名是否适用于当前密钥和提供的数据哈希。
public:
 override bool VerifyHash(ReadOnlySpan<System::Byte> hash, ReadOnlySpan<System::Byte> signature);public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature);override this.VerifyHash : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> boolPublic Overrides Function VerifyHash (hash As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte)) As Boolean参数
- hash
- ReadOnlySpan<Byte>
待验证的数据的哈希值。
- signature
- ReadOnlySpan<Byte>
要结合哈希值验证的数据的数字签名。
返回
如果签名有效,则为 true;否则为 false。
适用于
VerifyHash(Byte[], Byte[])
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
验证数字签名是否适用于当前密钥和提供的数据哈希。
public:
 override bool VerifyHash(cli::array <System::Byte> ^ hash, cli::array <System::Byte> ^ signature);public override bool VerifyHash(byte[] hash, byte[] signature);[System.Security.SecurityCritical]
public override bool VerifyHash(byte[] hash, byte[] signature);override this.VerifyHash : byte[] * byte[] -> bool[<System.Security.SecurityCritical>]
override this.VerifyHash : byte[] * byte[] -> boolPublic Overrides Function VerifyHash (hash As Byte(), signature As Byte()) As Boolean参数
- hash
- Byte[]
待验证的数据的哈希值。
- signature
- Byte[]
要结合哈希值验证的数据的数字签名。
返回
如果签名有效,则为 true;否则为 false。
- 属性
例外
              hash 或 signature 为 null。