Explain the purpose and construction of HMAC (Hash-based Mes…

Explain the purpose and construction of HMAC (Hash-based MessageAuthentication Code). Compare it to a simple MAC construction like h(k ⊕ d),and describe the specific vulnerability (such as length-extension) that HMACaddresses and how it mitigates it. [8 Points]