Function new_hmac_sha256

Source
pub fn new_hmac_sha256<K: AsRef<[u8]>>(key: K) -> HmacSha256
Available on crate feature sha2 only.
Expand description

Creates HMAC using the SHA-256 algorithm.

ยงPanics

HMAC accepts any key length, which means this function will not panic.