Skip to content

Commit

Permalink
bump pbkdf2
Browse files Browse the repository at this point in the history
  • Loading branch information
v4lproik committed Jan 16, 2024
1 parent fb7867c commit 0ea48b0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 11 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ ctr = "0.9.0"
digest = "0.10.0"
hex = "0.4.2"
hmac = "0.12.0"
pbkdf2 = { version = "0.11", default-features = false }
pbkdf2 = { version = "0.12.2", default-features = false }
rand = "0.8.4"
scrypt = { version = "0.10.0", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_json = "1.0.78"
sha2 = "0.10.1"
thiserror = { version = "1.0.22", default-features = false }
uuid = { version = "1.6.1", features = ["serde", "v4"] }
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ where
salt,
} => {
let mut key = vec![0u8; dklen as usize];
pbkdf2::<Hmac<Sha256>>(password.as_ref(), &salt, c, key.as_mut_slice());
let _ = pbkdf2::<Hmac<Sha256>>(password.as_ref(), &salt, c, key.as_mut_slice());
key
}
KdfparamsType::Scrypt {
Expand Down Expand Up @@ -280,7 +280,7 @@ where
salt,
} => {
let mut key = vec![0u8; dklen as usize];
pbkdf2::<Hmac<Sha256>>(password.as_ref(), &salt, c, key.as_mut_slice());
let _ = pbkdf2::<Hmac<Sha256>>(password.as_ref(), &salt, c, key.as_mut_slice());
key
}
KdfparamsType::Scrypt {
Expand Down

0 comments on commit 0ea48b0

Please sign in to comment.