RSACng.ImportParameters(RSAParameters) Method
Definition
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
- parameters
- 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.
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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기