Config for AES-128 ECB crypto only

Hello,

I am looking for some help or example code that describes minimum set of the files and #defines required to enable AES 128bit encryption and decryption using ECB mode only. The only example I have found in the sdk examples is in '\crypto\nrf_crypto\aes\aes_all_cli' but this pulls in a lot of unwanted code and takes more ram than is available together with my existing code and SoftDevice.

I have written the encrypt and decrypt functions I need based on the code in function nrf_cli_cmd_crypt_ecb() in the above example main.c but cannot find the right combination of #includes and #defines to build the solution.

An example emProject file would be great or even the required entries for include dirs, preprocessor directives, files/folders etc.

Parents
  • Thanks very much for the reply, Einar.

    Being new to the sdk, my biggest problem is understanding exactly what must be defined so that the preprocessor will indeed omit all the unneeded code but include the needed code for ECB and which frontends/backends I should use to minimise memory usage. I will look at the links you included to see if those yield any fruit!

Reply
  • Thanks very much for the reply, Einar.

    Being new to the sdk, my biggest problem is understanding exactly what must be defined so that the preprocessor will indeed omit all the unneeded code but include the needed code for ECB and which frontends/backends I should use to minimise memory usage. I will look at the links you included to see if those yield any fruit!

Children
No Data
Related