Counter with CBC-MAC (CCM) mode, as defined in NIST Special Publication SP 800-38C (RFC 3610).
Check out the example on The Go Playground. It shows how to encrypt and decrypt, and shows what happens when the cipher text has been changed (tampered.)
Counter with CBC-MAC (CCM) mode, as defined in NIST Special Publication SP 800-38C (RFC 3610).
Check out the example on The Go Playground. It shows how to encrypt and decrypt, and shows what happens when the cipher text has been changed (tampered.)