I’ve an extremely naïve question. I am generating ephemeral EC keys for
ECDH, following the example in
https://wiki.openssl.org/index.php/EVP_Key_and_Parameter_Generation

But it looks like the example ends on generation of the private key:
/* Generate the key */
if (!EVP_PKEY_keygen(kctx, &key)) goto err;

The next step must be obvious, but somehow I can’t figure it out. So my
question is: from having EVP_PKEY *privateECKey how do I get EVP_PKEY
*publicECKey?

Thanks!

P.S. The same question applies to RSA as well.
-- 
Regards,
Uri Blumenthal


Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to