summaryrefslogtreecommitdiff
path: root/ecc-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-17 20:58:41 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-17 20:59:07 +0200
commite75c7c45bd445e757420b38c0de0a77236d366d8 (patch)
tree69f0b688246a5370413a0d5460240a90b174598a /ecc-internal.h
parent74dea233bb42194c580774513de72678fcf018c3 (diff)
downloadnettle-e75c7c45bd445e757420b38c0de0a77236d366d8.tar.gz
Let "affine" points for curve25519 be Edwards coordinates rather than Montgomery coordinates.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r--ecc-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecc-internal.h b/ecc-internal.h
index f6f0cd1e..ffa6fe26 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -274,7 +274,7 @@ curve25519_eh_to_x (mp_limb_t *xp, const mp_limb_t *p,
/* Current scratch needs: */
#define ECC_MODINV_ITCH(size) (3*(size))
#define ECC_J_TO_A_ITCH(size) (5*(size))
-#define ECC_EH_TO_A_ITCH(size) (5*(size))
+#define ECC_EH_TO_A_ITCH(size) (4*(size))
#define ECC_A_TO_EH_ITCH(size) (2*(size))
#define ECC_DUP_JJ_ITCH(size) (5*(size))
#define ECC_DUP_EH_ITCH(size) (5*(size))