pub unsafe extern "C" fn aws_hmac_finalize(
    hmac: *mut aws_hmac,
    output: *mut aws_byte_buf,
    truncate_to: usize
) -> c_int
Expand description

Completes the hmac computation and writes the final digest to output. Allocation of output is the caller’s responsibility. If you specify truncate_to to something other than 0, the output will be truncated to that number of bytes. For example if you want a SHA256 digest as the first 16 bytes, set truncate_to to 16. If you want the full digest size, just set this to 0.