5 writes to HashAlgorithmProvider
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs (1)
42configuration.HashAlgorithmProvider = (string?)hashElement.Attribute("provider"); // could be null
RegistryPolicyResolver.cs (1)
144options.HashAlgorithmProvider = Convert.ToString(valueFromRegistry, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DataProtection.Tests (3)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
29HashAlgorithmProvider = null
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorTests.cs (1)
21HashAlgorithmProvider = "hash-alg-prov"
RegistryPolicyResolverTests.cs (1)
131HashAlgorithmProvider = "my-hash-alg-provider"
10 references to HashAlgorithmProvider
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (3)
75_logger.OpeningCNGAlgorithmFromProviderWithHMAC(configuration.HashAlgorithm, configuration.HashAlgorithmProvider); 79if (configuration.HashAlgorithmProvider == null) 89algorithmHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(configuration.HashAlgorithm, configuration.HashAlgorithmProvider, hmac: true);
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptor.cs (2)
56if (Configuration.HashAlgorithmProvider != null) 58hashElement.SetAttributeValue("provider", Configuration.HashAlgorithmProvider);
RegistryPolicyResolver.cs (1)
141valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.HashAlgorithmProvider));
Microsoft.AspNetCore.DataProtection.Tests (4)
RegistryPolicyResolverTests.cs (4)
108Assert.Equal(expectedConfiguration.HashAlgorithmProvider, actualConfiguration.HashAlgorithmProvider); 144Assert.Equal(expectedConfiguration.HashAlgorithmProvider, actualConfiguration.HashAlgorithmProvider);