From 71b25a5562f68aad81eae52cc1bab9ca7731a7e9 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 15 Apr 2013 11:11:58 +0200 Subject: Fix addition of EC points. * mpi/ec.c (_gcry_mpi_ec_add_points): Fix case of P1 given in affine coordinates. -- This was a plain copy and paste error, which was found due to explicit use of affine coordinates by GNUnet's new pseudonyms code. Signed-off-by: Werner Koch --- mpi/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpi/ec.c') diff --git a/mpi/ec.c b/mpi/ec.c index c7367069..5d2f5c92 100644 --- a/mpi/ec.c +++ b/mpi/ec.c @@ -829,7 +829,7 @@ _gcry_mpi_ec_add_points (mpi_point_t result, ec_mulm (l1, l1, x1, ctx); } if (z1_is_one) - mpi_set (l2, x1); + mpi_set (l2, x2); else { ec_powm (l2, z1, mpi_const (MPI_C_TWO), ctx); -- cgit v1.2.1