[Help-gnutls] Diffie Hellman

Lennart Koopmann lennart at scopeport.org
Mon Nov 3 14:26:43 CET 2008

On Monday 03 November 2008 14:14:11 you wrote:
> I don't see how all this makes sense:
> The number of DH prime bits is established on a call to
> gnutls_dh_params_generate2 (dh_params, DH_BITS);
> This is when the prime and generator are generated.

That's true. Sorry my reply was quite unspecific about that.
But as far as I understand gnutls_dh_params_generate2() generates the pair of 
prime and generator, while gnutls_dh_set_prime_bits() sets a minimum DH size 
for a conversation. I did not test it, but this might enable you to allow 
different DH sizes in different conversations.

I am handing over to the GnuTLS experts! ;)

More information about the Gnutls-help mailing list