RSACng.ImportParameters(RSAParameters) RSACng.ImportParameters(RSAParameters) RSACng.ImportParameters(RSAParameters) RSACng.ImportParameters(RSAParameters) Method

Definition

Replaces the existing key that the current instance is working with by creating a new CngKey for the parameters structure.

public:
 override void ImportParameters(System::Security::Cryptography::RSAParameters parameters);
public override void ImportParameters (System.Security.Cryptography.RSAParameters parameters);
override this.ImportParameters : System.Security.Cryptography.RSAParameters -> unit
Public Overrides Sub ImportParameters (parameters As RSAParameters)

Parameters

parameters
RSAParameters RSAParameters RSAParameters RSAParameters

The RSA parameters.

Exceptions

parameters contains neither an exponent nor a modulus.

parameters is not a valid RSA key.

-or-

parameters is a full key pair and the default KSP is used.

Remarks

If parameters contains only an exponent and modulus, only a public key is imported. If parameters also contains P and Q values, a full key pair is imported.

Applies to