silc_mac_init

SYNOPSIS

    void silc_mac_init(SilcMac mac);

DESCRIPTION

Sometimes calling the silc_mac_make might not be the most optimal case of doing MACs. If you have a lot of different data that you need to put together for computing a MAC you may either put them into a buffer and compute the MAC from the buffer by calling the silc_mac_make, or you can use the silc_mac_init, silc_mac_update and silc_mac_final to do the MAC. This function prepares the allocated MAC context for this kind of MAC computation. The caller must have been called the function silc_mac_set_key before calling this function. To add the data to be used in the MAC computation call the silc_mac_update function.