Skip to content

Commit 87ec8b3

Browse files
committed
chore: fix breaking change on rust argon-2 dependency
1 parent 2d2f2f5 commit 87ec8b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crypto/cryptography.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use argon2::{Config, Variant, Version};
1+
use argon2::{Config, ThreadMode, Variant, Version};
22
use chacha20poly1305::aead::Aead;
33
use chacha20poly1305::{Key, KeyInit, XChaCha20Poly1305, XNonce};
44
use color_eyre::eyre::{ErrReport, eyre};
@@ -18,6 +18,7 @@ const KEY_DERIVATION_CONFIG: Config = Config {
1818
secret: &[],
1919
ad: &[],
2020
hash_length: XCHACHA20_POLY1305_KEY_LENGTH as u32,
21+
thread_mode: ThreadMode::Sequential,
2122
};
2223

2324
pub fn argon_derive_key(password_bytes: &[u8], salt: &[u8]) -> color_eyre::Result<Vec<u8>> {

0 commit comments

Comments
 (0)