This book seems to be interesting, but I am student and I have to save money... Yes I know that DH is subject to a MITM attack. I make DH key exchange in a secure channel with authenticated peer. How to serialized dh->pub_key ? I know that i2d_DHparams(const_dh, &dhbuf); serialize dh structure pointed by const_dh but I did not find a function to serialize just dh->pub_key ikuzar.
2011/3/25 Mike Mohr <akih...@gmail.com> > ikuzar, > > You cannot send the public key to a peer as-is. The DH structure > contains bignums which must be serialized prior to transmission. Do > you understand that DH is subject to a MITM attack unless the messages > are signed or encrypted somehow? > > If you insist on using the low-level objects, I'd suggest you read the > following book first: > > > http://www.amazon.com/Information-Security-Principles-Mark-Stamp/dp/0471738484 > > On Thu, Mar 24, 2011 at 5:35 PM, ikuzar <razuk...@gmail.com> wrote: > > Hello, > > I 'd like to know how to send dh->pub_key to peer ? > > I know that to send const DH* const_dh, I have to convert it into pem > format > > like this i2d_DHparams(const_dh, &dhbuf);, then I send dhbuf. > > But to send only dh->pub_key, I did not find any function to convert it > into > > PEM ... > > Thanks for your help. > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org >