This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Encode/Decode with AES algorithm in ECB and CBC modes nRF5340

Is there some example for Encode / Decode with AES algorithm in ECB and CBC modes using Segger studio?


For a start, I only need the ECB mode that should be implemented in the Central_BAS project.

I use:
Board nRF5340DK
Segger studio 5.50c
nRF Connect v1.6.1

Thank you in advance.

Parents
  • Hi,

    Which examples are relevant depend a bit on what you want to do (use CryptoCell or pure SW crypto libraries, and if you are using secure or non-secure mode(?). Generally though the PSA crypto APIs is what is most relevant going forward, and that is also available in nRF Connect SDK 1.6.1 (though TF-M, which is needed to use CryptoCell from a non-secure application, is experimental and still is in 1.9.1). For the PSA based crypto APIs you can refer to the Cryptography samples.

  • In my case, nRF5340DK is communicating with the iPhone via Bluetooth.
    Nrf5340DK act as a central, while iPhone is peripheral.

    iPhone change characteristic value with AES encrypted value, then that value is received on the nRF5340 board in notifying callback and I want to do AES decrypt so that I can see the initial value.

    I don't use pairing and I would like it to stay that way.

    What would be the best solution in your opinion for this?

Reply
  • In my case, nRF5340DK is communicating with the iPhone via Bluetooth.
    Nrf5340DK act as a central, while iPhone is peripheral.

    iPhone change characteristic value with AES encrypted value, then that value is received on the nRF5340 board in notifying callback and I want to do AES decrypt so that I can see the initial value.

    I don't use pairing and I would like it to stay that way.

    What would be the best solution in your opinion for this?

Children
Related