The unified diff between revisions [1c2b7d38..] and [66d004ad..] is displayed below. It can also be downloaded as a raw diff.

#
#
# delete "bn.ilg"
#
# delete "bn.ind"
#
# delete "bn.pdf"
#
# delete "poster.pdf"
#
# delete "tommath.pdf"
#
# rename "makefile"
#     to "Makefile.in"
#
# patch "Makefile.in"
#  from [de414341231693d9e731aeccd57e4bedb8e61576]
#    to [e5a7155ca2d337d40c64a637035b4fc17f1cb30b]
#
# patch "bn_mp_clear.c"
#  from [2378b1b2751c869649011dc51b5e4626c20b22a4]
#    to [c9bfa696a05f994a75aafca2800ac5c935ed0c2d]
#
# patch "tommath.h"
#  from [843992469bb93bf63e0478afe888aeae1e58544b]
#    to [f247596b2e4ec673a18a7c5fcb9534594301f23f]
#
# patch "tommath_class.h"
#  from [901cd5a1b7d073ac104c6b5a1ef3c4df2f880345]
#    to [91b56882a4d3c4f863c80d0b67084a16a5c24711]
#
============================================================
--- makefile	de414341231693d9e731aeccd57e4bedb8e61576
+++ Makefile.in	e5a7155ca2d337d40c64a637035b4fc17f1cb30b
@@ -5,28 +5,28 @@ VERSION=0.40
 #version of library
 VERSION=0.40

-CFLAGS  +=  -I./ -Wall -W -Wshadow -Wsign-compare
+VPATH=@srcdir@
+srcdir=@srcdir@

-ifndef MAKE
-   MAKE=make
-endif
+# Dropbear takes flags from the toplevel makefile
+CFLAGS += -I$(srcdir)

+#CFLAGS  +=  -I./ -Wall -W -Wshadow -Wsign-compare
+
 ifndef IGNORE_SPEED

 #for speed
-CFLAGS += -O3 -funroll-loops
+#CFLAGS += -O3 -funroll-all-loops

 #for size
 #CFLAGS += -Os

 #x86 optimizations [should be valid for any GCC install though]
-CFLAGS  += -fomit-frame-pointer
+#CFLAGS  += -fomit-frame-pointer

 #debug
 #CFLAGS += -g3

-endif
-
 #install as this user
 ifndef INSTALL_GROUP
    GROUP=wheel
============================================================
--- bn_mp_clear.c	2378b1b2751c869649011dc51b5e4626c20b22a4
+++ bn_mp_clear.c	c9bfa696a05f994a75aafca2800ac5c935ed0c2d
@@ -19,14 +19,17 @@ mp_clear (mp_int * a)
 void
 mp_clear (mp_int * a)
 {
-  int i;
+  volatile mp_digit *p;
+  int len;

   /* only do anything if a hasn't been freed previously */
   if (a->dp != NULL) {
     /* first zero the digits */
-    for (i = 0; i < a->used; i++) {
-        a->dp[i] = 0;
-    }
+	len = a->alloc;
+	p = a->dp;
+	while (len--) {
+		*p++ = 0;
+	}

     /* free ram */
     XFREE(a->dp);
============================================================
--- tommath.h	843992469bb93bf63e0478afe888aeae1e58544b
+++ tommath.h	f247596b2e4ec673a18a7c5fcb9534594301f23f
@@ -21,7 +21,7 @@
 #include <ctype.h>
 #include <limits.h>

-#include <tommath_class.h>
+#include "tommath_class.h"

 #ifndef MIN
    #define MIN(x,y) ((x)<(y)?(x):(y))
============================================================
--- tommath_class.h	901cd5a1b7d073ac104c6b5a1ef3c4df2f880345
+++ tommath_class.h	91b56882a4d3c4f863c80d0b67084a16a5c24711
@@ -988,12 +988,18 @@
 #ifdef LTM3
 #define LTM_LAST
 #endif
-#include <tommath_superclass.h>
-#include <tommath_class.h>
+#include "tommath_superclass.h"
+#include "tommath_class.h"
 #else
 #define LTM_LAST
 #endif

+/* Dropbear doesn't need these. */
+#undef BN_MP_KARATSUBA_MUL_C
+#undef BN_MP_KARATSUBA_SQR_C
+#undef BN_MP_TOOM_MUL_C
+#undef BN_MP_TOOM_SQR_C
+
 /* $Source: /cvs/libtom/libtommath/tommath_class.h,v $ */
 /* $Revision: 1.3 $ */
 /* $Date: 2005/07/28 11:59:32 $ */