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
Avatar of Dave Howe
Dave Howe
Flag of United Kingdom of Great Britain and Northern Ireland image

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?
Avatar of kwnan
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
Avatar of Dave Howe
Dave Howe
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of kwnan
kwnan

ASKER

Thanks for the link but it seems that only DH protocol is implemented without Digital Signature for authentication. ??
Avatar of Dave Howe
Dave Howe
Flag of United Kingdom of Great Britain and Northern Ireland image

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
C
C

C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, so it has found lasting use in applications that had formerly been coded in assembly language, including operating systems as well as various application software for computers ranging from supercomputers to embedded systems. It is distinct from C++ (which has its roots in C) and C#, and many later languages have borrowed directly or indirectly from C.

23K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo