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