EncryptedXml.DecryptEncryptedKey(EncryptedKey) 方法

定義

決定由 EncryptedKey 元素所代表的鍵。

public:
 virtual cli::array <System::Byte> ^ DecryptEncryptedKey(System::Security::Cryptography::Xml::EncryptedKey ^ encryptedKey);
public virtual byte[] DecryptEncryptedKey(System.Security.Cryptography.Xml.EncryptedKey encryptedKey);
abstract member DecryptEncryptedKey : System.Security.Cryptography.Xml.EncryptedKey -> byte[]
override this.DecryptEncryptedKey : System.Security.Cryptography.Xml.EncryptedKey -> byte[]
Public Overridable Function DecryptEncryptedKey (encryptedKey As EncryptedKey) As Byte()

參數

encryptedKey
EncryptedKey

EncryptedKey包含要取回金鑰的物件。

傳回

Byte[]

一個包含金鑰的位元組陣列。

例外狀況

參數的 encryptedKey 值為 null

參數 encryptedKey 的值並非三重 DES 金鑰包裝演算法,也不是先進加密標準(AES)金鑰包裝演算法(亦稱 Rijndael)。

備註

DecryptEncryptedKey 方法解密包含於 <EncryptedKey> XML 文件元素中的加密金鑰。

此遞迴方法會找到物件 EncryptedKey 所代表的金鑰。 請注意,一個 EncryptedKey 物件可以包含另一個 EncryptedKey 指定其 KeyInfo 值的物件。

適用於