2 writes to CipherData
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\EncryptedData.cs (1)
44CipherData = new CipherData();
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
80CipherData = new CipherData();
23 references to CipherData
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\EncryptedXmlDecryptor.cs (1)
161return DecryptKey(encryptedKey.CipherData.CipherValue!, privateKey, useOAEP);
System.Security.Cryptography.Xml (22)
System\Security\Cryptography\Xml\EncryptedData.cs (3)
45CipherData.LoadXml((cipherDataNode as XmlElement)!); 101if (CipherData == null) 103encryptedDataElement.AppendChild(CipherData.GetXml(document));
System\Security\Cryptography\Xml\EncryptedKey.cs (3)
81CipherData.LoadXml((cipherDataNode as XmlElement)!); 174if (CipherData == null) 176encryptedKeyElement.AppendChild(CipherData.GetXml(document));
System\Security\Cryptography\Xml\EncryptedXml.cs (16)
294byte[] cipherValue = GetCipherValue(encryptedData.CipherData); 414if (encryptedKey.CipherData == null || encryptedKey.CipherData.CipherValue == null) 420return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (SymmetricAlgorithm)kek); 424return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (RSA)kek, fOAEP); 438if (encryptedKey.CipherData == null || encryptedKey.CipherData.CipherValue == null) 443return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, privateKey, fOAEP); 490if (encryptedKey.CipherData == null || encryptedKey.CipherData.CipherValue == null) 495return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, symAlg); 550ek.CipherData.CipherValue = EncryptedXml.EncryptKey(aes.Key, rsaPublicKey, false); 555ed.CipherData.CipherValue = EncryptData(inputElement, aes, false); 629ek.CipherData.CipherValue = (symKey == null ? EncryptedXml.EncryptKey(aes.Key, rsa, false) : EncryptedXml.EncryptKey(aes.Key, symKey)); 634ed.CipherData.CipherValue = EncryptData(inputElement, aes, false); 725byte[] cipherValue = GetCipherValue(encryptedData.CipherData);