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

ECDSA with nrfutil generated key

Hi all,

I am now testing with ecdsa example with nrfutil generated key. I found that the public key generated by nrf_crypto_ecc_public_key_from_raw is not the same format as the original code. The original one is 

and the one that I use my own key is

 

When it goes to nrf_crypto_ecdsa_verify, it keep returning Error 0x8516: An internal error occurred when calling this function, after I change the public key to the original one, it resume normal with invalid signature. How can I fix this problem. Also, I found that the public key generated from nrfutil is not the same with openssl that if I use nrfutil's one on some online decoder, the public key can't verify the signature gen, while openssl one can. Thanks a lot.

Best regards,

MLai