mirror of
https://github.com/bitwarden/server.git
synced 2025-07-06 10:32:49 -05:00
rename all to PBKDF2_SHA256
This commit is contained in:
@ -18,7 +18,7 @@ namespace Bit.Core.Models.Api
|
||||
{
|
||||
switch(Kdf.Value)
|
||||
{
|
||||
case KdfType.PBKDF2:
|
||||
case KdfType.PBKDF2_SHA256:
|
||||
if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000)
|
||||
{
|
||||
yield return new ValidationResult("KDF iterations must be between 5000 and 1000000.");
|
||||
|
@ -33,7 +33,7 @@ namespace Bit.Core.Models.Api
|
||||
Name = Name,
|
||||
Email = Email,
|
||||
MasterPasswordHint = MasterPasswordHint,
|
||||
Kdf = Kdf.GetValueOrDefault(KdfType.PBKDF2),
|
||||
Kdf = Kdf.GetValueOrDefault(KdfType.PBKDF2_SHA256),
|
||||
KdfIterations = KdfIterations.GetValueOrDefault(5000)
|
||||
};
|
||||
|
||||
@ -56,7 +56,7 @@ namespace Bit.Core.Models.Api
|
||||
{
|
||||
switch(Kdf.Value)
|
||||
{
|
||||
case KdfType.PBKDF2:
|
||||
case KdfType.PBKDF2_SHA256:
|
||||
if(KdfIterations.Value < 5000 || KdfIterations.Value > 1_000_000)
|
||||
{
|
||||
yield return new ValidationResult("KDF iterations must be between 5000 and 1000000.");
|
||||
|
Reference in New Issue
Block a user