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