AES-CMAC in Java Card

1.4k Views Asked by At

Is there a proper way of doing an AES CMAC encryption in Java Cards?

After researching I've hit a roadblock wherein I cannot find any example or samples of Java card that has AES CMAC encryption. Is there any way or at least is it possible to do an AES CMAC encryption on a Java Card

1

There are 1 best solutions below

5
On

There are three possibilities:

  • either you take a Java Card that has an extended API that supports AES-CMAC (certain JCOP cards for example);

  • you take a Java Card with API version 3.0.5 (very rare currently);

  • you implement AES-CMAC from scratch using the AES Cipher and Signature objects (this is possible and not too difficult, I did this some years ago).