System::Security::Cryptography::RSACryptoServiceProvider::VerifyHash 方法

RSACryptoServiceProvider::VerifyHash(ByteArrayPtr, ByteArrayPtr, const HashAlgorithmName&, SharedPtr<RSASignaturePadding>) method

验证指定哈希的签名是否有效。

bool System::Security::Cryptography::RSACryptoServiceProvider::VerifyHash(ByteArrayPtr hash, ByteArrayPtr signature, const HashAlgorithmName &hash_algorithm, SharedPtr<RSASignaturePadding> padding) override
参数类型描述
哈希ByteArrayPtr已签名数据的哈希值。
签名ByteArrayPtr签名数据。
hash_algorithmconst HashAlgorithmName&哈希算法。
paddingSharedPtr<RSASignaturePadding>填充模式。如果签名有效返回 true,否则返回 false。

另见

RSACryptoServiceProvider::VerifyHash(const ByteArrayPtr&, const String&, const ByteArrayPtr&) method

检查数据签名。

bool System::Security::Cryptography::RSACryptoServiceProvider::VerifyHash(const ByteArrayPtr &rgb_hash, const String &str, const ByteArrayPtr &rgb_signature)
参数类型描述
rgb_hashconst ByteArrayPtr&为接收的数据计算的哈希。
strconst String&使用的哈希算法名称。
rgb_signatureconst ByteArrayPtr&接收到的签名。

ReturnValue

如果签名有效则为 True,否则为 false。

另见