Is there any way to compute AES CMAC with OpenSSL/libcrypto?
OpenSSL
libcrypto
Preferably in a way that takes advantage of AES-NI (or any other hardware ac
As stated in my blog post you can use the CMAC_CTX_new, CMAC_Init, CMAC_Update and CMAC_Final from lib crypto to calculate AES-128-CBC CMAC. Here is an example:
CMAC_CTX_new
CMAC_Init
CMAC_Update
CMAC_Final
lib crypto
#include #include void printBytes(unsigned char *buf, size_t len) { for(int i=0; i