6 writes to EncryptionMethod
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\EncryptedData.cs (1)
32EncryptionMethod = new EncryptionMethod();
System\Security\Cryptography\Xml\EncryptedKey.cs (1)
72EncryptionMethod = new EncryptionMethod();
System\Security\Cryptography\Xml\EncryptedXml.cs (4)
565ed.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncAES256Url); 569ek.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncRSA15Url); 617ed.EncryptionMethod = new EncryptionMethod(EncryptedXml.XmlEncAES256Url); 654ek.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)
34EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 96if (EncryptionMethod != null) 97encryptedDataElement.AppendChild(EncryptionMethod.GetXml(document));
System\Security\Cryptography\Xml\EncryptedKey.cs (3)
74EncryptionMethod.LoadXml((encryptionMethodNode as XmlElement)!); 173if (EncryptionMethod != null) 174encryptedKeyElement.AppendChild(EncryptionMethod.GetXml(document));
System\Security\Cryptography\Xml\EncryptedXml.cs (9)
281if (encryptedData.EncryptionMethod == null) 283symmetricAlgorithmUri = encryptedData.EncryptionMethod.KeyAlgorithm; 377if (encryptedData.EncryptionMethod == null) 379symmetricAlgorithmUri = encryptedData.EncryptionMethod.KeyAlgorithm; 436fOAEP = (encryptedKey.EncryptionMethod != null && encryptedKey.EncryptionMethod.KeyAlgorithm == EncryptedXml.XmlEncRSAOAEPUrl); 455fOAEP = (encryptedKey.EncryptionMethod != null && encryptedKey.EncryptionMethod.KeyAlgorithm == EncryptedXml.XmlEncRSAOAEPUrl); 497SymmetricAlgorithm? symAlg = CryptoHelpers.CreateNonTransformFromName<SymmetricAlgorithm>(encryptedKey.EncryptionMethod!.KeyAlgorithm);