Haig C Didizian wrote:

> What takes everything so long to be set up then if I use a 512-bit key?
> Is it the prime number?

The prime and generator are fixed for a set of participants.  Calculating
the public key value and generating the DH shared secret through key
agreement with another party require more computation with longer key
lengths.

X = g**x mod p takes longer to compute as x gets bigger...

Using a fast modular exponentiation method yields times that
are roughly O(lg(n)),  which means that exponents that are
twice as long take twice as much time.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to