diff --git a/Cargo.lock b/Cargo.lock index 56a7b4ba7f..7dcc77df1b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -752,6 +752,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" @@ -2162,7 +2168,7 @@ dependencies = [ "bincode", "hkdf", "iota-crypto 0.15.3", - "rust-argon2", + "rust-argon2 1.0.0", "serde", "stronghold-derive", "stronghold-utils", @@ -3587,6 +3593,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" @@ -4774,7 +4791,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 }