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

how to port nrf_crypto_aes_cbc_withpadding example using uEcc backend

Hi,

I want to use nrf_crypto_aes_cbc_withpadding example in my own project using uECC backend, Please guide me which files are needed to be required to add in my own project

and what are the configurations in sdk_config.h. I have successfully compiled the uECC backend and included in my project.

I have included the required files but i am having the issue with micro #if NRF_MODULE_ENABLED(NRF_CRYPTO_AES_CBC) donot kow how to enable it.it causes errors like unknown type name "mbedtls_aes_context" error in my own project . Please guide me with complete steps.

  • Hi,

    There are a lot of dependencies in nrf_crypto, so giving detailed instructions is not feasible. Essentially you should copy all nrf_crypto related from an SDK example in order to get everything (files, include paths, sdk_config.h configurations, etc.). Having a lot more than you use is not a problem since everything you don't need is stripped away by the preprocessor (alternatively you can always remove stuff gradually if you like after you got it working bot copying in from an SDK example, but the code you end up with will be the same).

Related