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