Lines Matching refs:y1
10 // (x, y) position on the curve, the Jacobian coordinates are (x1, y1, z1)
11 // where x = x1/z1² and y = y1/z1³. The greatest speedups come when the whole
29 // Add returns the sum of (x1,y1) and (x2,y2)
30 Add(x1, y1, x2, y2 *big.Int) (x, y *big.Int)
32 Double(x1, y1 *big.Int) (x, y *big.Int)
34 ScalarMult(x1, y1 *big.Int, k []byte) (x, y *big.Int)
102 func (curve *CurveParams) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int) {
103 z1 := zForAffine(x1, y1)
105 return curve.affineFromJacobian(curve.addJacobian(x1, y1, z1, x2, y2, z2))
108 // addJacobian takes two points in Jacobian coordinates, (x1, y1, z1) and
110 func (curve *CurveParams) addJacobian(x1, y1, z1, x2, y2, z2 *big.Int) (*big.Int, *big.Int, *big.Int) {
121 y3.Set(y1)
144 s1 := new(big.Int).Mul(y1, z2)
156 return curve.doubleJacobian(x1, y1, z1)
186 func (curve *CurveParams) Double(x1, y1 *big.Int) (*big.Int, *big.Int) {
187 z1 := zForAffine(x1, y1)
188 return curve.affineFromJacobian(curve.doubleJacobian(x1, y1, z1))