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

aes crypt hangs

Hello,

I'm trying to make use of the AES crypt code from the application level code.

Per devzone.nordicsemi.com/.../51822-aes-encryption-and-decryption-demo-code

I'm trying to implement the CTR approach.

However, whenever I call the aes encrypt code, the system seems to hang/die.

I have tried using: nrf_ecb_init(); nrf_ecb_set_key(key); nrf_ecb_crypt();

and

sd_ecb_block_encrypt()

In the top case, it dies upon entry to nrf_ecb_init(). And then if I try only sd_ecb_block_encrypt(), this also "dies".

By "dies" I mean that it enters the method and never returns. (step over in debugger)

Is there something we are supposed to do to enable AES access from the app?

I'm using S110 6.0, latest SDK, target is nrf51822

Thank you,

Matthew

Related