We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hmac
1 parent e7d50d6 commit 9d1c7e2Copy full SHA for 9d1c7e2
cargo-registry-s3/lib.rs
@@ -104,7 +104,7 @@ impl Bucket {
104
);
105
let signature = {
106
let key = self.secret_key.as_bytes();
107
- 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");
108
h.update(string.as_bytes());
109
let res = h.finalize().into_bytes();
110
base64::encode(&res)
0 commit comments