Topic: [ecc]share-key and openssl compatibility

1.Use wc_ecc_make_key() I can get a new private-key,but I don't find the mothod that generate a new pub-key from the private-key.Does it means that just make two  key ,one for private-key, one for pub-key ,and transmit the pub-key to others to generate the share-key?
2.Now I have two machine ,A and B. A use openssl to generate private-key, pub-key , share-key and B use wolfssl to do that,how can I make A and B generate the same share-key?
smile  smile  smile

Share

Re: [ecc]share-key and openssl compatibility

Hi Blink,

wc_ecc_make_key() generates both the private and public key.  You can export the public key using the following function:

int wc_ecc_export_x963(ecc_key*, byte* out, word32* outLen);

A good usage example is the ecc_test() function inside the wolfCrypt test app (<wolfssl_root>/wolfcrypt/test/test.c).

Best Regards,
Chris