3 writes to EncryptionAlgorithm
Microsoft.AspNetCore.DataProtection (1)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorDeserializer.cs (1)
34
configuration.
EncryptionAlgorithm
= (EncryptionAlgorithm)Enum.Parse(typeof(EncryptionAlgorithm), (string)encryptionElement.Attribute("algorithm")!);
Microsoft.AspNetCore.DataProtection.Tests (2)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
21
EncryptionAlgorithm
= EncryptionAlgorithm.AES_192_CBC,
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (1)
192
EncryptionAlgorithm
= encryptionAlgorithm,
10 references to EncryptionAlgorithm
Microsoft.AspNetCore.DataProtection (10)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (6)
56
if (IsGcmAlgorithm(authenticatedConfiguration.
EncryptionAlgorithm
))
59
return new AesGcmAuthenticatedEncryptor(secret, GetAlgorithmKeySizeInBits(authenticatedConfiguration.
EncryptionAlgorithm
) / 8);
86
EncryptionAlgorithm = GetBCryptAlgorithmNameFromEncryptionAlgorithm(authenticatedConfiguration.
EncryptionAlgorithm
),
87
EncryptionAlgorithmKeySize = GetAlgorithmKeySizeInBits(authenticatedConfiguration.
EncryptionAlgorithm
),
98
EncryptionAlgorithmType = GetManagedTypeFromEncryptionAlgorithm(authenticatedConfiguration.
EncryptionAlgorithm
),
99
EncryptionAlgorithmKeySize = GetAlgorithmKeySizeInBits(authenticatedConfiguration.
EncryptionAlgorithm
),
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorConfiguration.cs (1)
27
/// This property is ignored if <see cref="
EncryptionAlgorithm
"/> specifies a 'GCM' algorithm.
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptor.cs (2)
44
new XAttribute("algorithm", Configuration.
EncryptionAlgorithm
));
46
var validationElement = (AuthenticatedEncryptorFactory.IsGcmAlgorithm(Configuration.
EncryptionAlgorithm
))
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorDeserializer.cs (1)
37
if (!AuthenticatedEncryptorFactory.IsGcmAlgorithm(configuration.
EncryptionAlgorithm
))