X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/1589affab225db500965e2cb869c534d6860e6bd..4edc47b89bc56cd4041fdb0f4e8e892acd589ed8:/ec.c diff --git a/ec.c b/ec.c index 13e9b84..9a929ca 100644 --- a/ec.c +++ b/ec.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: ec.c,v 1.8 2004/04/01 12:50:09 mdw Exp $ + * $Id: ec.c,v 1.9 2004/04/01 21:28:41 mdw Exp $ * * Elliptic curve definitions * @@ -30,6 +30,11 @@ /*----- Revision history --------------------------------------------------* * * $Log: ec.c,v $ + * Revision 1.9 2004/04/01 21:28:41 mdw + * Normal basis support (translates to poly basis internally). Rewrite + * EC and prime group table generators in awk, so that they can reuse data + * for repeated constants. + * * Revision 1.8 2004/04/01 12:50:09 mdw * Add cyclic group abstraction, with test code. Separate off exponentation * functions for better static linking. Fix a buttload of bugs on the way. @@ -216,7 +221,7 @@ ec *ec_idfix(ec_curve *c, ec *d, const ec *p) return (d); } -/* --- @ec_projin@, @ec_projout@ --- * +/* --- @ec_projin@, @ec_projout@, @ec_projfix@ --- * * * Arguments: @ec_curve *c@ = pointer to an elliptic curve * @ec *d@ = pointer to the destination @@ -282,7 +287,7 @@ ec *ec_projfix(ec_curve *c, ec *d, const ec *p) mp_drop(d->z); d->z = MP_COPY(f->one); } - return (d); + return (d); } /* --- @ec_stdsub@ --- *