Normal basis support (translates to poly basis internally). Rewrite
[u/mdw/catacomb] / ec-info.c
index a99cba5..bcc0ab8 100644 (file)
--- 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
  *
 /*----- 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();
   }