I'm looking for AES128 library with CMAC for Arduino. Help me to find one
I happen to know some libraries which use this. AES128-CMAC is for example used in the LoRaWAN MAC / driver implementation (LoRa is a low-power-wide-range radio technology). For example, the library Arduino-LMIC (LoRa MAC in C) uses this AES-CMAC implementation (has actually 2 built-in, Ideetron is the other one):
Other stacks use the mbedtls library with only the AES and CMAC layer activated. The library, written by ARM, is entirely in C and thus easily configrable (
config.h) and compilable for the Arduino platform:
Semetech's LoRa stack even has AES and CMAC abstracted in 4 four files:
Another good point would be to search PlatformIO's library index for "AES CMAC". Then this library comes up:
This also offers a CMAC implementation specifically designed for the Atmel AVR MCUs (Arduino Uno and likes) and partially written in Assembler. This should be best suited for you.