ecc: Fix _gcry_mpi_ec_p_new to allow secp256k1.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 15 Jan 2014 03:41:37 +0000 (12:41 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 15 Jan 2014 03:41:37 +0000 (12:41 +0900)
commit49edeebb43174865cf4fa2c170a42a8e4274c4f0
treeed4fa2d596a5389ae0f8c87c1894d71475ff7ffe
parent04cda6b7cc16f3f52c12d9d3e46c56701003496e
ecc: Fix _gcry_mpi_ec_p_new to allow secp256k1.

* mpi/ec.c (_gcry_mpi_ec_p_new): Remove checking a!=0.
* tests/t-mpi-point.c (context_alloc): Remove two spurious tests.

--

It is no problem when a==0.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
mpi/ec.c
tests/t-mpi-point.c