summaryrefslogtreecommitdiff
path: root/curve25519-mul.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2016-06-20 07:11:34 +0200
committerNiels Möller <nisse@lysator.liu.se>2016-06-20 07:11:34 +0200
commitb4115a0abeef459dde9a466ccec98e064fac88ee (patch)
treed74ad7f20bf365bc3fe8623dd285f6a4e421732a /curve25519-mul.c
parentecee49032a152c23a2ee237999f665f9c219ffb5 (diff)
downloadnettle-b4115a0abeef459dde9a466ccec98e064fac88ee.tar.gz
Add FIXME comment.
Diffstat (limited to 'curve25519-mul.c')
-rw-r--r--curve25519-mul.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/curve25519-mul.c b/curve25519-mul.c
index f5127d77..ba76bc0b 100644
--- a/curve25519-mul.c
+++ b/curve25519-mul.c
@@ -122,6 +122,7 @@ curve25519_mul (uint8_t *q, const uint8_t *n, const uint8_t *p)
ecc_modp_sqr (ecc, DA, C);
ecc_modp_mul (ecc, z3, DA, x1);
+ /* FIXME: Could be combined with the loop's initial cnd_swap. */
cnd_swap (bit, x2, x3, 2*ecc->p.size);
}
/* Do the 3 low zero bits, just duplicating x2 */