From 3aed8f709a80d81173e9a46024fee4f274acbbe6 Mon Sep 17 00:00:00 2001 From: mdw Date: Thu, 1 Apr 2004 13:37:07 +0000 Subject: [PATCH] Keep numbers positive. --- calc/ecp.cal | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/calc/ecp.cal b/calc/ecp.cal index 3834359..10ed9e4 100644 --- a/calc/ecp.cal +++ b/calc/ecp.cal @@ -1,6 +1,6 @@ /* -*-apcalc-*- * - * $Id: ecp.cal,v 1.3 2004/03/23 15:19:32 mdw Exp $ + * $Id: ecp.cal,v 1.4 2004/04/01 13:37:07 mdw Exp $ * * Testbed for elliptic curve arithmetic over prime fields * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: ecp.cal,v $ + * Revision 1.4 2004/04/01 13:37:07 mdw + * Keep numbers positive. + * * Revision 1.3 2004/03/23 15:19:32 mdw * Test elliptic curves more thoroughly. * @@ -126,7 +129,7 @@ define ecp_pt_neg(a) { local obj ecp_pt d; d.x = a.x; - d.y = -a.y; + d.y = a.e.p - a.y; d.e = a.e; return (d); } -- 2.11.0