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

Debug NRF_ERROR_CRYPTO_INTERNAL

Hi,

Our device is based on nRF52840  SDK 15.0.0

The device verifies signature of incoming messages (which were sent over BLE from PC application) using ECDSA with spec256r1 curve.

Verification code is based on ECDSA example (Bob's verify function)

We got error code NRF_ERROR_CRYPTO_INTERNAL (34070) from executing backend implementation (line 459 in nrf_crypto_ecdsa.c file)


     result = backend_implementation(p_context, p_public_key, p_hash, hash_size, p_signature);

How can we debug this internal error?

Any ideas what can be the root cause for this issue?

Thanks in advance 

Parents
  • Hello,

    Can you please try to use a different backend (uecc or oberon), to see if the problem persists. If it does, then the issue is located in the user data. At least it is possible to debug in this case. The cc310 is a closed source library, so it is a bit harder to debug.

    If it doesn't fail when you use e.g. uecc, we have to try to reproduce the issue here, and see if some of our crypto engineers can figure out what's wrong.

Reply
  • Hello,

    Can you please try to use a different backend (uecc or oberon), to see if the problem persists. If it does, then the issue is located in the user data. At least it is possible to debug in this case. The cc310 is a closed source library, so it is a bit harder to debug.

    If it doesn't fail when you use e.g. uecc, we have to try to reproduce the issue here, and see if some of our crypto engineers can figure out what's wrong.

Children
Related