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.
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.
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 Macro
The padding is a bug. In my first implementation I implemented the counter as a 5 byte array, and added 3 bytes of padding as per the specification, but later I changed the counter to a uint64_t to simplify the code. Unfortunately I forgot to remove the padding when doing so.
I have removed the padding now, and updated the repo.
Best regards
Hi Macro
The padding is a bug. In my first implementation I implemented the counter as a 5 byte array, and added 3 bytes of padding as per the specification, but later I changed the counter to a uint64_t to simplify the code. Unfortunately I forgot to remove the padding when doing so.
I have removed the padding now, and updated the repo.
Best regards