Skip to content

Commit 9d1c7e2

Browse files
committed
s3: Adjust to new hmac API name
see RustCrypto/traits#442
1 parent e7d50d6 commit 9d1c7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)