2 instantiations of ManagedAuthenticatedEncryptorDescriptor
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorConfiguration.cs (1)
64
return new
ManagedAuthenticatedEncryptorDescriptor
(this, secret);
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializer.cs (1)
43
return new
ManagedAuthenticatedEncryptorDescriptor
(configuration, masterKey);
19 references to ManagedAuthenticatedEncryptorDescriptor
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptor.cs (1)
18
/// Initializes a new instance of <see cref="
ManagedAuthenticatedEncryptorDescriptor
"/>.
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializer.cs (2)
14
/// of an <see cref="
ManagedAuthenticatedEncryptorDescriptor
"/>.
19
/// Imports the <see cref="
ManagedAuthenticatedEncryptorDescriptor
"/> from serialized XML.
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (1)
33
if (key.Descriptor is not
ManagedAuthenticatedEncryptorDescriptor
descriptor)
EphemeralDataProtectionProvider.cs (2)
113
var
descriptor = (
ManagedAuthenticatedEncryptorDescriptor
)new T().CreateNewDescriptor();
Microsoft.AspNetCore.DataProtection.Tests (13)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorConfigurationTests.cs (4)
15
var masterKey1 = ((
ManagedAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor()).MasterKey;
16
var masterKey2 = ((
ManagedAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor()).MasterKey;
31
var
descriptor = (
ManagedAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor();
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (7)
23
var
descriptor = new ManagedAuthenticatedEncryptorDescriptor(
42
var test = CreateEncryptorInstanceFromDescriptor(deserializedDescriptor as
ManagedAuthenticatedEncryptorDescriptor
);
57
var
descriptor = new ManagedAuthenticatedEncryptorDescriptor(
76
var test = CreateEncryptorInstanceFromDescriptor(deserializedDescriptor as
ManagedAuthenticatedEncryptorDescriptor
);
103
var
managedDescriptor = (
ManagedAuthenticatedEncryptorDescriptor
)deserializedDescriptor;
149
private static IAuthenticatedEncryptor CreateEncryptorInstanceFromDescriptor(
ManagedAuthenticatedEncryptorDescriptor
descriptor)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorTests.cs (2)
16
var
descriptor = new ManagedAuthenticatedEncryptorDescriptor(new ManagedAuthenticatedEncryptorConfiguration()
48
var
descriptor = new ManagedAuthenticatedEncryptorDescriptor(new ManagedAuthenticatedEncryptorConfiguration()