RSAPKCS1KeyExchangeDeformatter.SetKey(AsymmetricAlgorithm) 方法

定义

设置用于解密机密信息的私钥。

public:
 override void SetKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key);
public override void SetKey (System.Security.Cryptography.AsymmetricAlgorithm key);
override this.SetKey : System.Security.Cryptography.AsymmetricAlgorithm -> unit
Public Overrides Sub SetKey (key As AsymmetricAlgorithm)

参数

key
AsymmetricAlgorithm

包含私钥的 RSA 算法的实例。

例外

keynull

注解

在调用 DecryptKeyExchange之前,必须指定密钥。

适用于

另请参阅