2 references to EnsureValidKeyLength
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
135algorithmHandle.GetSupportedKeyLengths().EnsureValidKeyLength((uint)configuration.EncryptionAlgorithmKeySize);
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
101algorithmHandle.GetSupportedKeyLengths().EnsureValidKeyLength((uint)configuration.EncryptionAlgorithmKeySize);