RSACng.ImportParameters(RSAParameters) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- RSAParameters
The RSA parameters.
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.
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.
This method builds a new ephemeral RSA key object using the specified parameters and replaces the Key value with the new key, any already open key is unaffected by this method.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 6, 7, 8, 9 |
.NET Framework | 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: