Other Parts Discussed in Thread: CC2640R2F
Tool/software: TI-RTOS
Dear Experts,
customer would like to implement AES-CMAC algorithm. As far as I could see from the TI-RTOS documentation, we only have drivers for
- AES-ECB
- AES-CCM
In the CC2640R2F TRM, it is mentioned that the crypto-controller supports CBC-MAC authentication modes. Customer is aware of the CCM implementation, but would like to have CBC-MAC.
As there is no example code/driver available for CBC-MAC he tried to follow the pseudo-code programming sequence outlined in the TRM for CBC-MAC implementation (section 10.1.6.3.4 CBC-MAC).
Unfortunately he is facing some issues
- CMAC calculation does not correlate with the expected result
Questions:
1) In the pseudo-code description it is mentioned, that bit AESCTL:CTR needs to be set, but with this the calculation does not work (bit IRQSTAT:DMA_IN_DONE is not getting set).
Is it correct to set the CTR bit for CMAC calculation?
2) Do the registers AESDATALENx and DMACH0LEN need to be configured with the same value? (not clear from pseudo-code and TRM)
Many thanks and best regards,
Gregor