Function hacl_sys::Hacl_HMAC_compute_sha2_512
source · pub unsafe extern "C" fn Hacl_HMAC_compute_sha2_512(
dst: *mut u8,
key: *mut u8,
key_len: u32,
data: *mut u8,
data_len: u32
)
Expand description
Write the HMAC-SHA-2-512 MAC of a message (data
) by using a key (key
) into dst
.
The key can be any length and will be hashed if it is longer and padded if it is shorter than 128 bytes.
dst
must point to 64 bytes of memory.