[ pycrypto-Bugs-1041588 ] wishlist: DH key agreement

"SourceForge.net" <[email protected]> Thu, 04 Aug 2005 05:22:25 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Bugs item #1041588, was opened at 2004-10-06 16:26
Message generated for change (Comment added) made by zooko
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1041588&group_id=20937

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Zooko O'Whielacronx (zooko)
Assigned to: Nobody/Anonymous (nobody)
Summary: wishlist: DH key agreement

Initial Comment:
I need something that is not encryption nor
authentication, but key agreement.  That is: Alice
generates random x, Bob generates random y, Alice
computes g^x mod p, Bob computes g^y mod p, Alice
(given g^y), computes (g^y)^x.

How can I accomplish this?


----------------------------------------------------------------------

>Comment By: Zooko O'Whielacronx (zooko)
Date: 2005-08-04 12:22

Message:
Logged In: YES 
user_id=52562

I'm attempting to close this since it turns out DH key
agreement already works.

----------------------------------------------------------------------

Comment By: Zooko O'Whielacronx (zooko)
Date: 2005-06-14 21:27

Message:
Logged In: YES 
user_id=52562

Yes, I eventually noticed that Python does this efficiently.
 It was fine.  Not stellar -- I think it was something like
1 second for 4096 bit DH or something -- but fine.

I'm glad to see that AMK is tending to pycrypto again...

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2005-06-14 21:07

Message:
Logged In: NO 

Umm...The plain DH is rather weak in itself. I'd strongly
recommend that you pick up B. Schneiener's Practical
Cryptography.

-NcF

----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2004-10-20 16:56

Message:
Logged In: YES 
user_id=11375

Python supports pow(g,y,p) to compute g**y mod p.

----------------------------------------------------------------------

Comment By: Zooko O'Whielacronx (zooko)
Date: 2004-10-06 16:36

Message:
Logged In: YES 
user_id=52562

Well I looked into the source of pycrypto to see what it
would take to add this functionality.  It turns out that the
El Gamal stuff is implemented in 100% Pure Python!  That's
kind of shocking, but at least it answers my question about
how to compute this.  The answer is something that includes
lines like "pow(g, y) % p".  I'll be interested to see how
this performs.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1041588&group_id=20937


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf