Closed N9SHazpnhYW closed 3 years ago
I would like to leave the answer to this question here which was solved on stack exchange. It doesnt have anything to do with the Microchip cryptoauthlib library, so I will close this comment....For reference, here is the answer: https://stackoverflow.com/questions/67135136/unable-to-verify-a-raw-uint8array-ecdsa-secp256r1-message-signature-pubkey-usi
I am using Javascript to try to verify the output of the ATECCx08 chip. The information I am attempting to verify is as follows:
I need to pad the publicKey with 0x04 in the front in order to successfully import the key into the WebCrypto javascript API. However, when I try to verify the message, and the signature from the message, it always fails.
Is there any other special formatting that I need to be aware of, like there was for the publicKey? The same code can verify an ECDSA message/signature/public key that was generated outside of the ATECC chip (also using P-256).
At the moment I am completely stuck and would be extremely grateful for any help...thanks in advance