mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
adjust default kdf iterations to 350k (#4482)
* adjust default kdf iterations to 350k * update test
This commit is contained in:
parent
a6308042b6
commit
dbb0bbb91c
@ -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", () => {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user