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.)
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
# 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...
participants (3)
-
Derek Atkins -
henry strickland -
Sameer