System::Security::Cryptography::RSACryptoServiceProvider::SignHash 方法

RSACryptoServiceProvider::SignHash(ByteArrayPtr, HashAlgorithmName, SharedPtr<RSASignaturePadding>) method

为指定的哈希值计算签名。

ByteArrayPtr System::Security::Cryptography::RSACryptoServiceProvider::SignHash(ByteArrayPtr hash, HashAlgorithmName hash_algorithm, SharedPtr<RSASignaturePadding> padding) override
参数类型描述
哈希ByteArrayPtr哈希值。
hash_algorithmHashAlgorithmName哈希算法。
paddingSharedPtr<RSASignaturePadding>填充模式。返回针对指定哈希的 RSA 签名。

另见

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

计算指定输入值的签名。未实现。

ByteArrayPtr System::Security::Cryptography::RSACryptoServiceProvider::SignHash(const ByteArrayPtr &rgb_hash, const String &str)
参数类型描述
rgb_hashconst ByteArrayPtr&待签名数据的哈希值。
strconst String&用于创建哈希的哈希算法标识符。

ReturnValue

RSA signature for specified data.

另见