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