Re: libssh2_session_handshake remains stuck

2021-06-23 Thread Peter Stuge
Hi Simone, Simone Azzalin wrote: > After looking at /dev/random, I noticed that it's not being updated as > fast as /dev/urandom... Please consider why that is so. > So I just thought to force libgcrypt to use /dev/urandom. Is /dev/urandom suitable for cryptography? > I recompiled all in a

Re: libssh2_session_handshake remains stuck

2021-06-23 Thread Simone Azzalin
Well, After looking at /dev/random, I noticed that it's not being updated as fast as /dev/urandom... So I just thought to force libgcrypt to use /dev/urandom. To do this I changed the libgcrypt configure file (lines 13082:13803) from *NAME_OF_DEV_RANDOM="/dev/random"**

Re: libssh2_session_handshake remains stuck

2021-06-22 Thread Simone Azzalin
Hello Peter, Thank for your useful information. Yes this is an embedded system. I will try the solution that you suggest as soon as possible and give you a feedback. Simon On 6/22/21 4:24 PM, Peter Stuge wrote: Simone Azzalin wrote: I have noticed that during the first minutes after boot,

Re: libssh2_session_handshake remains stuck

2021-06-22 Thread Peter Stuge
Simone Azzalin wrote: > I have noticed that during the first minutes after boot, the > libssh2_session_handshake execution remains stuck blocking the > execution of the program. Is that an embedded system, without a strong entropy source? > Is this a known issue ? Do you have any possible