2 instantiations of CngGcmAuthenticatedEncryptorDescriptor
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorConfiguration.cs (1)
61
return new
CngGcmAuthenticatedEncryptorDescriptor
(this, secret);
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs (1)
41
return new
CngGcmAuthenticatedEncryptorDescriptor
(configuration, masterKey);
15 references to CngGcmAuthenticatedEncryptorDescriptor
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (2)
38
var
descriptor = key.Descriptor as
CngGcmAuthenticatedEncryptorDescriptor
;
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptor.cs (1)
19
/// Initializes a new instance of <see cref="
CngGcmAuthenticatedEncryptorDescriptor
"/>.
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs (1)
14
/// of an <see cref="
CngGcmAuthenticatedEncryptorDescriptor
"/>.
EphemeralDataProtectionProvider.cs (2)
105
var
descriptor = (
CngGcmAuthenticatedEncryptorDescriptor
)new T().CreateNewDescriptor();
Microsoft.AspNetCore.DataProtection.Tests (9)
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorConfigurationTests.cs (4)
15
var masterKey1 = ((
CngGcmAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor()).MasterKey;
16
var masterKey2 = ((
CngGcmAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor()).MasterKey;
31
var
descriptor = (
CngGcmAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor();
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs (3)
22
var
descriptor = new CngGcmAuthenticatedEncryptorDescriptor(
38
var test = CreateEncryptorInstanceFromDescriptor(deserializedDescriptor as
CngGcmAuthenticatedEncryptorDescriptor
);
48
private static IAuthenticatedEncryptor CreateEncryptorInstanceFromDescriptor(
CngGcmAuthenticatedEncryptorDescriptor
descriptor)
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorTests.cs (2)
15
var
descriptor = new CngGcmAuthenticatedEncryptorDescriptor(new CngGcmAuthenticatedEncryptorConfiguration()
42
var
descriptor = new CngGcmAuthenticatedEncryptorDescriptor(new CngGcmAuthenticatedEncryptorConfiguration()