summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-12-22 16:13:44 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-12-22 16:13:44 +0000
commit106861d6fd0ee1169310a1908e2b08feec8b9c56 (patch)
tree450e5afaf3ba84c2f8deb66d835e4ecbf8e01533
parent3c47901118f48a0b9453f16f826bf7648bcfad3f (diff)
downloaddropbear-106861d6fd0ee1169310a1908e2b08feec8b9c56.tar.gz
tommath_class.h: make sure that toom and karatsuba code really doesn't get
compiled in.
-rw-r--r--tommath_class.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/tommath_class.h b/tommath_class.h
index 5fb50c8..4e54b53 100644
--- a/tommath_class.h
+++ b/tommath_class.h
@@ -57,10 +57,8 @@
#define BN_MP_INVMOD_SLOW_C
#define BN_MP_IS_SQUARE_C
#define BN_MP_JACOBI_C
-/* matt - dropbear doesn't need these
#define BN_MP_KARATSUBA_MUL_C
#define BN_MP_KARATSUBA_SQR_C
-*/
#define BN_MP_LCM_C
#define BN_MP_LSHD_C
#define BN_MP_MOD_C
@@ -108,10 +106,8 @@
#define BN_MP_SUBMOD_C
#define BN_MP_TO_SIGNED_BIN_C
#define BN_MP_TO_UNSIGNED_BIN_C
-/* matt - dropbear doesn't need these
#define BN_MP_TOOM_MUL_C
#define BN_MP_TOOM_SQR_C
-*/
#define BN_MP_TORADIX_C
#define BN_MP_TORADIX_N_C
#define BN_MP_UNSIGNED_BIN_SIZE_C
@@ -953,3 +949,9 @@
#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