Skip to content

chore(deps): bump rust-argon2 from 2.1.0 to 3.0.0 #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sha1 = "0.10.6"
sha2 = "0.10.9"
chacha20poly1305 = "0.10.1"
getrandom = "0.3.3"
rust-argon2 = "2.1.0"
rust-argon2 = "3.0.0"
scrypt = "0.11.0"
aes-gcm = "0.10.3"
hex = "0.4.3"
Expand Down
3 changes: 2 additions & 1 deletion src/crypto/cryptography.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use argon2::{Config, Variant, Version};
use argon2::{Config, ThreadMode, Variant, Version};
use chacha20poly1305::aead::Aead;
use chacha20poly1305::{Key, KeyInit, XChaCha20Poly1305, XNonce};
use color_eyre::eyre::{ErrReport, eyre};
Expand All @@ -18,6 +18,7 @@ const KEY_DERIVATION_CONFIG: Config = Config {
secret: &[],
ad: &[],
hash_length: XCHACHA20_POLY1305_KEY_LENGTH as u32,
thread_mode: ThreadMode::Sequential,
};

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