Discuss the three primary security properties required for a…

Discuss the three primary security properties required for a strong cryptographichash function (one-way, collision resistance, and second pre-image resistance).Explain why these properties are important, and describe how the birthday attackexploits collision resistance, including an approximation of the effort required tofind a collision. [8 Points]

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]