Hello,
I have been trying to implement the tinycrypt ECDSA algorithm for our product. I had sampled the implementation in a sample project with ECDSA being the only implementation and everything works perfectly. But, after I tried implementing ECDSA within a Bluetooth application, the signing and verification fails (it causes the system to just crash without any indication of what went wrong). I have attached a sample project I used for your reference, it is the central_hr example with the implementation added, the program called the ecdsa_Sign function when the device received a notification from a peripheral device, at this point the function crashes the whole system. One thing to note is that if the function is called from main itself, it works without any problem. I have been trying to figure out the problem using print statement and came to the conclusion that it crashes in the EccPoint_mult function in ecc.c file, to be more specific, it crashes in the first for loop in that function. The sample crashes even when the project is implemented in peripheral mode. Hope you guys will be able to help me with this as I have already spent a fair amount of time trying to figure it out without much luck. I'm using nRF Connect SDK v1.4.0 with the latest nRF connect command-line tool.
Regards,
Sethu.
