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