2 implementations of CreateEncryptor
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
183public IAuthenticatedEncryptor? CreateEncryptor()
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
116public IAuthenticatedEncryptor CreateEncryptor()
8 references to CreateEncryptor
Microsoft.AspNetCore.DataProtection (5)
KeyManagement\DefaultKeyResolver.cs (1)
100var 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)
86encryptor = _key.CreateEncryptor();
KeyManagement\KeyRingProvider.cs (1)
176Debug.Assert(defaultKey.CreateEncryptor() != null);
Microsoft.AspNetCore.DataProtection.Tests (3)
KeyManagement\DefaultKeyResolverTests.cs (2)
468mockKey.Setup(o => o.CreateEncryptor()).Throws(new Exception("This method fails.")); 472mockKey.Setup(o => o.CreateEncryptor()).Returns(Mock.Of<IAuthenticatedEncryptor>());
KeyManagement\KeyRingProviderTests.cs (1)
944mockKey.Setup(o => o.CreateEncryptor()).Returns(new Mock<IAuthenticatedEncryptor>().Object);