This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280039C: Calculate CMAC

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Tool/software:

1. I want to calculate CMAC of application which include other information by script , and authentic this application in bootloader by API function: CPU1BROM_calculateCMAC().

Can I call Hex utility in my script? Or can I call the AES_CMAC Algorithm write by TI?

2. I find aes_cmac example in C2000, the function include AES_performCMAC() and AES_performCMACFast(). 

What is the difference of these two functions? Which function is used when execute CPU1BROM_calculateCMAC()?

  • Hi,

    The aes_cmac example in the C2000WARE demonstrates the usage of CMAC algorithm for authentication using a test vector on how the data supposed to be fed into the AES engine. If your intention is to authenticate your image via bootloader, you could call the CPU1BROM_calculateCMAC() directly from the application as well directly. This API is available. 

    Thanks & Regards

    Pramod 

  • Hello,

    Now, I have use the API CPU1BROM_calculateCMAC() in bootloader to authentic my application image, and the application image is generated by Hex utility, which will caculate the Golden CMAC Tag.

    But I want generate the application image by script, so I want call some function in my script to caculate the CMAC Tag. Then  use API CPU1BROM_calculateCMAC() in bootloader and authentic my application image.

    Which function can I called?

  • Hi ,

    I believe what you are looking for is a SW based solution which can mimic the CMAC authentication to generate a Tag out. Unfortunately, we don't have this support in our library. Please correct me if my understanding is correct. 

    Thanks & Regards

    Pramod