From 5c98c26ceda5a0be21b5e35e28ee04f1e2d35231 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 12:11:34 +0000 Subject: [PATCH] fix(deps): update rust crate rust-argon2 to v2 --- Cargo.lock | 21 +++++++++++++++++++-- plugins/stronghold/Cargo.toml | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cbf750e16a..34b20af11c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -772,6 +772,12 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21a53c0a4d288377e7415b53dcfc3c04da5cdc2cc95c8d5ac178b58f0b861ad6" +[[package]] +name = "constant_time_eq" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" + [[package]] name = "convert_case" version = "0.4.0" @@ -2195,7 +2201,7 @@ dependencies = [ "bincode", "hkdf", "iota-crypto 0.15.3", - "rust-argon2", + "rust-argon2 1.0.0", "serde", "stronghold-derive", "stronghold-utils", @@ -3727,6 +3733,17 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "rust-argon2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e71971821b3ae0e769e4a4328dbcb517607b434db7697e9aba17203ec14e46a" +dependencies = [ + "base64 0.21.2", + "blake2b_simd", + "constant_time_eq 0.3.0", +] + [[package]] name = "rustc-demangle" version = "0.1.23" @@ -4978,7 +4995,7 @@ dependencies = [ "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.6.4", - "rust-argon2", + "rust-argon2 2.0.0", "rusty-fork", "serde", "serde_json", diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index 5952fb1bf8..bb5fa87973 100644 --- a/plugins/stronghold/Cargo.toml +++ b/plugins/stronghold/Cargo.toml @@ -21,7 +21,7 @@ hex = "0.4" zeroize = { version = "1", features = ["zeroize_derive"] } # kdf dependencies -rust-argon2 = { version = "1", optional = true } +rust-argon2 = { version = "2", optional = true } rand_chacha = { version = "0.3.1", optional = true } rand_core = { version = "0.6.4", features = ["getrandom"], optional = true }