Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Picking an encryption for just works mode with rolling counter

Hello,

I am using a nRF52833, and have an open characteristic in just works mode. I need to send encrypted data on this characteristic, however, the encrypted text needs to change if the same message was sent. For example, if I send "Hello world" twice, the encrypted text should be different. I was thinking of adding a counter variable appended on the key, but wasn't sure if something like this already exists for the nRF52833, as well as what encryption would be best.

Parents Reply
  •  It requires some knowledge about cryptography to be implemented correctly.

    There are some pitfalls involved in implementing this. Eg. if the AES CTR counter gets out of synch between the BLE nodes, it can make the recovery of the plaintext fail. So, we can recommend you try, and use built in encryption in BLE.

    However, both AES CBC and AES CTR provides the encryption functionality you need. CCM may be a bit complicated for your goal.

Children
No Data
Related