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

Cryptocell secure ram

Hi,

I am working with NRF52840 and want to encrypt my saved data with AES using CC310 cryptocell.

I am working with nrf_crypto_aes frontend to do AES.

I want to know that does nrf_crypto_aes_key_set in this library use cryptocell's secured RAM?

Parents
  • Hi,

    The CC310 has secure RAM that can be used for some specific use cases (using a configured root key), but the normal AES API does not use secure RAM. This is often not that relevant though since the nRF52840 does not have secure flash, so the key would anyway have to be stored in a normal flash if it should be persistent.

    Specifically, the nrf_crypto_aes_key_set() function calls backend_cc310_key_set(), which calls SaSi_AesSetKey(). This writes the key information to the context object, which is in the (normal) RAM provided by the user.

Reply
  • Hi,

    The CC310 has secure RAM that can be used for some specific use cases (using a configured root key), but the normal AES API does not use secure RAM. This is often not that relevant though since the nRF52840 does not have secure flash, so the key would anyway have to be stored in a normal flash if it should be persistent.

    Specifically, the nrf_crypto_aes_key_set() function calls backend_cc310_key_set(), which calls SaSi_AesSetKey(). This writes the key information to the context object, which is in the (normal) RAM provided by the user.

Children
Related