7 writes to EncryptionAlgorithmKeySize
Microsoft.AspNetCore.DataProtection (3)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
87EncryptionAlgorithmKeySize = GetAlgorithmKeySizeInBits(authenticatedConfiguration.EncryptionAlgorithm),
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs (1)
37configuration.EncryptionAlgorithmKeySize = (int)encryptionElement.Attribute("keyLength")!;
RegistryPolicyResolver.cs (1)
132options.EncryptionAlgorithmKeySize = Convert.ToInt32(valueFromRegistry, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DataProtection.Tests (4)
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
26EncryptionAlgorithmKeySize = 192,
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorTests.cs (2)
18EncryptionAlgorithmKeySize = 2048, 48EncryptionAlgorithmKeySize = 2048,
RegistryPolicyResolverTests.cs (1)
128EncryptionAlgorithmKeySize = 2048,
11 references to EncryptionAlgorithmKeySize
Microsoft.AspNetCore.DataProtection (7)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (5)
62symmetricAlgorithmKeySizeInBytes: (uint)(configuration.EncryptionAlgorithmKeySize / 8), 108if (configuration.EncryptionAlgorithmKeySize < 0) 110throw Error.Common_PropertyMustBeNonNegative(nameof(configuration.EncryptionAlgorithmKeySize)); 132AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)configuration.EncryptionAlgorithmKeySize)); 135algorithmHandle.GetSupportedKeyLengths().EnsureValidKeyLength((uint)configuration.EncryptionAlgorithmKeySize);
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptor.cs (1)
48new XAttribute("keyLength", Configuration.EncryptionAlgorithmKeySize));
RegistryPolicyResolver.cs (1)
129valueFromRegistry = key.GetValue(nameof(CngCbcAuthenticatedEncryptorConfiguration.EncryptionAlgorithmKeySize));
Microsoft.AspNetCore.DataProtection.Tests (4)
RegistryPolicyResolverTests.cs (4)
105Assert.Equal(expectedConfiguration.EncryptionAlgorithmKeySize, actualConfiguration.EncryptionAlgorithmKeySize); 141Assert.Equal(expectedConfiguration.EncryptionAlgorithmKeySize, actualConfiguration.EncryptionAlgorithmKeySize);