X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/72f137998da57fc76a946baa73ac469235aa4852..41cb1beba35c8a69ee7ae1298f51711995011b5c:/ec.h diff --git a/ec.h b/ec.h index 2efe939..105838c 100644 --- a/ec.h +++ b/ec.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: ec.h,v 1.3 2002/01/13 13:48:44 mdw Exp $ + * $Id: ec.h,v 1.4 2003/05/15 23:25:59 mdw Exp $ * * Elliptic curve definitions * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: ec.h,v $ + * Revision 1.4 2003/05/15 23:25:59 mdw + * Make elliptic curve stuff build. + * * Revision 1.3 2002/01/13 13:48:44 mdw * Further progress. * @@ -74,7 +77,7 @@ typedef struct ec { typedef struct ec_mulfactor { ec base; /* The point */ - ec *exp; /* The exponent */ + mp *exp; /* The exponent */ } ec_mulfactor; /* --- Elliptic curve operations --- */ @@ -372,7 +375,7 @@ extern ec *ec_projout(ec_curve */*c*/, ec */*d*/, const ec */*p*/); * * Arguments: @ec_curve *c@ = pointer to an elliptic curve * @ec *d@ = pointer to the destination - * @const ec *a, *b@ = the operand points + * @const ec *p, *q@ = the operand points * * Returns: The destination @d@. * @@ -381,7 +384,8 @@ extern ec *ec_projout(ec_curve */*c*/, ec */*d*/, const ec */*p*/); * subtraction operator. */ -extern ec *ec_stdsub(ec_curve */*c*/, ec */*d*/, const ec */*p*/); +extern ec *ec_stdsub(ec_curve */*c*/, ec */*d*/, + const ec */*p*/, const ec */*q*/); /*----- Creating curves ---------------------------------------------------*/