diff options
author | Felix Lange <fjl@twurst.com> | 2017-05-24 21:40:02 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-05-24 21:40:26 +0800 |
commit | 069cb661c3587a0ff5f74c85775c2849a400cb9c (patch) | |
tree | bbdb5cfa2fea43249f04bc018d19cbad3a31b93c /crypto/bn256/curve.go | |
parent | e1e87d8b1aebe88354e2f64ffd031709524522e4 (diff) | |
download | go-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/curve.go')
-rw-r--r-- | crypto/bn256/curve.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/bn256/curve.go b/crypto/bn256/curve.go index 93f858def..233b1f252 100644 --- a/crypto/bn256/curve.go +++ b/crypto/bn256/curve.go @@ -186,14 +186,14 @@ func (c *curvePoint) Double(a *curvePoint, pool *bnPool) { A.Mod(A, P) B := pool.Get().Mul(a.y, a.y) B.Mod(B, P) - C := pool.Get().Mul(B, B) - C.Mod(C, P) + C_ := pool.Get().Mul(B, B) + C_.Mod(C_, P) t := pool.Get().Add(a.x, B) t2 := pool.Get().Mul(t, t) t2.Mod(t2, P) t.Sub(t2, A) - t2.Sub(t, C) + t2.Sub(t, C_) d := pool.Get().Add(t2, t2) t.Add(A, A) e := pool.Get().Add(t, A) @@ -203,7 +203,7 @@ func (c *curvePoint) Double(a *curvePoint, pool *bnPool) { t.Add(d, d) c.x.Sub(f, t) - t.Add(C, C) + t.Add(C_, C_) t2.Add(t, t) t.Add(t2, t2) c.y.Sub(d, c.x) @@ -217,7 +217,7 @@ func (c *curvePoint) Double(a *curvePoint, pool *bnPool) { pool.Put(A) pool.Put(B) - pool.Put(C) + pool.Put(C_) pool.Put(t) pool.Put(t2) pool.Put(d) |