6 writes to EncryptionAlgorithm
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs (1)
35
configuration.
EncryptionAlgorithm
= (string)encryptionElement.Attribute("algorithm")!;
RegistryPolicyResolver.cs (1)
156
options.
EncryptionAlgorithm
= Convert.ToString(valueFromRegistry, CultureInfo.InvariantCulture)!;
Microsoft.AspNetCore.DataProtection.Tests (4)
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
25
EncryptionAlgorithm
= Constants.BCRYPT_AES_ALGORITHM,
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorTests.cs (2)
17
EncryptionAlgorithm
= "enc-alg",
44
EncryptionAlgorithm
= "enc-alg",
RegistryPolicyResolverTests.cs (1)
183
EncryptionAlgorithm
= "enc-alg",
10 references to EncryptionAlgorithm
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (4)
71
if (String.IsNullOrEmpty(configuration.
EncryptionAlgorithm
))
82
_logger.OpeningCNGAlgorithmFromProviderWithChainingModeGCM(configuration.
EncryptionAlgorithm
, configuration.EncryptionAlgorithmProvider);
86
if (configuration.
EncryptionAlgorithm
== Constants.BCRYPT_AES_ALGORITHM) { algorithmHandle = CachedAlgorithmHandles.AES_GCM; }
92
algorithmHandle = BCryptAlgorithmHandle.OpenAlgorithmHandle(configuration.
EncryptionAlgorithm
, configuration.EncryptionAlgorithmProvider);
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptor.cs (1)
46
new XAttribute("algorithm", Configuration.
EncryptionAlgorithm
),
RegistryPolicyResolver.cs (1)
153
var valueFromRegistry = key.GetValue(nameof(CngGcmAuthenticatedEncryptorConfiguration.
EncryptionAlgorithm
));
Microsoft.AspNetCore.DataProtection.Tests (4)
RegistryPolicyResolverTests.cs (4)
164
Assert.Equal(expectedConfiguration.
EncryptionAlgorithm
, actualConfiguration.
EncryptionAlgorithm
);
194
Assert.Equal(expectedConfiguration.
EncryptionAlgorithm
, actualConfiguration.
EncryptionAlgorithm
);