ECDsaCng.VerifyHash(Byte[], Byte[]) 方法
定义
验证数字签名是否适用于当前密钥和提供的数据哈希。Verifies that a digital signature is appropriate for the current key and provided data hash.
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[] -> bool
Public Overrides Function VerifyHash (hash As Byte(), signature As Byte()) As Boolean
参数
- hash
- Byte[]
待验证的数据的哈希值。The hash value of the data to be verified.
- signature
- Byte[]
要结合哈希值验证的数据的数字签名。The digital signature of the data to be verified against the hash value.
返回
如果签名有效,则为 true;否则为 false。true if the signature is valid; otherwise, false.
- 属性
例外
hash 或 signature 为 null。hash or signature is null.