From f7be870bfeecdaeb7c2fc0f1f8e59565894a51ff Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 6 Jul 2019 23:34:10 -0400 Subject: [PATCH] up KDF max to 2 million --- src/Core/Models/Api/Request/Accounts/KdfRequestModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Models/Api/Request/Accounts/KdfRequestModel.cs b/src/Core/Models/Api/Request/Accounts/KdfRequestModel.cs index 5684d28c6..ae9591b95 100644 --- a/src/Core/Models/Api/Request/Accounts/KdfRequestModel.cs +++ b/src/Core/Models/Api/Request/Accounts/KdfRequestModel.cs @@ -19,9 +19,9 @@ namespace Bit.Core.Models.Api switch(Kdf.Value) { case KdfType.PBKDF2_SHA256: - if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000) + if(KdfIterations.Value < 5000 || KdfIterations.Value > 2_000_000) { - yield return new ValidationResult("KDF iterations must be between 5000 and 1000000."); + yield return new ValidationResult("KDF iterations must be between 5000 and 2000000."); } break; default: