[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNU Crypto] Problems using Asyncron encryption...
From: |
Casey Marshall |
Subject: |
Re: [GNU Crypto] Problems using Asyncron encryption... |
Date: |
Mon, 29 Mar 2004 21:08:41 -0800 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> ":" == <address@hidden> writes:
:> Hi :) I am trying too use Diffie-Hellman key agreement
:> protocols. How ever, I cant seem to get it to work when using 2
:> different applications. It is like some parameter is missing... I
:> am wondering if there is a bug or some parameter I am nor getting
:> right... I hope somebody here might know what's wrong...
Do you get an error that says "p is far too small"?
There is a bug in gnu.crypto.key.dh.GnuDHKeyPairGenerator where it
uses a prime size that is too small (512, when the key agreement
expects a prime 1024 bits or larger). I changed the key agreement code
(I think for 2.0.1) to explicitly reject small primes, but didn't
check the default parameters of the key generator class.
Pass a larger number as the `PRIME_SIZE' parameter of the key pair
generator (1024 is fine), instead of using the default parameters.
This is a bug and will be fixed for 2.0.2, probably to be released
soon, since I have a few other things in the queue that could go in.
Cheers and HTH.
- --
Casey Marshall || address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQFAaQC0gAuWMgRGsWsRAoRzAJ4sg/IhwBDMDpky/dTjvgGnav0L3wCeKR3q
O7Z19r/Ex8KinFrHcVq8hU0=
=jta5
-----END PGP SIGNATURE-----