System::Security::Cryptography::ECDsa::VerifyData method

ECDsa::VerifyData(const ByteArrayPtr&, const ByteArrayPtr&, const HashAlgorithmName&) method

验证指定数据的签名是否有效。

bool System::Security::Cryptography::ECDsa::VerifyData(const ByteArrayPtr &data, const ByteArrayPtr &signature, const HashAlgorithmName &hash_algorithm)
参数类型描述
数据const ByteArrayPtr&已签名的数据。
签名const ByteArrayPtr&签名数据。
hash_algorithmconst HashAlgorithmName&哈希算法。若签名有效返回 true,否则返回 false。

另见

ECDsa::VerifyData(const ByteArrayPtr&, int32_t, int32_t, const ByteArrayPtr&, const HashAlgorithmName&) method

验证指定数据的签名是否有效。

bool System::Security::Cryptography::ECDsa::VerifyData(const ByteArrayPtr &data, int32_t offset, int32_t count, const ByteArrayPtr &signature, const HashAlgorithmName &hash_algorithm)
参数类型描述
数据const ByteArrayPtr&已签名的数据。
offsetint32_tdata 中的偏移。
countint32_t要进行哈希的字节数。
签名const ByteArrayPtr&签名数据。
hash_algorithmconst HashAlgorithmName&哈希算法。若签名有效返回 true,否则返回 false。

另见

ECDsa::VerifyData(const StreamPtr&, const ByteArrayPtr&, const HashAlgorithmName&) method

验证指定二进制流的签名是否有效。

bool System::Security::Cryptography::ECDsa::VerifyData(const StreamPtr &stream, const ByteArrayPtr &signature, const HashAlgorithmName &hash_algorithm)
参数类型描述
const StreamPtr&已签名的数据。
签名const ByteArrayPtr&签名数据。
hash_algorithmconst HashAlgorithmName&哈希算法。若签名有效返回 true,否则返回 false。

另见