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