ecc: fix Montgomery curve bugs.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Aug 2015 10:09:16 +0000 (19:09 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Aug 2015 10:09:16 +0000 (19:09 +0900)
commitce746936b6c210e602d106cfbf45cf60b408d871
treeadebcbfe519bbde5525dfd21456112246de55f91
parent0e17f7a05bba309a87811992aa47a77af9935b99
ecc: fix Montgomery curve bugs.

* cipher/ecc.c (check_secret_key): Y1 should not be NULL when check.
(ecc_check_secret_key): Support Montgomery curve.
* mpi/ec.c (_gcry_mpi_ec_curve_point): Fix condition.
cipher/ecc-curves.c
cipher/ecc.c
mpi/ec.c