summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-04-15 11:11:58 +0200
committerWerner Koch <wk@gnupg.org>2013-04-15 12:01:17 +0200
commitc7362450c679736ceb82e95fac2e251972f3ea1e (patch)
treed2943d15e5d55c4643bd8514f35a121654c947cf
parent4f57ad0f8744263c917b3f16d84c2e5204893422 (diff)
downloadlibgcrypt-c7362450c679736ceb82e95fac2e251972f3ea1e.tar.gz
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 <wk@gnupg.org>
-rw-r--r--mpi/ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpi/ec.c b/mpi/ec.c
index e3253580..ce86e099 100644
--- a/mpi/ec.c
+++ b/mpi/ec.c
@@ -522,7 +522,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, ctx->two, ctx);