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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user