projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34e4f73
)
Remove debugging code.
author
mdw
<mdw>
Thu, 1 Apr 2004 12:50:27 +0000
(12:50 +0000)
committer
mdw
<mdw>
Thu, 1 Apr 2004 12:50:27 +0000
(12:50 +0000)
calc/ec2.cal
patch
|
blob
|
blame
|
history
diff --git
a/calc/ec2.cal
b/calc/ec2.cal
index
3e89034
..
9159f54
100644
(file)
--- a/
calc/ec2.cal
+++ b/
calc/ec2.cal
@@
-1,6
+1,6
@@
/* -*-apcalc-*-
*
/* -*-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
*
*
* Testbed for elliptic curve arithmetic over binary fields
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: ec2.cal,v $
/*----- 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.
*
* 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;
local e, alpha;
local obj ec2_pt d;
- print "> ecadd: ", a, b;
if (a == 0)
d = b;
else if (b == 0)
if (a == 0)
d = b;
else if (b == 0)
@@
-107,7
+109,6
@@
define ec2_pt_add(a, b)
d.e = e;
}
d.e = e;
}
- print "< ecadd: ", d;
return (d);
}
return (d);
}
@@
-115,7
+116,6
@@
define ec2_pt_dbl(a)
{
local e, alpha;
local obj ec2_pt d;
{
local e, alpha;
local obj ec2_pt d;
- print "> ecdbl: ", a;
if (istype(a, 1))
return (0);
e = a.e;
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;
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);
}
return (d);
}