Avatar of kwnan
kwnan
 asked on

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

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
EncryptionNetwork SecurityC

Avatar of undefined
Last Comment
Dave Howe

8/22/2022 - Mon
Dave Howe

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?
kwnan

ASKER
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.
ASKER CERTIFIED SOLUTION
Dave Howe

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
kwnan

ASKER
Thanks for the link but it seems that only DH protocol is implemented without Digital Signature for authentication. ??
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Dave Howe

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