Is there any way to compute AES CMAC with OpenSSL
/libcrypto
?
Preferably in a way that takes advantage of AES-NI (or any other hardware acceleration).
See also CMAC Key generation with OpenSSL EVP_DigestSign* fails
Is there any way to compute AES CMAC with OpenSSL
/libcrypto
?
Preferably in a way that takes advantage of AES-NI (or any other hardware acceleration).
See also CMAC Key generation with OpenSSL EVP_DigestSign* fails
As stated in my blog post you can use the
CMAC_CTX_new
,CMAC_Init
,CMAC_Update
andCMAC_Final
fromlib crypto
to calculate AES-128-CBC CMAC. Here is an example: