RSACng.ImportParameters(RSAParameters) メソッド

定義

パラメーター構造の新しい CngKey を作成して、現在のインスタンスが操作している既存のキーを置き換えます。

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

RSA パラメーター。

例外

parameters には指数も剰余も含まれています。

parameters が有効な RSA キーではありません。

-又は-

parameters は完全なキー ペアであり、既定の KSP が使用されます。

注釈

parametersに指数と剰余のみが含まれている場合は、公開キーのみがインポートされます。 parameters P と Q の値も含まれている場合は、完全なキー ペアがインポートされます。

このメソッドは、指定されたパラメーターを使用して新しいエフェメラル RSA キー オブジェクトを構築し、 Key 値を新しいキーに置き換えます。既に開いているキーは、このメソッドの影響を受けません。

適用対象