Re: DH-algorithm using OpenSSL

2012-12-28 Thread Jeffrey Walton
On Fri, Dec 28, 2012 at 3:37 PM, Hemayamini Kurra hemayaminiku...@email.arizona.edu wrote: Hello!! I am implementing DH algorithm using OpenSSL library. My scenario is - using DH key exchange algorithm for key generation and exchange between client and server. Using DSA for two way

Re: DH-algorithm using OpenSSL

2012-12-28 Thread Hemayamini Kurra
...@gmail.com wrote: On Fri, Dec 28, 2012 at 3:37 PM, Hemayamini Kurra hemayaminiku...@email.arizona.edu wrote: Hello!! I am implementing DH algorithm using OpenSSL library. My scenario is - using DH key exchange algorithm for key generation and exchange between client and server

Re: DH-algorithm using OpenSSL

2012-12-28 Thread Jeffrey Walton
: Hello!! I am implementing DH algorithm using OpenSSL library. My scenario is - using DH key exchange algorithm for key generation and exchange between client and server. Using DSA for two way authentication. server: Could be tricky to get right, especially when you need semantic

Re: How to implement DH algorithm using openSSL library?

2012-12-21 Thread Hemayamini Kurra
Thanks prashant!! This helped alot!! On Thu, Dec 20, 2012 at 10:09 PM, Prashant Batra prashant0...@gmail.comwrote: I have this fucntion which I use to generate public-private key pair. - prime : depends on the dh group, you can find these values in DH rfc -

Re: How to implement DH algorithm using openSSL library?

2012-12-21 Thread Hemayamini Kurra
I also have a problem in sending the pub_key to peer. As I am using DH_generate_parameters to generate prime and generator and DH_generator_key for generating the public key , I have to send the prime, g and pub_key to the peer. Is there any function to do this?? Thanks in advance. Yamini. On

How to implement DH algorithm using openSSL library?

2012-12-20 Thread Hemayamini Kurra
Hello!! I am trying to implement Diffe-Hellman Key exchange protocol between Client and server. I am using openSSL dh.h library for that. The problem is how to send the publickey generated by DH_generate_key() function to client/server. My idea is to get the shared secret which I can use for

Re: How to implement DH algorithm using openSSL library?

2012-12-20 Thread Prashant Batra
I have this fucntion which I use to generate public-private key pair. - prime : depends on the dh group, you can find these values in DH rfc - http://www.ietf.org/rfc/rfc3526.txt int32_t DHInterface::GeneratePublicPrivateKeyPair(uint8_t * pub_key, uint32_t * pub_key_length) { char *errbuf;