8 writes to EncryptionAlgorithmType
Microsoft.AspNetCore.DataProtection (3)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
98
EncryptionAlgorithmType
= GetManagedTypeFromEncryptionAlgorithm(authenticatedConfiguration.EncryptionAlgorithm),
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializer.cs (1)
35
configuration.
EncryptionAlgorithmType
= ManagedAlgorithmHelpers.FriendlyNameToType((string)encryptionElement.Attribute("algorithm")!);
RegistryPolicyResolver.cs (1)
180
options.
EncryptionAlgorithmType
= ManagedAlgorithmHelpers.FriendlyNameToType(Convert.ToString(valueFromRegistry, CultureInfo.InvariantCulture)!);
Microsoft.AspNetCore.DataProtection.Tests (5)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (2)
26
EncryptionAlgorithmType
= encryptionAlgorithmType,
60
EncryptionAlgorithmType
= typeof(Aes),
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorTests.cs (2)
18
EncryptionAlgorithmType
= typeof(MySymmetricAlgorithm),
50
EncryptionAlgorithmType
= encryptionAlgorithmType,
RegistryPolicyResolverTests.cs (1)
235
EncryptionAlgorithmType
= typeof(Aes),
12 references to EncryptionAlgorithmType
Microsoft.AspNetCore.DataProtection (8)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptor.cs (1)
46
new XAttribute("algorithm", ManagedAlgorithmHelpers.TypeToFriendlyName(Configuration.
EncryptionAlgorithmType
)),
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (6)
85
if (configuration.
EncryptionAlgorithmType
== null)
87
throw Error.Common_PropertyCannotBeNullOrEmpty(nameof(configuration.
EncryptionAlgorithmType
));
89
typeof(SymmetricAlgorithm).AssertIsAssignableFrom(configuration.
EncryptionAlgorithmType
);
95
_logger.UsingManagedSymmetricAlgorithm(configuration.
EncryptionAlgorithmType
.FullName!);
97
if (configuration.
EncryptionAlgorithmType
== typeof(Aes))
103
return AlgorithmActivator.CreateFactory<SymmetricAlgorithm>(configuration.
EncryptionAlgorithmType
);
RegistryPolicyResolver.cs (1)
177
var valueFromRegistry = key.GetValue(nameof(ManagedAuthenticatedEncryptorConfiguration.
EncryptionAlgorithmType
));
Microsoft.AspNetCore.DataProtection.Tests (4)
RegistryPolicyResolverTests.cs (4)
216
Assert.Equal(expectedConfiguration.
EncryptionAlgorithmType
, actualConfiguration.
EncryptionAlgorithmType
);
246
Assert.Equal(expectedConfiguration.
EncryptionAlgorithmType
, actualConfiguration.
EncryptionAlgorithmType
);