Function gnunet_sys::GNUNET_CRYPTO_hmac_raw[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_hmac_raw(
    key: *const c_void,
    key_len: usize,
    plaintext: *const c_void,
    plaintext_len: usize,
    hmac: *mut GNUNET_HashCode
)

Calculate HMAC of a message (RFC 2104) TODO: Shouldn’ this be the standard hmac function and the above be renamed?

@param key secret key @param key_len secret key length @param plaintext input plaintext @param plaintext_len length of @a plaintext @param hmac where to store the hmac