Lines Matching refs:y2
29 // Add returns the sum of (x1,y1) and (x2,y2)
30 Add(x1, y1, x2, y2 *big.Int) (x, y *big.Int)
57 y2 := new(big.Int).Mul(y, y)
58 y2.Mod(y2, curve.P)
70 return x3.Cmp(y2) == 0
102 func (curve *CurveParams) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int) {
104 z2 := zForAffine(x2, y2)
105 return curve.affineFromJacobian(curve.addJacobian(x1, y1, z1, x2, y2, z2))
109 // (x2, y2, z2) and returns their sum, also in Jacobian form.
110 func (curve *CurveParams) addJacobian(x1, y1, z1, x2, y2, z2 *big.Int) (*big.Int, *big.Int, *big.Int) {
115 y3.Set(y2)
147 s2 := new(big.Int).Mul(y2, z1)