HMAC Algorithms - 2023.2 English

Vitis Libraries

Release Date
2023.2 English

HMAC is a message authentication code (MAC) using a hash function. It combines with any cryptographic hash function, for example, md5, sha1, sha256. Hash function is wrapped to a class as one template parameter in HMAC and the wrapper class only has a static function involving the hash function. HMAC uses the wrapper’s hash function directly inside. The design makes combination HMAC algorithm with hash function more flexible. In xf_security lib, the key width (keyW), message width (msgW), key and message length width (lenW), hash value width (hshW) and block size of each hash function are list as below.