2 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);
7 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));