See Also: CipherData Members
The System.Security.Cryptography.Xml.CipherData class represents the <CipherData> element in XML encryption. It is a required element that provides the encrypted data. It must either contain the encrypted data as base64-encoded text of the <CipherValue> element, or provide a reference to an external location containing the encrypted data using the <CipherReference> element.
In many cases, you do not need to directly create a new instance of the System.Security.Cryptography.Xml.CipherData class. The SignedXml.EncryptedXml, System.Security.Cryptography.Xml.EncryptedData, and System.Security.Cryptography.Xml.EncryptedKey classes create instances for you.
A System.Security.Cryptography.Xml.CipherData object can have either a System.Security.Cryptography.Xml.CipherReference property or a CipherData.CipherValue property, but not both. A System.Security.Cryptography.CryptographicException is thrown if both are assigned to a System.Security.Cryptography.Xml.CipherData object.