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