7 implementations of Encrypt
CustomEncryptorSample (1)
CustomXmlEncryptor.cs (1)
20
public EncryptedXmlInfo
Encrypt
(XElement plaintextElement)
KeyManagementSimulator (1)
Program.cs (1)
557
EncryptedXmlInfo IXmlEncryptor.
Encrypt
(XElement plaintextElement)
Microsoft.AspNetCore.DataProtection (5)
Internal\KeyManagementOptionsPostSetup.cs (1)
99
EncryptedXmlInfo IXmlEncryptor.
Encrypt
(XElement plaintextElement)
XmlEncryption\CertificateXmlEncryptor.cs (1)
67
public EncryptedXmlInfo
Encrypt
(XElement plaintextElement)
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
57
public EncryptedXmlInfo
Encrypt
(XElement plaintextElement)
XmlEncryption\DpapiXmlEncryptor.cs (1)
50
public EncryptedXmlInfo
Encrypt
(XElement plaintextElement)
XmlEncryption\NullXmlEncryptor.cs (1)
45
public EncryptedXmlInfo
Encrypt
(XElement plaintextElement)
8 references to Encrypt
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\XmlEncryptionExtensions.cs (1)
132
var encryptedXmlInfo = encryptor.
Encrypt
(clonedElementWhichRequiresEncryption);
Microsoft.AspNetCore.DataProtection.Tests (7)
Internal\KeyManagementOptionsPostSetupTest.cs (2)
172
Assert.Throws<InvalidOperationException>(() => options.XmlEncryptor.
Encrypt
(xElement));
194
options.XmlEncryptor.
Encrypt
(xElement);
KeyManagement\XmlKeyManagerTests.cs (1)
785
.Setup(o => o.
Encrypt
(It.IsAny<XElement>()))
ServiceCollectionTests.cs (1)
106
Assert.Throws<InvalidOperationException>(() => options.XmlEncryptor.
Encrypt
(xElement));
XmlEncryption\XmlEncryptionExtensionsTests.cs (3)
217
mockXmlEncryptor.Setup(o => o.
Encrypt
(It.IsAny<XElement>())).Returns(new EncryptedXmlInfo(new XElement("theElement"), typeof(MyXmlDecryptor)));
264
.Setup(o => o.
Encrypt
(It.IsAny<XElement>()))
313
.Setup(o => o.
Encrypt
(It.IsAny<XElement>()))