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

Why use sd_ecb_block_encrypt() vs nrf_ecb_crypt()?

There are two APIs in SDK 14.2 to access the nrf52832's AES core. What's the difference in behavior between the two?

I noticed that nrf_ecb_crypt() has a useful return value and sd_ecb_block_encrypt() does not. Does this mean that sd_ecb_block_encrypt() internally calls nrf_ecb_crypt() and tries again if it doesn't succeed, or blocks if the SoftDevice is going to use the hardware?

I noticed this question (https://devzone.nordicsemi.com/f/nordic-q-a/5871/nrf51822-aes-hw-module-clarification) almost answers my question, but I'm not sure whether the behavior is different for the nRF51's SoftDevice, and I'm also not sure how that answerer knows what a SoftDevice does "under-the-hood".

Parents Reply Children
No Data
Related