Double returns 2*(x,y).
(x1, y1 *big.Int)
| 201 | |
| 202 | // Double returns 2*(x,y). |
| 203 | func (BitCurve *BitCurve) Double(x1, y1 *big.Int) (*big.Int, *big.Int) { |
| 204 | z1 := new(big.Int).SetInt64(1) |
| 205 | return BitCurve.affineFromJacobian(BitCurve.doubleJacobian(x1, y1, z1)) |
| 206 | } |
| 207 | |
| 208 | // doubleJacobian takes a point in Jacobian coordinates, (x, y, z), and |
| 209 | // returns its double, also in Jacobian form. |
nothing calls this directly
no test coverage detected