Remove debugging code.
authormdw <mdw>
Thu, 1 Apr 2004 12:50:27 +0000 (12:50 +0000)
committermdw <mdw>
Thu, 1 Apr 2004 12:50:27 +0000 (12:50 +0000)
calc/ec2.cal

index 3e89034..9159f54 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-apcalc-*-
  *
- * $Id: ec2.cal,v 1.2 2004/03/21 22:52:06 mdw Exp $
+ * $Id: ec2.cal,v 1.3 2004/04/01 12:50:27 mdw Exp $
  *
  * Testbed for elliptic curve arithmetic over binary fields
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: ec2.cal,v $
+ * Revision 1.3  2004/04/01 12:50:27  mdw
+ * Remove debugging code.
+ *
  * Revision 1.2  2004/03/21 22:52:06  mdw
  * Merge and close elliptic curve branch.
  *
@@ -83,7 +86,6 @@ define ec2_pt_add(a, b)
   local e, alpha;
   local obj ec2_pt d;
 
-  print "> ecadd: ", a, b;
   if (a == 0)
     d = b;
   else if (b == 0)
@@ -107,7 +109,6 @@ define ec2_pt_add(a, b)
     d.e = e;
   }
 
-  print "< ecadd: ", d;
   return (d);
 }
 
@@ -115,7 +116,6 @@ define ec2_pt_dbl(a)
 {
   local e, alpha;
   local obj ec2_pt d;
-  print "> ecdbl: ", a;
   if (istype(a, 1))
     return (0);
   e = a.e;
@@ -123,7 +123,6 @@ define ec2_pt_dbl(a)
   d.x = (e.a + alpha^2 + alpha) % e.p;
   d.y = ((a.x + d.x) * alpha + d.x + a.y) % e.p;
   d.e = e;
-  print "< ecdbl: ", d;
   return (d);
 }