1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

[PM-6419] Change desktop argon implementation for Node (#8048)

* Fix desktop argon2

* Don't remove wasm loading in renderer

* Fix electron-builder not including dependency
This commit is contained in:
Daniel García
2024-02-26 23:31:09 +01:00
committed by GitHub
parent f53af7c466
commit 996823169a
8 changed files with 91 additions and 4 deletions

View File

@@ -76,6 +76,17 @@ const nativeMessaging = {
},
};
const crypto = {
argon2: (
password: string | Uint8Array,
salt: string | Uint8Array,
iterations: number,
memory: number,
parallelism: number,
): Promise<Uint8Array> =>
ipcRenderer.invoke("crypto.argon2", { password, salt, iterations, memory, parallelism }),
};
export default {
versions: {
app: (): Promise<string> => ipcRenderer.invoke("appVersion"),
@@ -121,6 +132,7 @@ export default {
biometric,
clipboard,
nativeMessaging,
crypto,
};
function deviceType(): DeviceType {