adjust default kdf iterations to 350k (#4482)

* adjust default kdf iterations to 350k

* update test
This commit is contained in:
Kyle Spearrin 2023-01-18 13:20:14 -05:00 committed by GitHub
parent a6308042b6
commit dbb0bbb91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
import { CryptoFunctionService } from "@bitwarden/common/abstractions/cryptoFunction.service";
import { FolderService } from "@bitwarden/common/abstractions/folder/folder.service.abstraction";
import { CipherType } from "@bitwarden/common/enums/cipherType";
import { KdfType } from "@bitwarden/common/enums/kdfType";
import { KdfType, DEFAULT_KDF_ITERATIONS } from "@bitwarden/common/enums/kdfType";
import { Utils } from "@bitwarden/common/misc/utils";
import { Cipher } from "@bitwarden/common/models/domain/cipher";
import { EncString } from "@bitwarden/common/models/domain/enc-string";
@ -232,7 +232,7 @@ describe("ExportService", () => {
});
it("specifies kdfIterations", () => {
expect(exportObject.kdfIterations).toEqual(100000);
expect(exportObject.kdfIterations).toEqual(DEFAULT_KDF_ITERATIONS);
});
it("has kdfType", () => {

View File

@ -3,5 +3,5 @@ export enum KdfType {
}
export const DEFAULT_KDF_TYPE = KdfType.PBKDF2_SHA256;
export const DEFAULT_KDF_ITERATIONS = 100000;
export const DEFAULT_KDF_ITERATIONS = 350000;
export const SEND_KDF_ITERATIONS = 100000;