<div dir="auto"><div>Don't do that. As I said, the library is trying to tell you that's not a point on the secp256k1 curve.</div><div dir="auto"><br></div><div dir="auto">Quickly browsing the standard, you are likely looking for the prime256v1 curve.</div><div dir="auto"><br></div><div dir="auto">BBB<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, 25 Oct 2019, 9.28 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">I think it is correct because I extracted the hexadecimal string from  <br>
a packet contained in a pcap.<br>
<br>
This compressed point is created following the ETSI TS 103 097 v1.3.1  <br>
standard for secured communications in the vehicular communication  <br>
context  <br>
(<a href="https://www.etsi.org/deliver/etsi_ts/103000_103099/103097/01.03.01_60/ts_103097v010301p.pdf" rel="noreferrer noreferrer" target="_blank">https://www.etsi.org/deliver/etsi_ts/103000_103099/103097/01.03.01_60/ts_103097v010301p.pdf</a>).<br>
<br>
I notice that the point 'pubPoint' that I created is empty when I try  <br>
to call 'EC_POINT_set_compressed_coordinates_GFp' function. How can I  <br>
put a BIGNUM into an EC_POINT?<br>
<br>
Luca<br>
<br>
Billy Brumley <<a href="mailto:bbrumley@gmail.com" target="_blank" rel="noreferrer">bbrumley@gmail.com</a>> ha scritto:<br>
<br>
>>         EC_GROUP* group         = EC_GROUP_new_by_curve_name  <br>
>> (NID_secp256k1);<br>
><br>
>> "c16b4ce0532f5dc9d09114fe121d3956ae84f9eb677a0d4bdac1d3af7a91950c";<br>
><br>
> I don't believe there's a point on secp256k1 with that x-coordinate.<br>
> If you check the failure reason for<br>
> EC_POINT_set_compressed_coordinates_GFp in the debugger, that is<br>
> probably what it is telling you.<br>
><br>
> Where did this curve / x-coord pair come from?<br>
><br>
> BBB<br>
<br>
<br>
<br>
</blockquote></div></div></div>