Function hmac_sha256
Source pub fn hmac_sha256(key: &[u8], data: &[u8]) -> [u8; 32]
Expand description
Computes the RFC 4231 HMAC-SHA256 authentication code of data under key.
§Arguments
&[u8] - Secret HMAC key bytes.
&[u8] - Message payload bytes.
§Returns
[u8; 32] - 256-bit HMAC-SHA256 tag.