Skip to content

Commit

Permalink
s3: Adjust to new hmac API name
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Oct 25, 2021
1 parent e7d50d6 commit 9d1c7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-registry-s3/lib.rs
Expand Up @@ -104,7 +104,7 @@ impl Bucket {
);
let signature = {
let key = self.secret_key.as_bytes();
let mut h = Hmac::<Sha1>::new_varkey(key).expect("HMAC can take key of any size");
let mut h = Hmac::<Sha1>::new_from_slice(key).expect("HMAC can take key of any size");
h.update(string.as_bytes());
let res = h.finalize().into_bytes();
base64::encode(&res)
Expand Down

0 comments on commit 9d1c7e2

Please sign in to comment.