// COMPLETE THREAD

C-source for diffie-hellman?

3 expanded posts ยท every known parent and child

NODE e8ffbac2C-source for diffie-hellman?
I was just talking with a friend, and I think it would be
pretty good for medium-level security on irc to hack up something do
that /dcc does diffie-hellman key exchange, and maybe triple-des or
something.
	Is there some available C-source which would help? (I guess I
should get the Schneier book.. But urgh! $50 on a "starving-student"
budget is quite a bit.)
NODE 0695b21eRe: C-source for diffie-hellman?
RSAREF version 1.1 (and higher) has Diffie Helman key exchange in
it.  I suggest you ftp this from rsa.com and try it.

-derek

         Derek Atkins, SB '93 MIT EE, G MIT Media Laboratory
     Secretary, MIT Student Information Processing Board (SIPB)
         PGP key available from pgp-public-keys@pgp.mit.edu
            warlord@MIT.EDU       PP-ASEL        N1NWH
NODE b4b807a7Re: <8c> C-source for diffie-hellman?
# 	I was just talking with a friend, and I think it would be
# pretty good for medium-level security on irc to hack up something do
# that /dcc does diffie-hellman key exchange, and maybe triple-des or
# something.
# 	Is there some available C-source which would help? (I guess I
# should get the Schneier book.. But urgh! $50 on a "starving-student"
# budget is quite a bit.)

DH itself is a trivial algorithm.  All you need is a decent
multiple precsion math package.    I think all it takes is
	-- random numbers
	-- primality test
	-- gcd
	-- raise-to-power-modulo-some-number

There's lots of Multiple Precision libraries availble.
The Gnu 'gmp' is more than sufficient.  Also des is very
easy to ftp.  See the cypherpunks ftp site at 
	ftp://soda.berkeley.edu/pub/cypherpunks/
for pointers.

					strick


BTW, schneier is literally a FAQ for cypherpunks.  
Fantastic book.  Cough up the money for it...