aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn256/curve.go
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bn256/curve.go')
-rw-r--r--crypto/bn256/curve.go10
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)