Utilize Crypto Hardware backend feature on nRF52840 Dongle

Hi,

In nrf52840 dongle, I use nrf_crypto_ecdsa_sign function to sign.

Everything is fine in when building, but when testing the real world data, it’ll will show error “FAILED” of sign function in “if” block that I’d written by my own.

Is this signature problem related to the warning which is down below?

In addition, I also found that there are more warnings of NRF_CRYPTO_ECDSA_SECP256K1_SIGNATURE_SIZE,

and those parameters will utilize in the sign function nrf_crypto_ecdsa_sign

The warning as shown below:

How can I solve this problem? It’ll be very kind for you to help!

  • Hi

    I see you have some warnings, but I do not see enough of you code to say exactly what the problem is or if it is related. You should always ensure that your code is warning free though, as this is often pointing to things than are problematic. So before debugging more you should start by resolving the warnings as they could very well be responsible for the issue. Where does your sign_context come from?

    If you want me to make specific suggestions, please share relevant parts of your code and copy-past all warnings from the build output, and check exactly which error code you get returned from nrf_crypto_ecdsa_sign().

Related