Tls, Cryptography, Security, Openssl, Cybersecurity.
using the IV, ciphertext, message and verify if it is same. $ cat content.iv content.aes | openssl dgst -mac HMAC -macopt hexkey:`cat mac.key` -out content.mac.decryption $ diff content.mac.decryption content.mac $ If the generated mac matches the received mac, then we can go forward and decrypt