Elliptic curves on binary fields work.
[u/mdw/catacomb] / gfx.h
diff --git a/gfx.h b/gfx.h
index 778baee..d525650 100644 (file)
--- a/gfx.h
+++ b/gfx.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: gfx.h,v 1.1 2000/10/08 15:49:37 mdw Exp $
+ * $Id: gfx.h,v 1.1.4.1 2004/03/21 22:39:46 mdw Exp $
  *
  * Low-level arithmetic on binary polynomials
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: gfx.h,v $
+ * Revision 1.1.4.1  2004/03/21 22:39:46  mdw
+ * Elliptic curves on binary fields work.
+ *
  * Revision 1.1  2000/10/08 15:49:37  mdw
  * First glimmerings of binary polynomial arithmetic.
  *
@@ -112,6 +115,19 @@ extern void gfx_mul(mpw */*dv*/, mpw */*dvl*/,
                    const mpw */*av*/, const mpw */*avl*/,
                    const mpw */*bv*/, const mpw */*bvl*/);
 
+/* --- @gfx_sqr@ --- *
+ *
+ * Arguments:  @mpw *dv, *dvl@ = destination vector base and limit
+ *             @const mpw *av, *avl@ = argument vector base and limit
+ *
+ * Returns:    ---
+ *
+ * Use:                Performs squaring of binary polynomials.
+ */
+
+extern void gfx_sqr(mpw */*dv*/, mpw */*dvl*/,
+                   const mpw */*av*/, const mpw */*avl*/);
+
 /* --- @gfx_div@ --- *
  *
  * Arguments:  @mpw *qv, *qvl@ = quotient vector base and limit