ecc: Fix gcry_mpi_ec_curve_point for Weierstrass.
authorWerner Koch <wk@gnupg.org>
Fri, 29 Nov 2013 16:14:33 +0000 (17:14 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 2 Dec 2013 15:21:45 +0000 (16:21 +0100)
commitecb90f8e7c6f2516080d27ed7da6a25f2314da3c
tree73547c88018fc9b2072cb9d5414f81747b372497
parent29eddc2558d4cf39995f66d5fccd62f584d5b203
ecc: Fix gcry_mpi_ec_curve_point for Weierstrass.

* mpi/ec.c (_gcry_mpi_ec_curve_point): Use correct equation.
(ec_pow3): New.
(ec_p_init): Always copy B.
--

The code path was obviously never tested.

Signed-off-by: Werner Koch <wk@gnupg.org>
mpi/ec.c