Message Authentication Code (MAC)

Give one difference between a MAC (Message Authentication Code) and a hash function?

MAC
  • Very similar to Hash Functions
  • Difference is the use of a key
  • Hash Function:
  • M -> H -> H (M)
  • MAC:
  • M -> MAC -> Ck (M)

    ........... K...........