On 15/05/12 20:21, Fábio Resner wrote:
I don`t know if this is the correct place to make this conceptual question but here it goes:

In DH you must exchange the parameters in order to generate the keys for the algorithm to work properly. (Am I wrong?)

But in ECDH (accordingly to the code above) I only needed to exchange the public keys without
exchanging any parameters for key's generation.

Is this particular for ECDH or are the parameter exchange being hidden for the library?


In the example code you are using a named curve. This is a standardised curve (along with associated standardised parameters) which is built in to the library. The fact that both ends of the communication have agreed to use the same named curve is where your parameter exchange is taking place.

Matt

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to