RSAOAEPKeyExchangeDeformatter.SetKey(AsymmetricAlgorithm) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定私鑰用於解密秘密資訊。
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)
參數
持有私鑰的演算法實例 RSA 。
例外狀況
key 是 null。
備註
你必須先設定一個金鑰才能撥打 DecryptKeyExchange。