2 writes to CipherData
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\EncryptedData.cs (1)
47CipherData = new CipherData();
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
83CipherData = 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)
48CipherData.LoadXml((cipherDataNode as XmlElement)!); 109if (CipherData == null) 111encryptedDataElement.AppendChild(CipherData.GetXml(document));
System\Security\Cryptography\Xml\EncryptedKey.cs (3)
84CipherData.LoadXml((cipherDataNode as XmlElement)!); 182if (CipherData == null) 184encryptedKeyElement.AppendChild(CipherData.GetXml(document));
System\Security\Cryptography\Xml\EncryptedXml.cs (16)
320byte[] cipherValue = GetCipherValue(encryptedData.CipherData); 440if (encryptedKey.CipherData == null || encryptedKey.CipherData.CipherValue == null) 446return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (SymmetricAlgorithm)kek); 450return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (RSA)kek, fOAEP); 464if (encryptedKey.CipherData == null || encryptedKey.CipherData.CipherValue == null) 469return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, privateKey, fOAEP); 516if (encryptedKey.CipherData == null || encryptedKey.CipherData.CipherValue == null) 521return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, symAlg); 576ek.CipherData.CipherValue = EncryptedXml.EncryptKey(aes.Key, rsaPublicKey, false); 581ed.CipherData.CipherValue = EncryptData(inputElement, aes, false); 655ek.CipherData.CipherValue = (symKey == null ? EncryptedXml.EncryptKey(aes.Key, rsa, false) : EncryptedXml.EncryptKey(aes.Key, symKey)); 660ed.CipherData.CipherValue = EncryptData(inputElement, aes, false); 751byte[] cipherValue = GetCipherValue(encryptedData.CipherData);