summaryrefslogtreecommitdiff
path: root/ecc-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2017-09-23 11:33:31 +0200
committerNiels Möller <nisse@lysator.liu.se>2017-09-23 11:33:31 +0200
commitc33b0ea63bb7ece8f25e8e4de7822ee48dca43af (patch)
tree1ea10f64bc71835b005f20f316c45b746f39714b /ecc-internal.h
parent1a6bd65f921d5a753d0eca552a7f4b93a13da6dc (diff)
downloadnettle-c33b0ea63bb7ece8f25e8e4de7822ee48dca43af.tar.gz
Comment fixes.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r--ecc-internal.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ecc-internal.h b/ecc-internal.h
index 643277c0..5090dec7 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -283,17 +283,16 @@ ecc_a_to_j (const struct ecc_curve *ecc,
/* Converts a point P in jacobian coordinates into a point R in affine
coordinates. If op == 1, produce x coordinate only. If op == 2,
- produce the x coordiante only, and in also it modulo q. FIXME: For
- the public interface, have separate for the three cases, and use
- this flag argument only for the internal ecc->h_to_a function. */
+ produce the x coordinate only, and also reduce it modulo q. */
void
ecc_j_to_a (const struct ecc_curve *ecc,
int op,
mp_limb_t *r, const mp_limb_t *p,
mp_limb_t *scratch);
-/* Converts a point P on an Edwards curve to affine coordinates on
- the corresponding Montgomery curve. */
+/* Converts a point P in homogeneous coordinates on an Edwards curve
+ to affine coordinates. Meaning of op is the same as for
+ ecc_j_to_a. */
void
ecc_eh_to_a (const struct ecc_curve *ecc,
int op,