<div dir="auto"><div>Hi,<div dir="auto"><br></div><div dir="auto">with traditional EC from the x coordinate alone you can't really do that, because there are always 2 possible solutions for y (in R the curve is symmetrical on the x axis). </div><div dir="auto"><br></div><div dir="auto">The standards define a "compressed point" format in which you can send the coordinate x and an additional bit to select which of the 2 y solutions to pick.</div><div dir="auto"><br></div><div dir="auto">You can read more about it in EC_GROUP_set_point_conversion_form at <a href="https://www.openssl.org/docs/man1.1.1/man3/EC_GROUP_copy.html">https://www.openssl.org/docs/man1.1.1/man3/EC_GROUP_copy.html</a> </div><div dir="auto"><br></div><div dir="auto">and in EC_POINT_set_compressed_coordinates at</div><div dir="auto"><a href="https://www.openssl.org/docs/man1.1.1/man3/EC_POINT_new.html">https://www.openssl.org/docs/man1.1.1/man3/EC_POINT_new.html</a><br></div><div dir="auto"><br></div><div dir="auto">Hope this helps, </div><div dir="auto"><br></div><div dir="auto">Nicola Tuveri</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 18, 2019, 11:31 Luca Di Mauro <<a href="mailto:luca.dimauro@cnit.it">luca.dimauro@cnit.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello all,<br>
<br>
I don't know if it is the correct mailing list to ask this, so I'm  <br>
sorry if it is the wrong palce.<br>
<br>
I'm using openssl v1.1, and I'm trying to compute both the X and Y  <br>
coordinates of an elliptic curve point starting from a single  <br>
coordinate (X or Y).<br>
<br>
How can i perform that in C/C++ language using libssl? I searched on  <br>
google for a couple of days but i haven't found a solution.<br>
<br>
Luca Di Mauro<br>
<br>
<br>
</blockquote></div></div></div>