aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn256/gfp6.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/gfp6.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/gfp6.go')
-rw-r--r--crypto/bn256/gfp6.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/bn256/gfp6.go b/crypto/bn256/gfp6.go
index 8fd777d52..218856617 100644
--- a/crypto/bn256/gfp6.go
+++ b/crypto/bn256/gfp6.go
@@ -266,13 +266,13 @@ func (e *gfP6) Invert(a *gfP6, pool *bnPool) *gfP6 {
t1.Mul(a.y, a.z, pool)
B.Sub(B, t1)
- C := newGFp2(pool)
- C.Square(a.y, pool)
+ C_ := newGFp2(pool)
+ C_.Square(a.y, pool)
t1.Mul(a.x, a.z, pool)
- C.Sub(C, t1)
+ C_.Sub(C_, t1)
F := newGFp2(pool)
- F.Mul(C, a.y, pool)
+ F.Mul(C_, a.y, pool)
F.MulXi(F, pool)
t1.Mul(A, a.z, pool)
F.Add(F, t1)
@@ -282,14 +282,14 @@ func (e *gfP6) Invert(a *gfP6, pool *bnPool) *gfP6 {
F.Invert(F, pool)
- e.x.Mul(C, F, pool)
+ e.x.Mul(C_, F, pool)
e.y.Mul(B, F, pool)
e.z.Mul(A, F, pool)
t1.Put(pool)
A.Put(pool)
B.Put(pool)
- C.Put(pool)
+ C_.Put(pool)
F.Put(pool)
return e