From 1343ee4ab352718402a557c87cafb02e73da14e4 Mon Sep 17 00:00:00 2001 From: sigoa Date: Fri, 22 Dec 2017 20:42:45 +0000 Subject: [PATCH 1/2] code audit showed wrong # of params;2 params is OK (#4) the calls are done with 2 params , so we need a dummy to satisfy automatic code audit --- src/pyelliptic/arithmetic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyelliptic/arithmetic.py b/src/pyelliptic/arithmetic.py index 1eec381a..4f566574 100644 --- a/src/pyelliptic/arithmetic.py +++ b/src/pyelliptic/arithmetic.py @@ -57,7 +57,7 @@ def base10_add(a,b): y = (m*(a[0]-x)-a[1]) % P return (x,y) -def base10_double(a): +def base10_double(a, var_unused): if a == None: return None m = ((3*a[0]*a[0]+A)*inv(2*a[1],P)) % P x = (m*m-2*a[0]) % P From 04d0424207e23b669d3f4761cebe97d31a446baa Mon Sep 17 00:00:00 2001 From: sigoa Date: Fri, 22 Dec 2017 20:44:15 +0000 Subject: [PATCH 2/2] code audit showed wrong # of params;2 params is OK (#5) the calls are done with 2 params , so we need a dummy to satisfy automatic code audit