Lines Matching defs:Add
13 // ScalarBaseMult). But even for Add and Double, it's faster to apply and
29 // Add returns the sum of (x1,y1) and (x2,y2)
30 Add(x1, y1, x2, y2 *big.Int) (x, y *big.Int)
64 threeX.Add(threeX, x)
67 x3.Add(x3, curve.B)
102 func (curve *CurveParams) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int) {
111 // See http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#addition-add-2007-bl
138 h.Add(h, curve.P)
152 r.Add(r, curve.P)
176 z3.Add(z1, z2)
201 alpha.Add(alpha, curve.P)
203 alpha2 := new(big.Int).Add(x, delta)
207 alpha.Add(alpha, alpha2)
215 x3.Add(x3, curve.P)
219 z3 := new(big.Int).Add(y, z)
223 z3.Add(z3, curve.P)
227 z3.Add(z3, curve.P)
234 beta.Add(beta, curve.P)
244 y3.Add(y3, curve.P)