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.

TRF7970A AES Authentication sample

Other Parts Discussed in Thread: TRF7970A

I have implemented the TRF7970A AES Authentication sample
code, the AES128 authentication with a DESFire EV1 tag works fine, now I want
to decrypt an AES128 encrypted data file on the tag with the session key, but it
will not succeeds. It is necessary to calculate the CMAC for the read file
command with will lead to the correct IV initialization for decrypting the
response.

Can anyone provide me sample code do calculate the CMAC