crypto/bn256: fix go vet false positive

Also add the package to the license tool ignore list.
This commit is contained in:
Felix Lange
2017-05-24 15:40:02 +02:00
parent e1e87d8b1a
commit 069cb661c3
5 changed files with 26 additions and 23 deletions

View File

@ -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