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
  • Hi Lucas

    I made an example and made it available on Github:
    github.com/.../nrf52-esb-ccm-example

    Please have a look at it and let me know if it can be of any help. If you have any feedback on the code I will make sure to take it into consideration :)

    Best regards
    Torbjørn

  • Hi. I have tried to utilize example to make AES CCM encryption/decryption independently of Radio. I mean just encrypt data or decrypt and not sending data over radio interface. Not utilizing the SDK or SD. Quite much following the example but ending to situation that already the KSGEN ends upto infinite loop never ending before watchdog resets the system. In radio interface S0 and S1 are not enabled. I tried fisrt with packet size 128 bytes and later as in example 8 bytes. But same result. Any possibility as the feature is fresh in mind to make example where encryption is not done simultanously with the radio interface? Or any key issues to remind. I took also account the ERRDATA for CCM slowness issue. BR. Macro

Reply
  • Hi. I have tried to utilize example to make AES CCM encryption/decryption independently of Radio. I mean just encrypt data or decrypt and not sending data over radio interface. Not utilizing the SDK or SD. Quite much following the example but ending to situation that already the KSGEN ends upto infinite loop never ending before watchdog resets the system. In radio interface S0 and S1 are not enabled. I tried fisrt with packet size 128 bytes and later as in example 8 bytes. But same result. Any possibility as the feature is fresh in mind to make example where encryption is not done simultanously with the radio interface? Or any key issues to remind. I took also account the ERRDATA for CCM slowness issue. BR. Macro

Children
No Data
Related