RsaSecurityKey.GetHashAlgorithmForSignature(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取生成数字签名哈希的加密算法。
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.