hashthenMAC
Hash-then-MAC is a cryptographic construction used to authenticate messages by applying a hash function to the message and then computing a MAC (message authentication code) over that hash value using a secret key. The resulting tag can be transmitted with the message to provide integrity and authenticity.
In typical use, a message m is first processed by a hash function H to produce a
Rationale and security considerations: Hash-then-MAC aims to combine the benefits of hashing with a secret-key MAC,
Variants and practical notes: A common practical interpretation is to apply a MAC to the hash output,
See also: HMAC, MAC, hash function, authenticated encryption.