title: How to calculate AES CMAC using OpenSSL's CMAC_xxx functions?
body: <p>Is there any way to compute AES CMAC with <code>OpenSSL</code>/<code>libcrypto</code>?  </p>
  
  <p>Preferably in a way that takes advantage of AES-NI (or any other hardware acceleration). </p>
  
  <p><em>See also <a href="https://stackoverflow.com/questions/34990080/cmac-key-generation-with-openssl-evp-digestsign-fails">CMAC Key generation with OpenSSL EVP_DigestSign* fails</a></em></p>