C code for Diffie-Hellman key exhange protocols with Digital Singnature Algorthim (DSA)

kwnan
kwnan used Ask the Experts™
on
Hi

I am looking for C code applying Diffie-Hellman key exhange protocols with Digital Singnature Algorthim (DSA) bwetwen two nodes??

Could you help in this.

Regards
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave HoweSoftware and Hardware Engineer

Commented:
This is pretty common - openssl will have such code in it for example. Do you want to be more specific about what you want to achieve?

Author

Commented:
Thanks for your reply

I want to simulate this protocol Diffie-Hellman key exhange protocol with Digital Singnature Algorthim (DSA) to generate one shared key between two nodes. the shared key will be used in later phase which can then be used to encrypt subsequent communications, but first I need to generate the shared key in C code.
Software and Hardware Engineer
Commented:
Oh, ok. if you don't need specific compatability (ssl or ipsec) then this example may do:

http://daveti.blog.com/2011/04/21/diffiehellman-key-exchange-dh-algorithm-in-c/

Author

Commented:
Thanks for the link but it seems that only DH protocol is implemented without Digital Signature for authentication. ??
Dave HoweSoftware and Hardware Engineer

Commented:
indeed, but to do that you would normally just digitally sign one or both of the exchange packets. there is elgamal c source here - http://www.koders.com/c/fid90838E6E27F33D1D8411FA994F2308A367A643A0.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial