RsaSecurityKey.GetHashAlgorithmForSignature(String) 方法

定义

获取生成数字签名哈希的加密算法。

public:
 override System::Security::Cryptography::HashAlgorithm ^ GetHashAlgorithmForSignature(System::String ^ algorithm);
public override System.Security.Cryptography.HashAlgorithm GetHashAlgorithmForSignature(string algorithm);
override this.GetHashAlgorithmForSignature : string -> System.Security.Cryptography.HashAlgorithm
Public Overrides Function GetHashAlgorithmForSignature (algorithm As String) As HashAlgorithm

参数

algorithm
String

哈希算法。 支持的算法为 RsaSha1Signature.

返回

生成数字签名哈希的 A HashAlgorithm

例外

不支持 algorithm。 支持的算法为 RsaSha1Signature.

适用于