diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-09-17 20:58:41 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-09-17 20:59:07 +0200 |
commit | e75c7c45bd445e757420b38c0de0a77236d366d8 (patch) | |
tree | 69f0b688246a5370413a0d5460240a90b174598a /ecc-mul-a-eh.c | |
parent | 74dea233bb42194c580774513de72678fcf018c3 (diff) | |
download | nettle-e75c7c45bd445e757420b38c0de0a77236d366d8.tar.gz |
Let "affine" points for curve25519 be Edwards coordinates rather than Montgomery coordinates.
Diffstat (limited to 'ecc-mul-a-eh.c')
-rw-r--r-- | ecc-mul-a-eh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecc-mul-a-eh.c b/ecc-mul-a-eh.c index 1e9f4fc7..095e870c 100644 --- a/ecc-mul-a-eh.c +++ b/ecc-mul-a-eh.c @@ -63,7 +63,7 @@ ecc_mul_a_eh (const struct ecc_curve *ecc, unsigned i; - ecc_a_to_eh (ecc, pe, p, pe + 3*ecc->size); + ecc_a_to_j (ecc, pe, p); /* x = 0, y = 1, z = 1 */ mpn_zero (r, 3*ecc->size); @@ -108,7 +108,7 @@ table_init (const struct ecc_curve *ecc, mpn_zero (TABLE(0), 3*ecc->size); TABLE(0)[ecc->size] = TABLE(0)[2*ecc->size] = 1; - ecc_a_to_eh (ecc, TABLE(1), p, scratch); + ecc_a_to_j (ecc, TABLE(1), p); for (j = 2; j < size; j += 2) { |