Skip to content

Commit 6d499e6

Browse files
committed
Auto merge of #4054 - rust-lang:renovate/hmac-0.x, r=Turbo87
Update Rust crate hmac to 0.11 [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [hmac](https://crates.io/crates/hmac) | dependencies | minor | `0.10` -> `0.11` | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/rust-lang/crates.io).
2 parents a49358a + 9d1c7e2 commit 6d499e6

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

Cargo.lock

Lines changed: 24 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cargo-registry-s3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ path = "lib.rs"
1616
base64 = "0.13"
1717
chrono = "0.4"
1818
sha-1 = "0.9"
19-
hmac = "0.10"
19+
hmac = "0.11"
2020
reqwest = { version = "0.11", features = ["blocking"] }

cargo-registry-s3/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl Bucket {
104104
);
105105
let signature = {
106106
let key = self.secret_key.as_bytes();
107-
let mut h = Hmac::<Sha1>::new_varkey(key).expect("HMAC can take key of any size");
107+
let mut h = Hmac::<Sha1>::new_from_slice(key).expect("HMAC can take key of any size");
108108
h.update(string.as_bytes());
109109
let res = h.finalize().into_bytes();
110110
base64::encode(&res)

0 commit comments

Comments
 (0)