Skip to content

Commit

Permalink
chore(deps): bump pbkdf2 from 0.11.0 to 0.12.2
Browse files Browse the repository at this point in the history
Bumps [pbkdf2](https://github.com/RustCrypto/password-hashes) from 0.11.0 to 0.12.2.
- [Commits](RustCrypto/password-hashes@pbkdf2-v0.11.0...pbkdf2-v0.12.2)

---
updated-dependencies:
- dependency-name: pbkdf2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and Phoenix500526 committed Mar 22, 2024
1 parent bf1f40e commit bdbabf2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions crates/curp/src/client/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ use std::{sync::Arc, time::Duration};
use futures::Future;
use tracing::{debug, warn};

use crate::rpc::{connect::ConnectApi, CurpError, Redirect};

use super::state::State;
use crate::rpc::{connect::ConnectApi, CurpError, Redirect};

/// Stream client config
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion crates/xline-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ curp = { path = "../curp" }
futures = "0.3.25"
getrandom = "0.2"
http = "0.2.9"
pbkdf2 = { version = "0.11.0", features = ["std"] }
pbkdf2 = { version = "0.12.2", features = ["simple"] }
thiserror = "1.0.37"
tokio = { version = "0.2.23", package = "madsim-tokio", features = ["sync"] }
tonic = { version = "0.4.1", package = "madsim-tonic" }
Expand Down
2 changes: 1 addition & 1 deletion crates/xline-client/src/clients/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ impl AuthClient {
let salt = SaltString::generate(&mut OsRng);
#[allow(clippy::panic)] // This doesn't seems to be fallible
let hashed_password = Pbkdf2
.hash_password(password, salt.as_ref())
.hash_password(password, &salt)
.unwrap_or_else(|e| panic!("Failed to hash password: {e}"));
hashed_password.to_string()
}
Expand Down
2 changes: 1 addition & 1 deletion crates/xline/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ opentelemetry-otlp = { version = "0.14.0", features = [
opentelemetry-prometheus = { version = "0.14.1" }
opentelemetry_sdk = { version = "0.21.0", features = ["metrics", "rt-tokio"] }
parking_lot = "0.12.0"
pbkdf2 = { version = "0.11.0", features = ["std"] }
pbkdf2 = { version = "0.12.2", features = ["simple"] }
priority-queue = "1.3.0"
prometheus = "0.13.3"
prost = "0.12.3"
Expand Down
2 changes: 1 addition & 1 deletion crates/xline/src/server/auth_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ where
fn hash_password(password: &[u8]) -> String {
let salt = SaltString::generate(&mut OsRng);
let hashed_password = Pbkdf2
.hash_password(password, salt.as_ref())
.hash_password(password, &salt)
.unwrap_or_else(|e| panic!("Failed to hash password: {e}"));
hashed_password.to_string()
}
Expand Down

0 comments on commit bdbabf2

Please sign in to comment.