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
This commit is contained in:
sigoa 2017-12-22 20:42:45 +00:00 committed by GitHub
parent 4ac0d30e4d
commit 1343ee4ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ def base10_add(a,b):
y = (m*(a[0]-x)-a[1]) % P y = (m*(a[0]-x)-a[1]) % P
return (x,y) return (x,y)
def base10_double(a): def base10_double(a, var_unused):
if a == None: return None if a == None: return None
m = ((3*a[0]*a[0]+A)*inv(2*a[1],P)) % P m = ((3*a[0]*a[0]+A)*inv(2*a[1],P)) % P
x = (m*m-2*a[0]) % P x = (m*m-2*a[0]) % P