System.Security.Cryptography.Xml.EncryptedXml
Represents the process model for implementing XML encryption.
Represents the namespace Uniform Resource Identifier (URI) for the 128-bit Advanced Encryption Standard (AES) Key Wrap algorithm (also known as the Rijndael Key Wrap algorithm). This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the 128-bit Advanced Encryption Standard (AES) algorithm (also known as the Rijndael algorithm). This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the 192-bit Advanced Encryption Standard (AES) Key Wrap algorithm (also known as the Rijndael Key Wrap algorithm). This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the 192-bit Advanced Encryption Standard (AES) algorithm (also known as the Rijndael algorithm). This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the 256-bit Advanced Encryption Standard (AES) Key Wrap algorithm (also known as the Rijndael Key Wrap algorithm). This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the 256-bit Advanced Encryption Standard (AES) algorithm (also known as the Rijndael algorithm). This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the Digital Encryption Standard (DES) algorithm. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for XML encryption element content. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for an XML encryption element. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the XML encryption <EncryptedKey> element. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for XML encryption syntax and processing. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the RSA Public Key Cryptography Standard (PKCS) Version 1.5 algorithm. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the RSA Optimal Asymmetric Encryption Padding (OAEP) encryption algorithm. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the SHA-256 algorithm. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the SHA-512 algorithm. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the TRIPLEDES key wrap algorithm. This field is constant.
Represents the namespace Uniform Resource Identifier (URI) for the Triple DES algorithm. This field is constant.
Gets or sets the evidence of the XmlDocument object from which the EncryptedXml object is constructed.
Gets or sets the encoding used for XML encryption.
Gets or sets the cipher mode used for XML encryption.
Gets or sets the padding mode used for XML encryption.
Gets or sets the recipient of the encrypted key information.
Gets or sets the XmlResolver object used by the Document Object Model (DOM) to resolve external XML references.
Gets or sets the XML digital signature recursion depth to prevent infinite recursion and stack overflow. This might happen if the digital signature XML contains the URI that then points back to the original XML.
public EncryptedXml()
Initializes a new instance of the EncryptedXml class.
Initializes a new instance of the EncryptedXml class using the specified XML document.
Initializes a new instance of the EncryptedXml class using the specified XML document and evidence.
Decrypts an <EncryptedKey> element using a symmetric algorithm.
Decrypts an <EncryptedKey> element using an asymmetric algorithm.
Encrypts a key using a symmetric algorithm that a recipient uses to decrypt an <EncryptedData> element.
Encrypts the key that a recipient uses to decrypt an <EncryptedData> element.
public static void ReplaceElement(XmlElement inputElement, EncryptedData encryptedData, bool content)
Replaces the specified element with the specified EncryptedData object.
Defines a mapping between a key name and a symmetric key or an asymmetric key.
Resets all key name mapping.
Decrypts an <EncryptedData> element using the specified symmetric algorithm.
Decrypts all <EncryptedData> elements of the XML document that were specified during initialization of the EncryptedXml class.
Determines the key represented by the EncryptedKey element.
Encrypts the outer XML of an element using the specified X.509 certificate.
Encrypts the outer XML of an element using the specified key in the key mapping table.
Encrypts data in the specified byte array using the specified symmetric algorithm.
public byte[] EncryptData(XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, bool content)
Encrypts the specified element or its contents using the specified symmetric algorithm.
Retrieves the decryption initialization vector (IV) from an EncryptedData object.
public virtual SymmetricAlgorithm GetDecryptionKey(EncryptedData encryptedData, string symmetricAlgorithmUri)
Retrieves the decryption key from the specified EncryptedData object.
Determines how to resolve internal Uniform Resource Identifier (URI) references.
Replaces an <EncryptedData> element with a specified decrypted sequence of bytes.