This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

AES CCM: can INPTR = OUTPTR?

Hello:

I have read the documentation but I cannot determine if INPTR and OUTPTR can be set to the same memory address? I will try it to see what happens but it would be great to know if this is supported.

FYI: I want to do on-the-fly packet encryption. I want to set PACKETPTR in the radio peripheral to the same value as both INPTR and OUTPTR in the CCM peripheral. This way I dont have to have different buffers (saves memory).

Thanks!

Parents
  • Bjorn:

    Thanks! I will do so... BTW I figured out the answer to my question. You CANNOT set INPTR to OUTPTR. I finally got the LL_START_ENC_RSP correctly encrypted with the proper MIC. I had to set INPTR and OUTPTR to different RAM locations. When they were the same the encryption worked but the MIC was incorrect. I would still like verification from your engineers on this one. Maybe I am not doing something else correctly? Anyway, as I move along I will post other questions on a different thread.

Reply
  • Bjorn:

    Thanks! I will do so... BTW I figured out the answer to my question. You CANNOT set INPTR to OUTPTR. I finally got the LL_START_ENC_RSP correctly encrypted with the proper MIC. I had to set INPTR and OUTPTR to different RAM locations. When they were the same the encryption worked but the MIC was incorrect. I would still like verification from your engineers on this one. Maybe I am not doing something else correctly? Anyway, as I move along I will post other questions on a different thread.

Children
No Data
Related