Use hardware AES ECB encryption NRF52832 connect sdk

I have AES ECB encryption working on the NRF5 system, but I cannot get it working on the Connect SDK.
I have found CONFIG_CRYPTO_NRF_ECB config, but this seems to require a different BLE controller.
I see an ecb.c file in the Nordic HAL in zephyr, but I need some help implementing using ncs.

/opt/nordic/ncs/v2.1.0/zephyr/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ecb.c
Any help or tips would be great, thanks!
Parents Reply
  • Ah, yes, I was not aware of that dependency. It is a limitation in NCS. You cannot use it while the SoftDevice Controller is active, but technically it should have been possible to get it to work using MPSL timeslots though it turns out that is currently not supported.

    Do you have a strong need to do this in HW? If you only need to crypt small amount of data, or only do it rarely, then the downside of doing it in SW is often not significant.

Children
Related