共用方式為


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

為此演算法指定的填補模式無效。

適用於