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.

CC2520 CCM mode Authentication and encryption

Hi

I am trying to use CCM mode for packet encryption and authentication.

My final  frame will be like this

  Header + Payload + MIC

I want to authenticate Header + Payload part  Which will generate MIC of 4 bytes  (CBC-MAC)

Then I want Payload + MIC(generated in above ) to be encrypted (CTR).

I am using CCM instruction for this but it is not generating right MIC. Because if this my packet fails to decrypt at 

receiving side.

I am little confused about it

is single CCM instruction is sufficient for above operation?

Thanks