1 type derived from EncryptedXml
Microsoft.AspNetCore.DataProtection (1)
4 instantiations of EncryptedXml
Microsoft.AspNetCore.DataProtection (1)
Microsoft.Extensions.Configuration.Xml (1)
System.Security.Cryptography.Xml (2)
84 references to EncryptedXml
Microsoft.AspNetCore.DataProtection (7)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.Extensions.Configuration.Xml (3)
System.Security (1)
System.Security.Cryptography.Xml (69)
System\Security\Cryptography\Xml\EncryptedData.cs (7)
21nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
24Id = Utils.GetAttribute(value, "Id", EncryptedXml.XmlEncNamespaceUrl);
25Type = Utils.GetAttribute(value, "Type", EncryptedXml.XmlEncNamespaceUrl);
26MimeType = Utils.GetAttribute(value, "MimeType", EncryptedXml.XmlEncNamespaceUrl);
27Encoding = Utils.GetAttribute(value, "Encoding", EncryptedXml.XmlEncNamespaceUrl);
83XmlElement encryptedDataElement = (XmlElement)document.CreateElement("EncryptedData", EncryptedXml.XmlEncNamespaceUrl);
111XmlElement encryptionPropertiesElement = document.CreateElement("EncryptionProperties", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedKey.cs (10)
60nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
63Id = Utils.GetAttribute(value, "Id", EncryptedXml.XmlEncNamespaceUrl);
64Type = Utils.GetAttribute(value, "Type", EncryptedXml.XmlEncNamespaceUrl);
65MimeType = Utils.GetAttribute(value, "MimeType", EncryptedXml.XmlEncNamespaceUrl);
66Encoding = Utils.GetAttribute(value, "Encoding", EncryptedXml.XmlEncNamespaceUrl);
67Recipient = Utils.GetAttribute(value, "Recipient", EncryptedXml.XmlEncNamespaceUrl);
158XmlElement encryptedKeyElement = (XmlElement)document.CreateElement("EncryptedKey", EncryptedXml.XmlEncNamespaceUrl);
188XmlElement encryptionPropertiesElement = document.CreateElement("EncryptionProperties", EncryptedXml.XmlEncNamespaceUrl);
200XmlElement referenceListElement = document.CreateElement("ReferenceList", EncryptedXml.XmlEncNamespaceUrl);
211XmlElement carriedKeyNameElement = (XmlElement)document.CreateElement("CarriedKeyName", EncryptedXml.XmlEncNamespaceUrl);
System\Security\Cryptography\Xml\EncryptedXml.cs (26)
287case EncryptedXml.XmlEncDESUrl:
288case EncryptedXml.XmlEncTripleDESUrl:
291case EncryptedXml.XmlEncAES128Url:
292case EncryptedXml.XmlEncAES192Url:
293case EncryptedXml.XmlEncAES256Url:
336nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);
433return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (SymmetricAlgorithm)kek);
436fOAEP = (encryptedKey.EncryptionMethod != null && encryptedKey.EncryptionMethod.KeyAlgorithm == EncryptedXml.XmlEncRSAOAEPUrl);
437return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, (RSA)kek, fOAEP);
455fOAEP = (encryptedKey.EncryptionMethod != null && encryptedKey.EncryptionMethod.KeyAlgorithm == EncryptedXml.XmlEncRSAOAEPUrl);
456return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, privateKey, fOAEP);
508return EncryptedXml.DecryptKey(encryptedKey.CipherData.CipherValue, symAlg);
564ed.Type = EncryptedXml.XmlEncElementUrl;
565ed.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncAES256Url);
569ek.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncRSA15Url);
575ek.CipherData.CipherValue = EncryptedXml.EncryptKey(aes.Key, rsaPublicKey, false);
616ed.Type = EncryptedXml.XmlEncElementUrl;
617ed.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncAES256Url);
623encryptionMethod = EncryptedXml.XmlEncRSA15Url;
628encryptionMethod = EncryptedXml.XmlEncTripleDESKeyWrapUrl;
638encryptionMethod = EncryptedXml.XmlEncAES128KeyWrapUrl;
641encryptionMethod = EncryptedXml.XmlEncAES192KeyWrapUrl;
644encryptionMethod = EncryptedXml.XmlEncAES256KeyWrapUrl;
660ek.CipherData.CipherValue = (symKey == null ? EncryptedXml.EncryptKey(aes.Key, rsa, false) : EncryptedXml.EncryptKey(aes.Key, symKey));
680nsm.AddNamespace("enc", EncryptedXml.XmlEncNamespaceUrl);