6 writes to EncryptionMethod
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\EncryptedData.cs (1)
29EncryptionMethod = new EncryptionMethod();
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
69EncryptionMethod = new EncryptionMethod();
System\Security\Cryptography\Xml\EncryptedXml.cs (4)
541ed.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncAES256Url); 545ek.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncRSA15Url); 587ed.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncAES256Url); 624ek.EncryptionMethod = new EncryptionMethod(encryptionMethod);
16 references to EncryptionMethod
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\EncryptedXmlDecryptor.cs (1)
160var useOAEP = encryptedKey.EncryptionMethod?.KeyAlgorithm == XmlEncRSAOAEPUrl;
System.Security.Cryptography.Xml (15)
System\Security\Cryptography\Xml\EncryptedData.cs (3)
31EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 93if (EncryptionMethod != null) 94encryptedDataElement.AppendChild(EncryptionMethod.GetXml(document));
System\Security\Cryptography\Xml\EncryptedKey.cs (3)
71EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 170if (EncryptionMethod != null) 171encryptedKeyElement.AppendChild(EncryptionMethod.GetXml(document));
System\Security\Cryptography\Xml\EncryptedXml.cs (9)
275if (encryptedData.EncryptionMethod == null) 277symmetricAlgorithmUri = encryptedData.EncryptionMethod.KeyAlgorithm; 368if (encryptedData.EncryptionMethod == null) 370symmetricAlgorithmUri = encryptedData.EncryptionMethod.KeyAlgorithm; 424fOAEP = (encryptedKey.EncryptionMethod != null && encryptedKey.EncryptionMethod.KeyAlgorithm == EncryptedXml.XmlEncRSAOAEPUrl); 443fOAEP = (encryptedKey.EncryptionMethod != null && encryptedKey.EncryptionMethod.KeyAlgorithm == EncryptedXml.XmlEncRSAOAEPUrl); 485SymmetricAlgorithm? symAlg = CryptoHelpers.CreateNonTransformFromName<SymmetricAlgorithm>(encryptedKey.EncryptionMethod!.KeyAlgorithm);