6 references to ManagedAlgorithmHelpers
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptor.cs (2)
46
new XAttribute("algorithm",
ManagedAlgorithmHelpers
.TypeToFriendlyName(Configuration.EncryptionAlgorithmType)),
50
new XAttribute("algorithm",
ManagedAlgorithmHelpers
.TypeToFriendlyName(Configuration.ValidationAlgorithmType)));
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializer.cs (2)
35
configuration.EncryptionAlgorithmType =
ManagedAlgorithmHelpers
.FriendlyNameToType((string)encryptionElement.Attribute("algorithm")!);
39
configuration.ValidationAlgorithmType =
ManagedAlgorithmHelpers
.FriendlyNameToType((string)validationElement.Attribute("algorithm")!);
RegistryPolicyResolver.cs (2)
180
options.EncryptionAlgorithmType =
ManagedAlgorithmHelpers
.FriendlyNameToType(Convert.ToString(valueFromRegistry, CultureInfo.InvariantCulture)!);
192
options.ValidationAlgorithmType =
ManagedAlgorithmHelpers
.FriendlyNameToType(Convert.ToString(valueFromRegistry, CultureInfo.InvariantCulture)!);