A MAC is a general term describing message authentication code
. That is a tag that will verify the integrity of your data. You will be able to say whether or not an attacker hash tampered with the data that you receive. One construction is HMAC
and it uses a hash function as a basic building block. There is another way which is CBC-MAC
and its improved version CMAC
and is cased on block ciphers.
curious
- 6.3k
- 6
- 34
- 48