Wrong HMAC in the implementation of ECIES IEEE1363a

2020-07-22 Thread Luca Di Mauro
Hi guys, I have to implement the ECIES scheme as specified at https://wiki.plugtests.net/ITS-CMS6/images/4/4a/1609.2-consolidated-v4-d8-clean.pdf paragraph 5.3.5, with the KDF and encryption function specified here

Re: Compute EC_KEY starting from X or Y coordinate only

2019-10-26 Thread Luca Di Mauro
I checked the 'test' folder but I didn't found any tests that help me in this case. However the only doubt is how I can use the API offered by openssl library. I understand how retreive a point (and consequently to assign it to a public key) starting from a compressed-y representation (which

Re: Compute EC_KEY starting from X or Y coordinate only

2019-10-25 Thread Luca Di Mauro
://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.202.2977=rep1=pdf Thanks, Thulasi. On Fri, 25 Oct 2019 at 16:50, Luca Di Mauro wrote: Mh, maybe I didn't understand. If I have an x-point which follows this representation https://tools.ietf.org/id/draft-jivsov-ecc-compact-05.html (so it is composed

Re: Compute EC_KEY starting from X or Y coordinate only

2019-10-25 Thread Luca Di Mauro
Mh, maybe I didn't understand. If I have an x-point which follows this representation https://tools.ietf.org/id/draft-jivsov-ecc-compact-05.html (so it is composed by 33 byte and first byte is '0x02') and I use 'EC_POINT_set_compressed_coordinates_GFp' function, it will be considered

Re: Compute EC_KEY starting from X or Y coordinate only

2019-10-25 Thread Luca Di Mauro
on the secp256k1 curve. Quickly browsing the standard, you are likely looking for the prime256v1 curve. BBB On Fri, 25 Oct 2019, 9.28 Luca Di Mauro, wrote: I think it is correct because I extracted the hexadecimal string from a packet contained in a pcap. This compressed point is created following the ETSI

Re: Compute EC_KEY starting from X or Y coordinate only

2019-10-25 Thread Luca Di Mauro
I think it is correct because I extracted the hexadecimal string from a packet contained in a pcap. This compressed point is created following the ETSI TS 103 097 v1.3.1 standard for secured communications in the vehicular communication context

Re: Compute EC_KEY starting from X or Y coordinate only

2019-10-24 Thread Luca Di Mauro
_xOnly (xOnlyStr); return 0; } The string 'xOnlyStr' contains a real x-only coordinate of a verification key. Could you help me? Thank you, Luca Di Mauro Luca Di Mauro ha scritto: Thank you very much for the reply! Yes, I have also the additional information about on which of two

Re: Compute EC_KEY starting from X or Y coordinate only

2019-10-18 Thread Luca Di Mauro
Thank you very much for the reply! Yes, I have also the additional information about on which of two solutions I should take. I'll check the guides you linked below. Luca Di Mauro Nicola Tuveri ha scritto: Hi, with traditional EC from the x coordinate alone you can't really do

Compute EC_KEY starting from X or Y coordinate only

2019-10-18 Thread Luca Di Mauro
that in C/C++ language using libssl? I searched on google for a couple of days but i haven't found a solution. Luca Di Mauro