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