次の方法で共有


RSAOAEPKeyExchangeFormatter コンストラクタ (AsymmetricAlgorithm)

指定したキーを使用して、RSAOAEPKeyExchangeFormatter クラスの新しいインスタンスを初期化します。

名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)

構文

'宣言
Public Sub New ( _
    key As AsymmetricAlgorithm _
)
'使用
Dim key As AsymmetricAlgorithm

Dim instance As New RSAOAEPKeyExchangeFormatter(key)
public RSAOAEPKeyExchangeFormatter (
    AsymmetricAlgorithm key
)
public:
RSAOAEPKeyExchangeFormatter (
    AsymmetricAlgorithm^ key
)
public RSAOAEPKeyExchangeFormatter (
    AsymmetricAlgorithm key
)
public function RSAOAEPKeyExchangeFormatter (
    key : AsymmetricAlgorithm
)
適用できません。

パラメータ

  • key
    公開キーを保持している RSA アルゴリズムのインスタンス。

例外

例外の種類 条件

ArgumentNullException

key が null 参照 (Visual Basic では Nothing) です。

使用例

RSA キーを指定して RSAOAEPKeyExchangeFormatter を構築する方法を次のコード例に示します。このコード例は、RSAOAEPKeyExchangeFormatter クラスのトピックで取り上げているコード例の一部分です。

Dim keyEncryptor As New RSAOAEPKeyExchangeFormatter(rsaKey)
RSAOAEPKeyExchangeFormatter keyEncryptor =
    new RSAOAEPKeyExchangeFormatter(rsaKey);
RSAOAEPKeyExchangeFormatter^ keyEncryptor =
   gcnew RSAOAEPKeyExchangeFormatter( rsaKey );
RSAOAEPKeyExchangeFormatter keyEncryptor 
    = new RSAOAEPKeyExchangeFormatter(rsaKey);

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

RSAOAEPKeyExchangeFormatter クラス
RSAOAEPKeyExchangeFormatter メンバ
System.Security.Cryptography 名前空間

その他の技術情報

暗号サービス