New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extracting an EC Key out of X and Y with OpenSSL 3.0 #19219
Comments
You are attempting to create an EC public key using the "x" and "y" parameters - but no such parameters exist. The list of available EC parameters is on this page: https://www.openssl.org/docs/man3.0/man7/EVP_PKEY-EC.html For your purposes you need to use the https://www.openssl.org/docs/man3.0/man3/EVP_PKEY_fromdata.html We should add a feature to make it possible to supply the x and y co-ords separately. But that is not currently possible. |
@mattcaswell Thank you very much! If anyone's interested, here is the solution:
|
Note that code will misinterpret inputs if |
Hello Everyone,
I would really appreciate your help with this:
I have an X and Y input and what I would like to do is just convert them into a public EC key in PEM format.
I'll attach my code here bellow:
after
PEM_write_bio_PUBKEY(bio, evpPkey)
andBIO_read(bio, publicKeyBuff.data(), 33);
I'm getting an empty buffer/string. :(
This code, was meant to replace the code that was working for me on version 1.1 (!)
Which was:
If helps, RSA was working for me well on OpenSSL3.0:
I would appreciate any help with this, thanks in advance!
Hagai.
The text was updated successfully, but these errors were encountered: