silc_mac_update

SYNOPSIS

    void silc_mac_update(SilcMac mac, const unsigned char *data,
                         SilcUInt32 data_len);

DESCRIPTION

This function may be called to add data to be used in the MAC computation. This can be called multiple times to add data from many sources before actually performing the MAC. Once you've added all the data you need you can call the silc_mac_final to actually produce the MAC.

EXAMPLE

    unsigned char mac[20];
    SilcUInt32 mac_len;

    silc_mac_init(mac);
    silc_mac_update(mac, data, data_len);
    silc_mac_update(mac, more_data, more_data_len);
    silc_mac_final(hac, mac, &mac_len);