The functions in this section allow you to use Message Authentication Codes (MACs) in an abstract fashion. The MAC algorithm is selected when you create a key object. The algorithm identifier must be one of the following constants defined in humac.h:
You create a key object by calling hu_MACKeySet() (when you already have a key value you wish to use), or hu_MACKeyGen() (when you wish to use a key generated from random data). The key object can then be used to initialize a MAC context (using hu_MACBegin()) or to compute the MAC in one call (using hu_MACMsg()).