4 references to EnsureValidKeyLength
Microsoft.AspNetCore.Cryptography.Internal.Tests (2)
Cng\BCRYPT_KEY_LENGTHS_STRUCT_Tests.cs (2)
28keyLengthsStruct.EnsureValidKeyLength((uint)testValue); 52() => keyLengthsStruct.EnsureValidKeyLength((uint)testValue),
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
135algorithmHandle.GetSupportedKeyLengths().EnsureValidKeyLength((uint)configuration.EncryptionAlgorithmKeySize);
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
101algorithmHandle.GetSupportedKeyLengths().EnsureValidKeyLength((uint)configuration.EncryptionAlgorithmKeySize);