Rearrange the file tree.
[u/mdw/catacomb] / calc / ecp.cal
index 0163d5e..700b18f 100644 (file)
@@ -1,13 +1,11 @@
 /* -*-apcalc-*-
  *
- * $Id: ecp.cal,v 1.5 2004/04/08 01:36:15 mdw Exp $
- *
  * Testbed for elliptic curve arithmetic over prime fields
  *
  * (c) 2000 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of Catacomb.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * Catacomb is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with Catacomb; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
@@ -74,7 +72,7 @@ define ecp_pt_add(a, b)
     e = a.e;
     if (a.x == b.x) {
       if (a.y != b.y) {
-        return (0);
+       return (0);
       }
       alpha = (3 * a.x^2 + e.a) * minv(2 * a.y, e.p) % e.p;
     } else