2 instantiations of CngCbcAuthenticatedEncryptorDescriptor
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorConfiguration.cs (1)
85
return new
CngCbcAuthenticatedEncryptorDescriptor
(this, secret);
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs (1)
46
return new
CngCbcAuthenticatedEncryptorDescriptor
(configuration, masterKey);
14 references to CngCbcAuthenticatedEncryptorDescriptor
Microsoft.AspNetCore.DataProtection (5)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
38
if (key.Descriptor is not
CngCbcAuthenticatedEncryptorDescriptor
descriptor)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptor.cs (1)
19
/// Initializes a new instance of <see cref="
CngCbcAuthenticatedEncryptorDescriptor
"/>.
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs (2)
14
/// of an <see cref="
CngCbcAuthenticatedEncryptorDescriptor
"/>.
20
/// Imports the <see cref="
CngCbcAuthenticatedEncryptorDescriptor
"/> from serialized XML.
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs (1)
20
/// Imports the <see cref="
CngCbcAuthenticatedEncryptorDescriptor
"/> from serialized XML.
Microsoft.AspNetCore.DataProtection.Tests (9)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorConfigurationTests.cs (4)
15
var masterKey1 = ((
CngCbcAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor()).MasterKey;
16
var masterKey2 = ((
CngCbcAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor()).MasterKey;
31
var
descriptor = (
CngCbcAuthenticatedEncryptorDescriptor
)configuration.CreateNewDescriptor();
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs (3)
22
var
descriptor = new CngCbcAuthenticatedEncryptorDescriptor(
41
var test = CreateEncryptorInstanceFromDescriptor(deserializedDescriptor as
CngCbcAuthenticatedEncryptorDescriptor
);
51
private static IAuthenticatedEncryptor CreateEncryptorInstanceFromDescriptor(
CngCbcAuthenticatedEncryptorDescriptor
descriptor)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorTests.cs (2)
15
var
descriptor = new CngCbcAuthenticatedEncryptorDescriptor(new CngCbcAuthenticatedEncryptorConfiguration()
45
var
descriptor = new CngCbcAuthenticatedEncryptorDescriptor(new CngCbcAuthenticatedEncryptorConfiguration()