summaryrefslogtreecommitdiff
path: root/ecc-mul-a-eh.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2015-01-27 13:17:30 +0100
committerNiels Möller <nisse@lysator.liu.se>2015-01-27 13:17:30 +0100
commitf8870f786aa9fb5f69921e7243d660932ffec061 (patch)
treec637a6cd774566996a4ca5f138b5c8dc680185e1 /ecc-mul-a-eh.c
parentcedb87cd47af78fceed5b1d2c91d2a8950cea4a1 (diff)
downloadnettle-f8870f786aa9fb5f69921e7243d660932ffec061.tar.gz
Moved internal declarations from ecc.h to ecc-internal.h.
Diffstat (limited to 'ecc-mul-a-eh.c')
-rw-r--r--ecc-mul-a-eh.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/ecc-mul-a-eh.c b/ecc-mul-a-eh.c
index 2e273349..cf743236 100644
--- a/ecc-mul-a-eh.c
+++ b/ecc-mul-a-eh.c
@@ -38,17 +38,12 @@
#include "ecc.h"
#include "ecc-internal.h"
-mp_size_t
-ecc_mul_a_eh_itch (const struct ecc_curve *ecc)
-{
- /* Binary algorithm needs 6*ecc->p.size + scratch for ecc_add_ehh,
- total 13 ecc->p.size
+/* Binary algorithm needs 6*ecc->p.size + scratch for ecc_add_ehh,
+ total 13 ecc->p.size
- Window algorithm needs (3<<w) * ecc->p.size for the table,
- 3*ecc->p.size for a temporary point, and scratch for
- ecc_add_ehh. */
- return ECC_MUL_A_EH_ITCH (ecc->p.size);
-}
+ Window algorithm needs (3<<w) * ecc->p.size for the table,
+ 3*ecc->p.size for a temporary point, and scratch for
+ ecc_add_ehh. */
#if ECC_MUL_A_EH_WBITS == 0
void