1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-29 17:38:04 +01:00

[PM-8870] Fix argon2 in desktop (#9628)

This commit is contained in:
Daniel García 2024-06-14 11:36:26 +02:00 committed by GitHub
parent fb4987b7b1
commit e3b425069c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,7 @@ import { WindowMain } from "./main/window.main";
import { BiometricsService, BiometricsServiceAbstraction } from "./platform/main/biometric/index"; import { BiometricsService, BiometricsServiceAbstraction } from "./platform/main/biometric/index";
import { ClipboardMain } from "./platform/main/clipboard.main"; import { ClipboardMain } from "./platform/main/clipboard.main";
import { DesktopCredentialStorageListener } from "./platform/main/desktop-credential-storage-listener"; import { DesktopCredentialStorageListener } from "./platform/main/desktop-credential-storage-listener";
import { MainCryptoFunctionService } from "./platform/main/main-crypto-function.service";
import { DesktopSettingsService } from "./platform/services/desktop-settings.service"; import { DesktopSettingsService } from "./platform/services/desktop-settings.service";
import { ElectronLogMainService } from "./platform/services/electron-log.main.service"; import { ElectronLogMainService } from "./platform/services/electron-log.main.service";
import { ElectronStorageService } from "./platform/services/electron-storage.service"; import { ElectronStorageService } from "./platform/services/electron-storage.service";
@ -52,6 +53,7 @@ export class Main {
environmentService: DefaultEnvironmentService; environmentService: DefaultEnvironmentService;
desktopCredentialStorageListener: DesktopCredentialStorageListener; desktopCredentialStorageListener: DesktopCredentialStorageListener;
desktopSettingsService: DesktopSettingsService; desktopSettingsService: DesktopSettingsService;
mainCryptoFunctionService: MainCryptoFunctionService;
migrationRunner: MigrationRunner; migrationRunner: MigrationRunner;
windowMain: WindowMain; windowMain: WindowMain;
@ -111,6 +113,9 @@ export class Main {
this.i18nService = new I18nMainService("en", "./locales/", globalStateProvider); this.i18nService = new I18nMainService("en", "./locales/", globalStateProvider);
this.mainCryptoFunctionService = new MainCryptoFunctionService();
this.mainCryptoFunctionService.init();
const accountService = new AccountServiceImplementation( const accountService = new AccountServiceImplementation(
MessageSender.EMPTY, MessageSender.EMPTY,
this.logService, this.logService,