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

AES CCM encryption/decryption examples

Hello,

Are there examples of AES CCM encryption/decription?

Is there a recommended procedure for generating nounces?

Are there recommended procedures for using CCM?

Thank you.

Update: I forgot to mention I am using a nrf52832.

Parents
  • Hello Oliver,

    Thanks,

    It seems this cryptocell is only available for nrf52840.

    Are there any examples using the peripheral included in nrf52832?

  • Hi Nabil

    If you are using Bluetooth then you don't need my example, you can just use the built in pairing mechanisms of the Bluetooth stack.

    If you don't want to use passkey then you can revert to 'just works' pairing (providing encryption only, without authentication). This makes you vulnerable to attacks during the pairing phase, but if you make sure to pair in a safe location then you will have a secure connection afterwards.

    If you enable the LE Secure Connections feature (introduced in Bluetooth 4.2) then you also get passive eavesdropping (sniffer) protection, but you don't get man in the middle protection unless you enable authentication.

    Best regards

Reply
  • Hi Nabil

    If you are using Bluetooth then you don't need my example, you can just use the built in pairing mechanisms of the Bluetooth stack.

    If you don't want to use passkey then you can revert to 'just works' pairing (providing encryption only, without authentication). This makes you vulnerable to attacks during the pairing phase, but if you make sure to pair in a safe location then you will have a secure connection afterwards.

    If you enable the LE Secure Connections feature (introduced in Bluetooth 4.2) then you also get passive eavesdropping (sniffer) protection, but you don't get man in the middle protection unless you enable authentication.

    Best regards

Children
No Data
Related