MAC Interface
DESCRIPTION
The Message Authentication Code interface for computing MAC values for authentication purposes. The MAC is usually used in combination with encryption to provide authentication.
EXAMPLE
SilcMac hmac; // Allocate HMAC silc_mac_alloc(SILC_MAC_HMAC_SHA256, &hmac); // Set secret key to the MAC silc_mac_set_key(hmac, key, key_len); // Compute MAC unsigned char mac[SILC_MAC_MAXLEN]; SilcUInt32 mac_len; silc_mac_make(hmac, data, data_len, digest, &mac_len); // Free MAC silc_mac_free(hmac);
TABLE OF CONTENTS
- SilcMac
- MACs
- SILC_MAC_MAXLEN
- silc_mac_register
- silc_mac_unregister
- silc_mac_register_default
- silc_mac_unregister_all
- silc_mac_alloc
- silc_mac_free
- silc_mac_is_supported
- silc_mac_get_supported
- silc_mac_len
- silc_mac_get_name
- silc_mac_get_hash
- silc_mac_set_key
- silc_mac_get_key
- silc_mac_make
- silc_mac_make_with_key
- silc_mac_make_truncated
- silc_mac_init
- silc_mac_init_with_key
- silc_mac_update
- silc_mac_final