5 implementations of CreateEncryptorInstance
Microsoft.AspNetCore.DataProtection (4)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
36public IAuthenticatedEncryptor? CreateEncryptorInstance(IKey key)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
36public IAuthenticatedEncryptor? CreateEncryptorInstance(IKey key)
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
36public IAuthenticatedEncryptor? CreateEncryptorInstance(IKey key)
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (1)
31public IAuthenticatedEncryptor? CreateEncryptorInstance(IKey key)
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\XmlKeyManagerTests.cs (1)
1041public IAuthenticatedEncryptor CreateEncryptorInstance(IKey key)
12 references to CreateEncryptorInstance
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
189var encryptor = factory.CreateEncryptorInstance(this);
Microsoft.AspNetCore.DataProtection.Tests (11)
KeyManagement\KeyRingBasedDataProtectorTests.cs (9)
204mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object); 232mockEncryptorFactory.Setup(m => m.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object); 257mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object); 288mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object); 324mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object); 391mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object); 432mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(mockEncryptor.Object); 479mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(mockEncryptor.Object); 528mockEncryptorFactory.Setup(o => o.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(mockEncryptor.Object);
KeyManagement\KeyRingProviderTests.cs (2)
881mockEncryptorFactory.Setup(m => m.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object); 898mockEncryptorFactory.Setup(m => m.CreateEncryptorInstance(It.IsAny<IKey>())).Returns(new Mock<IAuthenticatedEncryptor>().Object);