EncryptedXml.DecryptEncryptedKey(EncryptedKey) Metoda

Definicja

Określa klucz reprezentowany przez EncryptedKey element.

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()

Parametry

encryptedKey
EncryptedKey

EncryptedKey Obiekt zawierający klucz do pobrania.

Zwraca

Byte[]

Tablica bajtów zawierająca klucz.

Wyjątki

Wartość parametru encryptedKey to null.

Wartość parametru encryptedKey nie jest algorytmem zawijania klucza Triple DES ani algorytmem zawijania kluczy Advanced Encryption Standard (AES) (nazywanym również Rijndael).

Uwagi

Metoda DecryptEncryptedKey odszyfrowuje zaszyfrowany klucz zawarty w <EncryptedKey> elemecie dokumentu XML.

Ta metoda rekursywna znajduje klucz reprezentowany przez EncryptedKey obiekt. Należy pamiętać, że EncryptedKey obiekt może zawierać inny EncryptedKey obiekt, który określa jego KeyInfo wartość.

Dotyczy