6 writes to EncryptionAlgorithmKeySize
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs (1)
36configuration.EncryptionAlgorithmKeySize = (int)encryptionElement.Attribute("keyLength")!;
RegistryPolicyResolver.cs (1)
168options.EncryptionAlgorithmKeySize = Convert.ToInt32(valueFromRegistry, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DataProtection.Tests (4)
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
26EncryptionAlgorithmKeySize = 192,
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorTests.cs (2)
18EncryptionAlgorithmKeySize = 2048, 45EncryptionAlgorithmKeySize = 2048
RegistryPolicyResolverTests.cs (1)
184EncryptionAlgorithmKeySize = 2048,
11 references to EncryptionAlgorithmKeySize
Microsoft.AspNetCore.DataProtection (7)
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (5)
64symmetricAlgorithmKeySizeInBytes: (uint)(configuration.EncryptionAlgorithmKeySize / 8)); 75if (configuration.EncryptionAlgorithmKeySize < 0) 77throw Error.Common_PropertyMustBeNonNegative(nameof(configuration.EncryptionAlgorithmKeySize)); 98AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)configuration.EncryptionAlgorithmKeySize)); 101algorithmHandle.GetSupportedKeyLengths().EnsureValidKeyLength((uint)configuration.EncryptionAlgorithmKeySize);
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptor.cs (1)
47new XAttribute("keyLength", Configuration.EncryptionAlgorithmKeySize));
RegistryPolicyResolver.cs (1)
165valueFromRegistry = key.GetValue(nameof(CngGcmAuthenticatedEncryptorConfiguration.EncryptionAlgorithmKeySize));
Microsoft.AspNetCore.DataProtection.Tests (4)
RegistryPolicyResolverTests.cs (4)
165Assert.Equal(expectedConfiguration.EncryptionAlgorithmKeySize, actualConfiguration.EncryptionAlgorithmKeySize); 195Assert.Equal(expectedConfiguration.EncryptionAlgorithmKeySize, actualConfiguration.EncryptionAlgorithmKeySize);