Adds a message authentication code (MAC) to a file