This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns.
Message authentication codes¶
While cryptography supports multiple MAC algorithms, we strongly recommend that HMAC should be used unless you have a very specific need.
For more information on why HMAC is preferred, see Use cases for CMAC vs. HMAC?