Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hmac/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use hex_literal::hex;
// Create alias for HMAC-SHA256
type HmacSha256 = Hmac<Sha256>;

let mut mac = HmacSha256::new_from_slice(b"my secret and secure key")
let mut mac: HmacSha256 = KeyInit::new_from_slice(b"my secret and secure key")
.expect("HMAC can take key of any size");
mac.update(b"input message");

Expand All @@ -74,7 +74,7 @@ use hex_literal::hex;

type HmacSha256 = Hmac<Sha256>;

let mut mac = HmacSha256::new_from_slice(b"my secret and secure key")
let mut mac: HmacSha256 = KeyInit::new_from_slice(b"my secret and secure key")
.expect("HMAC can take key of any size");

mac.update(b"input message");
Expand Down