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:
parent
853e2261fa
commit
0ca2caa7cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user