kmackay / micro-ecc

ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors.
BSD 2-Clause "Simplified" License
1.26k stars 460 forks source link

Question about the public private key generation using secp160r1 #204

Open ColdLance1 opened 1 year ago

ColdLance1 commented 1 year ago

Just had a question about key generation because I'm getting discrepancies from documents and online calculators.

image

As I'm debug in the function "uECC_make_key", I manual edit the variable _private to have the value based the attached picture 971761939728640320549601132085879836204587084162 (0xAA374FFC3CE144E6B073307972CB6D57B2A4E982). It doesn't seem to come out with the same public key.

Hoping someone can shed some light on this.

Thank you!