RSA Decryption Failure (-147) while sending and receiving data from Modem on UART

Hi there. I have been working on a small project where I am using an encryption library for communication over ble. I am receiving encrypted token over ble charcteristics. Then i use Crypto libraries to decrypt the token and perform modem function on UART. While communicating over UART with modem i send and receive data from modem.. when I receive consecutive tokens on BLE, initially MCU is able to decrypt the tokens. but after 5-6 tokens it start failing to decrypt the exact same token. When I disable uart tx then this issue does not come... or may be it is delay enough..
I need help in this. I am not able to understand what causes the failure in decryption.

Parents Reply Children
No Data
Related