2 implementations of CreateEncryptor
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
183
public IAuthenticatedEncryptor?
CreateEncryptor
()
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
116
public IAuthenticatedEncryptor
CreateEncryptor
()
8 references to CreateEncryptor
Microsoft.AspNetCore.DataProtection (5)
KeyManagement\DefaultKeyResolver.cs (1)
100
var encryptorInstance = key.
CreateEncryptor
();
KeyManagement\Internal\DefaultKeyResolution.cs (2)
16
/// If this property is non-null, its <see cref="IKey.
CreateEncryptor
()"/> method will succeed
27
/// If this property is non-null, its <see cref="IKey.
CreateEncryptor
()"/> method will succeed
KeyManagement\KeyRing.cs (1)
86
encryptor = _key.
CreateEncryptor
();
KeyManagement\KeyRingProvider.cs (1)
176
Debug.Assert(defaultKey.
CreateEncryptor
() != null);
Microsoft.AspNetCore.DataProtection.Tests (3)
KeyManagement\DefaultKeyResolverTests.cs (2)
468
mockKey.Setup(o => o.
CreateEncryptor
()).Throws(new Exception("This method fails."));
472
mockKey.Setup(o => o.
CreateEncryptor
()).Returns(Mock.Of<IAuthenticatedEncryptor>());
KeyManagement\KeyRingProviderTests.cs (1)
944
mockKey.Setup(o => o.
CreateEncryptor
()).Returns(new Mock<IAuthenticatedEncryptor>().Object);