remove s_mp_mul which is only used once
diff --git a/bn_mp_mul.c b/bn_mp_mul.c
index c457a9e..c69c349 100644
--- a/bn_mp_mul.c
+++ b/bn_mp_mul.c
@@ -73,7 +73,7 @@ GO_ON:
#endif
{
#ifdef BN_S_MP_MUL_DIGS_C
- res = s_mp_mul(a, b, c); /* uses s_mp_mul_digs */
+ res = s_mp_mul_digs(a, b, c, a->used + b->used + 1);
#else
res = MP_VAL;
#endif
@@ -84,4 +84,3 @@ END:
return res;
}
#endif
-
diff --git a/tommath_private.h b/tommath_private.h
index 35639a5..2377e17 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -36,7 +36,6 @@ extern void MP_FREE(void *mem, size_t size);
/* lowlevel functions, do not call! */
int s_mp_add(const mp_int *a, const mp_int *b, mp_int *c);
int s_mp_sub(const mp_int *a, const mp_int *b, mp_int *c);
-#define s_mp_mul(a, b, c) s_mp_mul_digs(a, b, c, (a)->used + (b)->used + 1)
int fast_s_mp_mul_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs);
int s_mp_mul_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs);
int fast_s_mp_mul_high_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs);