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

AES encryption and decryption code for nRF5340

Hi ,

nRF5340 has hardware support with AES CCM mode encryption. As per product specification document AES - CCM is in built in nRF5340 SoC.

I did not find sample code or driver code in nRF connect SDK for AES. 

please help me , To find out AES CCM register configuration sample/example code for my testing purpose.

Regards,

Srinivas Rao.

Parents
  • Hi,

    The AES CCM peripheral is specifically tailor made for use with BLE. It is possible to use it for other purposes, but it is in most cases more sensible to use CryptoCell CC312 for that. Then you need to use the APIs we provide. There are no simple examples demonstrating that but you can refer to the crypto tests. If you want to use the CCM peripheral non the less, then you can refer to this post (principle is the same as for earlier nRF5 devices). If you want to use the AES CCM peripheral then there is no official example but you may find this one useful.

Reply
  • Hi,

    The AES CCM peripheral is specifically tailor made for use with BLE. It is possible to use it for other purposes, but it is in most cases more sensible to use CryptoCell CC312 for that. Then you need to use the APIs we provide. There are no simple examples demonstrating that but you can refer to the crypto tests. If you want to use the CCM peripheral non the less, then you can refer to this post (principle is the same as for earlier nRF5 devices). If you want to use the AES CCM peripheral then there is no official example but you may find this one useful.

Children
Related