Skip to content

Commit c9f8d75

Browse files
committed
cleanup
1 parent 1b75d73 commit c9f8d75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/core/encryption/derivekey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ func deriveKey(password string, salt []byte, size uint32) []byte {
1414
1, // iterations
1515
64*1024, // memory (64 MB)
1616
4, // threads
17-
size, // 32 bytes for AES-256
17+
size,
1818
)
1919
}

pkg/core/encryption/derivekey_wasm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ func deriveKey(password string, salt []byte, size uint32) []byte {
1414
[]byte(password),
1515
salt,
1616
1, // iterations
17-
16*1024, // memory (64 MB)
18-
1, // threads
17+
16*1024, // memory (16 MB)
18+
1, // 1 thread in browser
1919
size,
2020
)
2121
}

0 commit comments

Comments
 (0)