Comparteix a través de


X509SignatureGenerator.CreateForRSA(RSA, RSASignaturePadding) Método

Definición

Crea un objeto X509SignatureGenerator para las firmas RSA mediante la clave privada especificada y el modo de relleno.

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

Parámetros

key
RSA

Clave privada.

signaturePadding
RSASignaturePadding

Modo de relleno.

Devoluciones

Objeto X509SignatureGenerator para las firmas RSA.

Excepciones

key es null.

o bien

signaturePadding es null.

El modo de relleno especificado no es válido para este algoritmo.

Se aplica a