GnuTLS guile self checks takes a lot of time

Ludovic Courtès ludo at
Sun Oct 17 23:20:59 CEST 2010

Hi Simon,

Sorry for not answering earlier.

Simon Josefsson <simon at> writes:

> Simon Josefsson <simon at> writes:
>> Ludo,
>> I just ran 'make distcheck' with GnuTLS and noticed that the guile self
>> checks are taken a lot of time.  They are stuck reading /dev/*random to
>> generate DH parameters or RSA parameters.  Search for
>> 'make-dh-parameters'.  Is there any reason you need a fresh DH/RSA
>> parameter every time these self tests run?  In the C self tests, it
>> loads a static DH/RSA parameter hard coded in the binary instead, which
>> avoids expensive prime generation.
> I have fixed this:
> This is mostly cut'n'paste, so please correct my guile code.

This looks great to me, thanks–and welcome to Guile!  ;-)

ISTR that this was much slower after the switch to Nettle.  Did you
measure that?


More information about the Gnutls-devel mailing list