X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/c3caa2face1cda7002eb58245ad75865bf437455..59919ae4b1721ca271c3d3e5955c09d322573821:/ec-exp.h diff --git a/ec-exp.h b/ec-exp.h index 0daf717..93a576f 100644 --- a/ec-exp.h +++ b/ec-exp.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: ec-exp.h,v 1.3 2004/03/21 22:52:06 mdw Exp $ + * $Id: ec-exp.h,v 1.5 2004/04/03 03:32:05 mdw Exp $ * * Exponentiation operations for elliptic curves * @@ -30,6 +30,14 @@ /*----- Revision history --------------------------------------------------* * * $Log: ec-exp.h,v $ + * Revision 1.5 2004/04/03 03:32:05 mdw + * General robustification. + * + * Revision 1.4 2004/03/22 02:19:10 mdw + * Rationalise the sliding-window threshold. Drop guarantee that right + * arguments to EC @add@ are canonical, and fix up projective implementations + * to cope. + * * Revision 1.3 2004/03/21 22:52:06 mdw * Merge and close elliptic curve branch. * @@ -63,8 +71,8 @@ #define EXP_DROP(x) EC_DESTROY(&(x)) #define EXP_MUL(a, x) EC_ADD(c, &(a), &(a), &(x)) -#define EXP_SQR(a) EC_DBL(c, &(a), &(a)); -#define EXP_FIX(x) EC_FIX(c, &(x), &(x)); +#define EXP_SQR(a) EC_DBL(c, &(a), &(a)) +#define EXP_FIX(x) #define EXP_SETMUL(d, x, y) do { \ EC_CREATE(&(d)); \