Should I just copy the AES ucryptolib.c to add support for CMAC or any other suggestions to get me started?
Is anyone working on or any intentions of adding a python interface for cmac? Regular python has it implemented like this:
>>> from Crypto.Hash import CMAC
>>> from Crypto.Cipher import AES
>>>
>>> secret = b'Sixteen byte key'
>>> cobj = CMAC.new(secret, ciphermod=AES)
>>> cobj.update(msg)
>>> try:
>>> cobj.verify(mac)
>>> print "The message '%s' is authentic" % msg
>>> except ValueError:
>>> print "The message or the key is wrong"