From 7473d0948fbf8a5a344846b18f052b1bda831465 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Tue, 15 Aug 2023 16:51:31 -0300 Subject: [PATCH] Revert "fix(deps): update rust crate rust-argon2 to v2 (#552)" This reverts commit 83148da959b97d4cccbe462b479132f1accb3dd2. --- Cargo.lock | 21 ++------------------- plugins/stronghold/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6dc4909571..84e08d43cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -752,12 +752,6 @@ 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" @@ -2168,7 +2162,7 @@ dependencies = [ "bincode", "hkdf", "iota-crypto 0.15.3", - "rust-argon2 1.0.0", + "rust-argon2", "serde", "stronghold-derive", "stronghold-utils", @@ -3591,17 +3585,6 @@ 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" @@ -4789,7 +4772,7 @@ dependencies = [ "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.6.4", - "rust-argon2 2.0.0", + "rust-argon2", "rusty-fork", "serde", "serde_json", diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index bb5fa87973..5952fb1bf8 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 = "2", optional = true } +rust-argon2 = { version = "1", optional = true } rand_chacha = { version = "0.3.1", optional = true } rand_core = { version = "0.6.4", features = ["getrandom"], optional = true }