From: Niels Möller Date: Thu, 26 Sep 2019 04:37:05 +0000 (+0200) Subject: ecc-internal.h comment fixes. X-Git-Tag: nettle_3.6rc1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a585379ba9d1fa2dbd0d4a82a107851f9e811a;p=thirdparty%2Fnettle.git ecc-internal.h comment fixes. --- diff --git a/ecc-internal.h b/ecc-internal.h index 94fc218b..7d961f11 100644 --- a/ecc-internal.h +++ b/ecc-internal.h @@ -234,7 +234,7 @@ void ecc_mod_submul_1 (const struct ecc_modulo *m, mp_limb_t *rp, const mp_limb_t *ap, mp_limb_t b); -/* NOTE: mul and sqr needs 2*ecc->size limbs at rp */ +/* The mul and sqr functions need 2*m->size limbs at rp */ void ecc_mod_mul (const struct ecc_modulo *m, mp_limb_t *rp, const mp_limb_t *ap, const mp_limb_t *bp); @@ -281,9 +281,10 @@ 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. FIXME: + For the public interface, have separate functions for the three + cases, and use this flag argument only for the internal ecc->h_to_a + function. */ void ecc_j_to_a (const struct ecc_curve *ecc, int op,