silc_mac_set_key

SYNOPSIS

    void silc_mac_set_key(SilcMac mac, const unsigned char *key,
                          SilcUInt32 key_len);

DESCRIPTION

Sets the key to be used in the MAC operation. This must be set before calling silc_mac_make or silc_mac_final functions. If you do not want to set the key you can still produce a MAC by calling the silc_mac_make_with_key where you give the key as argument. Usually application still wants to set the key.