3 writes to EncryptionAlgorithm
Microsoft.AspNetCore.DataProtection (3)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
86
EncryptionAlgorithm
= GetBCryptAlgorithmNameFromEncryptionAlgorithm(authenticatedConfiguration.EncryptionAlgorithm),
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs (1)
36
configuration.
EncryptionAlgorithm
= (string)encryptionElement.Attribute("algorithm")!;
RegistryPolicyResolver.cs (1)
120
options.
EncryptionAlgorithm
= Convert.ToString(valueFromRegistry, CultureInfo.InvariantCulture)!;
6 references to EncryptionAlgorithm
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (4)
104
if (String.IsNullOrEmpty(configuration.
EncryptionAlgorithm
))
113
_logger.OpeningCNGAlgorithmFromProviderWithChainingModeCBC(configuration.
EncryptionAlgorithm
, configuration.EncryptionAlgorithmProvider);
120
if (configuration.
EncryptionAlgorithm
== Constants.BCRYPT_AES_ALGORITHM) { algorithmHandle = CachedAlgorithmHandles.AES_CBC; }
126
algorithmHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(configuration.
EncryptionAlgorithm
, configuration.EncryptionAlgorithmProvider);
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptor.cs (1)
47
new XAttribute("algorithm", Configuration.
EncryptionAlgorithm
),
RegistryPolicyResolver.cs (1)
117
var valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.
EncryptionAlgorithm
));