X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/1589affab225db500965e2cb869c534d6860e6bd..4edc47b89bc56cd4041fdb0f4e8e892acd589ed8:/ec-info.c diff --git a/ec-info.c b/ec-info.c index a99cba5..bcc0ab8 100644 --- a/ec-info.c +++ b/ec-info.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: ec-info.c,v 1.2 2004/04/01 12:50:09 mdw Exp $ + * $Id: ec-info.c,v 1.3 2004/04/01 21:28:41 mdw Exp $ * * Elliptic curve information management * @@ -30,6 +30,11 @@ /*----- Revision history --------------------------------------------------* * * $Log: ec-info.c,v $ + * Revision 1.3 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.2 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. @@ -202,6 +207,10 @@ static void getinfo(ec_info *ei, ecdata *ed) f = field_binpoly(&ed->p); ei->c = ec_binproj(f, &ed->a, &ed->b); break; + case FTAG_BINNORM: + f = field_binnorm(&ed->p, &ed->beta); + ei->c = ec_binproj(f, &ed->a, &ed->b); + break; default: abort(); }