1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-08 00:31:27 +01:00

Add tests for invalid kdf types

This commit is contained in:
Bernd Schoolmann 2025-01-31 12:28:26 +01:00
parent 853e2261fa
commit 0ca2caa7cf
No known key found for this signature in database

View File

@ -36,6 +36,8 @@ public class MasterPasswordUnlockDataModelTests
[InlineData(KdfType.PBKDF2_SHA256, 5000, 0, null)]
[InlineData(KdfType.PBKDF2_SHA256, 5000, null, 0)]
[InlineData(KdfType.PBKDF2_SHA256, 5000, 0, 0)]
[InlineData((KdfType)2, 100000, null, null)]
[InlineData((KdfType)2, 2, 64, 4)]
public void Validate_Failure(KdfType kdfType, int kdfIterations, int? kdfMemory, int? kdfParallelism)
{
var model = new MasterPasswordUnlockDataModel