CMAC
Authenticate messages with CMAC over a block cipher.
from oxcrypto.mac.cmac import CMAC
key = CMAC.AES256.generate_key()
tag = CMAC.AES256.mac(key, b"message")CMAC (OMAC1, NIST SP 800-38B, RFC 4493) is offered over AES, ARIA, BelT block, Blowfish, Camellia, CAST5, CAST6, DES and Triple DES, GIFT-128, GOST 28147-89, IDEA, Kuznyechik and Magma (GOST R 34.13-2015), RC2, RC5, Serpent, SM4, Speck, Threefish-256 and Twofish. The key length is the cipher's key length and the tag is one cipher block.
AES is the standardized choice. DES, Triple DES, Blowfish, CAST5, IDEA and RC2 are 64-bit block ciphers kept for interoperability. XTEA is not offered because its RustCrypto state cannot be copied.