X509SignatureGenerator.CreateForRSA(RSA, RSASignaturePadding) 方法

定义

使用指定私钥和填充模式为 RSA 签名创建 X509SignatureGenerator 对象。

public:
 static System::Security::Cryptography::X509Certificates::X509SignatureGenerator ^ CreateForRSA(System::Security::Cryptography::RSA ^ key, System::Security::Cryptography::RSASignaturePadding ^ signaturePadding);
public static System.Security.Cryptography.X509Certificates.X509SignatureGenerator CreateForRSA (System.Security.Cryptography.RSA key, System.Security.Cryptography.RSASignaturePadding signaturePadding);
static member CreateForRSA : System.Security.Cryptography.RSA * System.Security.Cryptography.RSASignaturePadding -> System.Security.Cryptography.X509Certificates.X509SignatureGenerator
Public Shared Function CreateForRSA (key As RSA, signaturePadding As RSASignaturePadding) As X509SignatureGenerator

参数

key
RSA

私钥。

signaturePadding
RSASignaturePadding

填充模式。

返回

RSA 签名的 X509SignatureGenerator 对象。

例外

keynull

- 或 -

signaturePaddingnull

指定的填充模式对于此算法无效。

适用于