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.

CC1110 - Caclulates CBC-MAC wrong...

Hi!

I'm currently testing the AES co-processor of the CC1110.

 

I have implemented and tested both encryption and decryption using CBC and compared outputvalues to reference data. It works and it's correct.

 

But I cannot get CBC-MAC to work.

According to the spec ENCCS.MODE = CBC-MAC until the last block, then ENCCS.MODE = CBC. So far so good.

It also says I should make sure mode is set when initiating it. So ENCCS.MODE = CBC-MAC when I'm loading key and iv/nonce.

 

What I'm I doing wrong/missing?

 

BRs

Jens Ohlund