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