7 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)!;
Microsoft.AspNetCore.DataProtection.Tests (4)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
25
EncryptionAlgorithm
= Constants.BCRYPT_AES_ALGORITHM,
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorTests.cs (2)
17
EncryptionAlgorithm
= "enc-alg",
47
EncryptionAlgorithm
= "enc-alg",
RegistryPolicyResolverTests.cs (1)
127
EncryptionAlgorithm
= "enc-alg",
10 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
));
Microsoft.AspNetCore.DataProtection.Tests (4)
RegistryPolicyResolverTests.cs (4)
104
Assert.Equal(expectedConfiguration.
EncryptionAlgorithm
, actualConfiguration.
EncryptionAlgorithm
);
140
Assert.Equal(expectedConfiguration.
EncryptionAlgorithm
, actualConfiguration.
EncryptionAlgorithm
);