8 writes to EncryptionAlgorithmKeySize
Microsoft.AspNetCore.DataProtection (3)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
99EncryptionAlgorithmKeySize = GetAlgorithmKeySizeInBits(authenticatedConfiguration.EncryptionAlgorithm),
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializer.cs (1)
36configuration.EncryptionAlgorithmKeySize = (int)encryptionElement.Attribute("keyLength")!;
RegistryPolicyResolver.cs (1)
186options.EncryptionAlgorithmKeySize = Convert.ToInt32(valueFromRegistry, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DataProtection.Tests (5)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (2)
27EncryptionAlgorithmKeySize = 192, 61EncryptionAlgorithmKeySize = 192,
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorTests.cs (2)
19EncryptionAlgorithmKeySize = 2048, 51EncryptionAlgorithmKeySize = 2048,
RegistryPolicyResolverTests.cs (1)
236EncryptionAlgorithmKeySize = 2048,
9 references to EncryptionAlgorithmKeySize
Microsoft.AspNetCore.DataProtection (5)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptor.cs (1)
47new XAttribute("keyLength", Configuration.EncryptionAlgorithmKeySize));
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (3)
54symmetricAlgorithmKeySizeInBytes: configuration.EncryptionAlgorithmKeySize / 8, 90if (configuration.EncryptionAlgorithmKeySize < 0) 92throw Error.Common_PropertyMustBeNonNegative(nameof(configuration.EncryptionAlgorithmKeySize));
RegistryPolicyResolver.cs (1)
183valueFromRegistry = key.GetValue(nameof(ManagedAuthenticatedEncryptorConfiguration.EncryptionAlgorithmKeySize));
Microsoft.AspNetCore.DataProtection.Tests (4)
RegistryPolicyResolverTests.cs (4)
217Assert.Equal(expectedConfiguration.EncryptionAlgorithmKeySize, actualConfiguration.EncryptionAlgorithmKeySize); 247Assert.Equal(expectedConfiguration.EncryptionAlgorithmKeySize, actualConfiguration.EncryptionAlgorithmKeySize);