In cc310 SaSi_AesBlock isn't returning from the function call

Hello there,

I want to use the CC310 module for encryption.

I uploaded an example(i.e. \nRF5_SDK_17.1.0_ddde560\examples\crypto\nrf_cc310\aes) from the SDK to my nrf 52840 dev kit and in the debug I see that all tests are going well and the module is working. But when I wanted to add encryption to my project which has ble using NUS profile, then I ran into problems. I wanted to use AES in ECB mode. The module initialization functions SaSi_AesInit,  SaSi_AesSetKey from example pass successfully and output is SA_SILIB_RET_OK. But when I want to use SaSi_AesBlock for encryption i see the data being  encyrpted but the function is not returning SA_SILIB_RET_OK, it is getting struck inside it and isn't coming out of the function. Is there anything i need to enable in sdk_config file.

Can anyone please help me in solving the issue.

Regards,

Shafi

Related