共用方式為


RSAPKCS1KeyExchangeFormatter 建構函式

定義

初始化 RSAPKCS1KeyExchangeFormatter 類別的新執行個體。

多載

RSAPKCS1KeyExchangeFormatter()

初始化 RSAPKCS1KeyExchangeFormatter 類別的新執行個體。

RSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm)

使用指定的金鑰,初始化 RSAPKCS1KeyExchangeFormatter 類別的新執行個體。

RSAPKCS1KeyExchangeFormatter()

初始化 RSAPKCS1KeyExchangeFormatter 類別的新執行個體。

public:
 RSAPKCS1KeyExchangeFormatter();
public RSAPKCS1KeyExchangeFormatter ();
Public Sub New ()

備註

使用 SetKey 方法,在呼叫 CreateKeyExchange 之前,先設定要用於金鑰交換的金鑰。

另請參閱

適用於

RSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm)

使用指定的金鑰,初始化 RSAPKCS1KeyExchangeFormatter 類別的新執行個體。

public:
 RSAPKCS1KeyExchangeFormatter(System::Security::Cryptography::AsymmetricAlgorithm ^ key);
public RSAPKCS1KeyExchangeFormatter (System.Security.Cryptography.AsymmetricAlgorithm key);
new System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter : System.Security.Cryptography.AsymmetricAlgorithm -> System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
Public Sub New (key As AsymmetricAlgorithm)

參數

key
AsymmetricAlgorithm

保存公開金鑰的 RSA 演算法執行個體。

例外狀況

keynull

另請參閱

適用於