指定したキーを使用して、RSAPKCS1KeyExchangeFormatter クラスの新しいインスタンスを初期化します。
名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)
構文
'宣言
Public Sub New ( _
key As AsymmetricAlgorithm _
)
'使用
Dim key As AsymmetricAlgorithm
Dim instance As New RSAPKCS1KeyExchangeFormatter(key)
public RSAPKCS1KeyExchangeFormatter (
AsymmetricAlgorithm key
)
public:
RSAPKCS1KeyExchangeFormatter (
AsymmetricAlgorithm^ key
)
public RSAPKCS1KeyExchangeFormatter (
AsymmetricAlgorithm key
)
public function RSAPKCS1KeyExchangeFormatter (
key : AsymmetricAlgorithm
)
適用できません。
パラメータ
- key
公開キーを保持している RSA アルゴリズムのインスタンス。
例外
例外の種類 | 条件 |
---|---|
key が null 参照 (Visual Basic では Nothing) です。 |
使用例
RSA キーを指定して RSAPKCS1KeyExchangeFormatter を構築する方法を次のコード例に示します。このコード例は、RSAPKCS1KeyExchangeFormatter クラスのトピックで取り上げているコード例の一部分です。
Dim keyEncryptor As New RSAPKCS1KeyExchangeFormatter(rsaKey)
RSAPKCS1KeyExchangeFormatter keyEncryptor =
new RSAPKCS1KeyExchangeFormatter(rsaKey);
RSAPKCS1KeyExchangeFormatter^ keyEncryptor =
gcnew RSAPKCS1KeyExchangeFormatter( rsaKey );
RSAPKCS1KeyExchangeFormatter keyEncryptor
= new RSAPKCS1KeyExchangeFormatter(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
参照
関連項目
RSAPKCS1KeyExchangeFormatter クラス
RSAPKCS1KeyExchangeFormatter メンバ
System.Security.Cryptography 名前空間