aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn256/optate.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-05-24 21:40:02 +0800
committerFelix Lange <fjl@twurst.com>2017-05-24 21:40:26 +0800
commit069cb661c3587a0ff5f74c85775c2849a400cb9c (patch)
treebbdb5cfa2fea43249f04bc018d19cbad3a31b93c /crypto/bn256/optate.go
parente1e87d8b1aebe88354e2f64ffd031709524522e4 (diff)
downloadgo-tangerine-069cb661c3587a0ff5f74c85775c2849a400cb9c.tar
go-tangerine-069cb661c3587a0ff5f74c85775c2849a400cb9c.tar.gz
go-tangerine-069cb661c3587a0ff5f74c85775c2849a400cb9c.tar.bz2
go-tangerine-069cb661c3587a0ff5f74c85775c2849a400cb9c.tar.lz
go-tangerine-069cb661c3587a0ff5f74c85775c2849a400cb9c.tar.xz
go-tangerine-069cb661c3587a0ff5f74c85775c2849a400cb9c.tar.zst
go-tangerine-069cb661c3587a0ff5f74c85775c2849a400cb9c.zip
crypto/bn256: fix go vet false positive
Also add the package to the license tool ignore list.
Diffstat (limited to 'crypto/bn256/optate.go')
-rw-r--r--crypto/bn256/optate.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/bn256/optate.go b/crypto/bn256/optate.go
index 24e0bbc13..68716b62b 100644
--- a/crypto/bn256/optate.go
+++ b/crypto/bn256/optate.go
@@ -88,12 +88,12 @@ func lineFunctionDouble(r *twistPoint, q *curvePoint, pool *bnPool) (a, b, c *gf
A := newGFp2(pool).Square(r.x, pool)
B := newGFp2(pool).Square(r.y, pool)
- C := newGFp2(pool).Square(B, pool)
+ C_ := newGFp2(pool).Square(B, pool)
D := newGFp2(pool).Add(r.x, B)
D.Square(D, pool)
D.Sub(D, A)
- D.Sub(D, C)
+ D.Sub(D, C_)
D.Add(D, D)
E := newGFp2(pool).Add(A, A)
@@ -112,7 +112,7 @@ func lineFunctionDouble(r *twistPoint, q *curvePoint, pool *bnPool) (a, b, c *gf
rOut.y.Sub(D, rOut.x)
rOut.y.Mul(rOut.y, E, pool)
- t := newGFp2(pool).Add(C, C)
+ t := newGFp2(pool).Add(C_, C_)
t.Add(t, t)
t.Add(t, t)
rOut.y.Sub(rOut.y, t)
@@ -142,7 +142,7 @@ func lineFunctionDouble(r *twistPoint, q *curvePoint, pool *bnPool) (a, b, c *gf
A.Put(pool)
B.Put(pool)
- C.Put(pool)
+ C_.Put(pool)
D.Put(pool)
E.Put(pool)
G.Put(pool)