2 implementations of Descriptor
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
126
public IAuthenticatedEncryptorDescriptor
Descriptor
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
114
public IAuthenticatedEncryptorDescriptor
Descriptor
=> throw new NotImplementedException();
25 references to Descriptor
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
38
if (key.
Descriptor
is not AuthenticatedEncryptorDescriptor descriptor)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
38
if (key.
Descriptor
is not CngCbcAuthenticatedEncryptorDescriptor descriptor)
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
38
var descriptor = key.
Descriptor
as CngGcmAuthenticatedEncryptorDescriptor;
AuthenticatedEncryption\IAuthenticatedEncryptorFactory.cs (2)
15
/// Creates an <see cref="IAuthenticatedEncryptor"/> instance based on the given <see cref="IKey.
Descriptor
"/>.
19
/// For a given <see cref="IKey.
Descriptor
"/>, any two instances returned by this method should
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (1)
33
if (key.
Descriptor
is not ManagedAuthenticatedEncryptorDescriptor descriptor)
Microsoft.AspNetCore.DataProtection.Tests (19)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactoryTest.cs (2)
21
key.Setup(k => k.
Descriptor
).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object);
39
key.Setup(k => k.
Descriptor
).Returns(descriptor);
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactoryTest.cs (2)
21
key.Setup(k => k.
Descriptor
).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object);
39
key.Setup(k => k.
Descriptor
).Returns(descriptor);
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactoryTest.cs (2)
19
key.Setup(k => k.
Descriptor
).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object);
36
key.Setup(k => k.
Descriptor
).Returns(descriptor);
KeyManagement\KeyRingProviderTests.cs (1)
943
mockKey.Setup(o => o.
Descriptor
).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object);
KeyManagement\XmlKeyManagerTests.cs (12)
133
Assert.Same(expectedDescriptor, newKey.
Descriptor
);
231
Assert.Same(expectedDescriptor, newKey.
Descriptor
);
377
Assert.Same(descriptorA, keys[0].
Descriptor
);
383
Assert.Same(descriptorB, keys[1].
Descriptor
);
488
Assert.Same(expectedDescriptor, keys[0].
Descriptor
);
527
Assert.Same(expectedDescriptor, keys[0].
Descriptor
);
814
_ = createdKey.
Descriptor
;
829
_ = fetchedKey.
Descriptor
;
840
_ = fetchedKey2.
Descriptor
;
917
_ = fetchedKey.
Descriptor
;
927
_ = fetchedKey2.
Descriptor
;
1043
if (_associatedDescriptor != null && _associatedDescriptor != key.
Descriptor
)