Skip to content

Commit

Permalink
Bump hmac and crypto-mac crate deps to v0.11 (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Apr 29, 2021
1 parent 22c238a commit 9858074
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion bcrypt-pbkdf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ readme = "README.md"

[dependencies]
blowfish = { version = "0.7", features = ["bcrypt"] }
crypto-mac = "0.10"
crypto-mac = "0.11"
pbkdf2 = { version = "0.7", default-features = false, path = "../pbkdf2" }
sha2 = { version = "0.9", default-features = false }
zeroize = { version = "1", default-features = false }
Expand Down
6 changes: 3 additions & 3 deletions pbkdf2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ edition = "2018"
readme = "README.md"

[dependencies]
crypto-mac = "0.10"
crypto-mac = "0.11"

rayon = { version = "1", optional = true }
base64ct = { version = "1", default-features = false, optional = true }
hmac = { version = "0.10", default-features = false, optional = true }
hmac = { version = "0.11", default-features = false, optional = true }
password-hash = { version = "0.2", default-features = false, optional = true, features = ["rand_core"] }
sha1 = { version = "0.9", package = "sha-1", default-features = false, optional = true }
sha2 = { version = "0.9", default-features = false, optional = true }

[dev-dependencies]
hex-literal = "0.3"
hmac = "0.10"
hmac = "0.11"
rand_core = { version = "0.6", features = ["std"] }
sha1 = { version = "0.9", package = "sha-1" }
sha2 = "0.9"
Expand Down
4 changes: 2 additions & 2 deletions pbkdf2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ where
F: Mac + NewMac + Clone + Sync,
{
let n = F::OutputSize::to_usize();
let prf = F::new_varkey(password).expect("HMAC accepts all key sizes");
let prf = F::new_from_slice(password).expect("HMAC accepts all key sizes");

res.par_chunks_mut(n).enumerate().for_each(|(i, chunk)| {
pbkdf2_body(i as u32, chunk, &prf, salt, rounds);
Expand All @@ -130,7 +130,7 @@ where
F: Mac + NewMac + Clone + Sync,
{
let n = F::OutputSize::to_usize();
let prf = F::new_varkey(password).expect("HMAC accepts all key sizes");
let prf = F::new_from_slice(password).expect("HMAC accepts all key sizes");

for (i, chunk) in res.chunks_mut(n).enumerate() {
pbkdf2_body(i as u32, chunk, &prf, salt, rounds);
Expand Down
2 changes: 1 addition & 1 deletion scrypt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "README.md"

[dependencies]
base64ct = { version = "1", default-features = false, features = ["alloc"], optional = true }
hmac = "0.10"
hmac = "0.11"
password-hash = { version = "0.2", default-features = false, features = ["rand_core"], optional = true }
pbkdf2 = { version = "0.7", default-features = false, path = "../pbkdf2" }
salsa20 = { version = "0.7", default-features = false, features = ["expose-core"] }
Expand Down

0 comments on commit 9858074

Please sign in to comment.