Share via


EncryptedXml.GetDecryptionIV(EncryptedData, String) 方法

定義

EncryptedData 物件擷取解密初始化向量 (IV)。

public:
 virtual cli::array <System::Byte> ^ GetDecryptionIV(System::Security::Cryptography::Xml::EncryptedData ^ encryptedData, System::String ^ symmetricAlgorithmUri);
public virtual byte[] GetDecryptionIV (System.Security.Cryptography.Xml.EncryptedData encryptedData, string? symmetricAlgorithmUri);
public virtual byte[] GetDecryptionIV (System.Security.Cryptography.Xml.EncryptedData encryptedData, string symmetricAlgorithmUri);
abstract member GetDecryptionIV : System.Security.Cryptography.Xml.EncryptedData * string -> byte[]
override this.GetDecryptionIV : System.Security.Cryptography.Xml.EncryptedData * string -> byte[]
Public Overridable Function GetDecryptionIV (encryptedData As EncryptedData, symmetricAlgorithmUri As String) As Byte()

參數

encryptedData
EncryptedData

EncryptedData 物件,包含要擷取的初始化向量 (IV)。

symmetricAlgorithmUri
String

統一資源識別元 (URI),描述與 encryptedData 值相關聯的密碼編譯演算法。

傳回

Byte[]

包含解密初始化向量 (IV) 的位元組陣列。

例外狀況

encryptedData 參數的值為 null

encryptedData 參數值有為 null 的 EncryptionMethod 屬性。

-或-

symmetricAlgorithmUrisymAlgUri 參數的值為不支援的演算法。

備註

EncryptedData指定物件時,這個方法會擷取解密初始化向量, (IV) 。 默認行為會擷取IV做為位元組陣列的第一個字節 CipherValue

如需 參數所支援 symmetricAlgorithmUri 之統一資源標識碼 (URI) 值的清單,請參閱與 類別相關聯的 EncryptedXml 常數位段清單。

適用於