<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
Hi,<BR>
<BR>
I used dropbear that was ported to tomsfastmath library(instead of tommath).<BR>
I reduced the login delay on my machine (powerpc 8xx 50MHz) to 5 seconds!<BR>
<BR>
I would like to reduce the delay more. Is anyone has any idea?<BR>
<BR>
Thanks<BR>
<BR>
Avner<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: Avner Flesch &lt;<A HREF="mailto:Avner%20Flesch%20%3cavnerf@web-silicon.com%3e">avnerf@web-silicon.com</A>&gt;<BR>
<B>To</B>: Rob Landley &lt;<A HREF="mailto:Rob%20Landley%20%3crob@landley.net%3e">rob@landley.net</A>&gt;<BR>
<B>Cc</B>: Gary &lt;<A HREF="mailto:Gary%20%3cgmart@coinet.com%3e">gmart@coinet.com</A>&gt;, <A HREF="mailto:dropbear@ucc.asn.au">dropbear@ucc.asn.au</A><BR>
<B>Subject</B>: Re: Long delay during login<BR>
<B>Date</B>: Tue, 11 Oct 2011 18:05:01 +0200<BR>
<BR>
Hi,<BR>
<BR>
I have also the same issue with dropbear version 0.53.1 on powerpc 50MHz 32bits the login took more then 30 seconds.<BR>
After I updated the libtomath library to version 0.42 and libtomcrypt version to 1.17<BR>
I reduced the delay to 13 seconds.<BR>
<BR>
But it still not enough - after a research I found that the delay is in the routine &quot;mp_exptmod_fast&quot; from libtommath, there is a for(;;) loop<BR>
that take a while.<BR>
Is anyone know how can I overcome this issue?<BR>
<BR>
Thanks<BR>
<BR>
Avner<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: Rob Landley &lt;<A HREF="mailto:Rob%20Landley%20%3crob@landley.net%3e">rob@landley.net</A>&gt;<BR>
<B>To</B>: Gary &lt;<A HREF="mailto:Gary%20%3cgmart@coinet.com%3e">gmart@coinet.com</A>&gt;<BR>
<B>Cc</B>: <A HREF="mailto:dropbear@ucc.asn.au">dropbear@ucc.asn.au</A><BR>
<B>Subject</B>: Re: Long delay during login<BR>
<B>Date</B>: Sat, 01 Oct 2011 14:00:28 -0500<BR>
<BR>
<PRE>
On 09/28/2011 01:31 PM, Gary wrote:
&gt; Matt Johnston &lt;matt &lt;at&gt; ucc.asn.au&gt; writes:
&gt; 
&gt; On Mon, Jun 13, 2005 at 10:21:53AM +0100, Simon Rowe wrote:
&gt;&gt; We're seeing a long delay when logging in using dropbear on to our embedded 
&gt;&gt; system (60MHz PowerPC). Looking at the debug from the client end it appears 
&gt;&gt; that the issue is the Diffie-Hellman key negotiation within dropbear
&gt;&gt;
&gt;&gt; debug1: expecting SSH2_MSG_KEXDH_REPLY
&gt;&gt;
&gt;&gt; [delay of about 8 seconds]
&gt;&gt;
&gt;&gt; Is there anything we can change to reduce this delay?
&gt; 
&gt; 
&gt; Same problem here.  My bet is that it's blocking on the random 
&gt; device.  For me ssh'ng to a busy machine is fast, ssh'ng to an
&gt; idle machine almost always has a BIG delay.

Switch from /dev/random to /dev/urandom perhaps?

Rob

</PRE>
<BR>
<BR>
</BODY>
</HTML>