2 implementations of Descriptor
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
126public IAuthenticatedEncryptorDescriptor Descriptor
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
114public IAuthenticatedEncryptorDescriptor Descriptor => throw new NotImplementedException();
25 references to Descriptor
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
38if (key.Descriptor is not AuthenticatedEncryptorDescriptor descriptor)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
38if (key.Descriptor is not CngCbcAuthenticatedEncryptorDescriptor descriptor)
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
38var 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)
33if (key.Descriptor is not ManagedAuthenticatedEncryptorDescriptor descriptor)
Microsoft.AspNetCore.DataProtection.Tests (19)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactoryTest.cs (2)
21key.Setup(k => k.Descriptor).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object); 39key.Setup(k => k.Descriptor).Returns(descriptor);
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactoryTest.cs (2)
21key.Setup(k => k.Descriptor).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object); 39key.Setup(k => k.Descriptor).Returns(descriptor);
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactoryTest.cs (2)
19key.Setup(k => k.Descriptor).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object); 36key.Setup(k => k.Descriptor).Returns(descriptor);
KeyManagement\KeyRingProviderTests.cs (1)
943mockKey.Setup(o => o.Descriptor).Returns(new Mock<IAuthenticatedEncryptorDescriptor>().Object);
KeyManagement\XmlKeyManagerTests.cs (12)
133Assert.Same(expectedDescriptor, newKey.Descriptor); 231Assert.Same(expectedDescriptor, newKey.Descriptor); 377Assert.Same(descriptorA, keys[0].Descriptor); 383Assert.Same(descriptorB, keys[1].Descriptor); 488Assert.Same(expectedDescriptor, keys[0].Descriptor); 527Assert.Same(expectedDescriptor, keys[0].Descriptor); 814_ = createdKey.Descriptor; 829_ = fetchedKey.Descriptor; 840_ = fetchedKey2.Descriptor; 917_ = fetchedKey.Descriptor; 927_ = fetchedKey2.Descriptor; 1043if (_associatedDescriptor != null && _associatedDescriptor != key.Descriptor)