# HG changeset patch # User Matt Johnston # Date 1103732024 0 # Node ID 3a616069cc2161829e5078904fdc1d2b1c13ab6d # Parent 9063ffd31799c7c6f0afc5738ab3fd43035d9f23 tommath_class.h: make sure that toom and karatsuba code really doesn't get compiled in. diff -r 9063ffd31799 -r 3a616069cc21 tommath_class.h --- a/tommath_class.h Mon Dec 20 14:47:48 2004 +0000 +++ b/tommath_class.h Wed Dec 22 16:13:44 2004 +0000 @@ -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