EncryptedXml.GetDecryptionIV(EncryptedData, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the decryption initialization vector (IV) from an EncryptedData object.
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()
Parameters
- encryptedData
- EncryptedData
The EncryptedData object that contains the initialization vector (IV) to retrieve.
- symmetricAlgorithmUri
- String
The Uniform Resource Identifier (URI) that describes the cryptographic algorithm associated with the encryptedData
value.
Returns
A byte array that contains the decryption initialization vector (IV).
Exceptions
The value of the encryptedData
parameter is null
.
The value of the encryptedData
parameter has an EncryptionMethod property that is null.
-or-
The value of the symmetricAlgorithmUrisymAlgUri
parameter is not a supported algorithm.
Remarks
Given an EncryptedData object, this method retrieves the decryption initialization vector (IV). The default behavior retrieves the IV as the first bytes of the CipherValue byte array.
For a list of Uniform Resource Identifier (URI) values supported by the symmetricAlgorithmUri
parameter, see the list of constant fields associated with the EncryptedXml class.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈