From: Christian Grothoff Date: Thu, 14 Feb 2019 10:26:51 +0000 (+0100) Subject: DCE X-Git-Tag: v0.11.0~63^2~62^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9c75fae3e34bb3717c6cde5a1ab69e63d007b984;p=oweals%2Fgnunet.git DCE --- diff --git a/src/secretsharing/gnunet-service-secretsharing.c b/src/secretsharing/gnunet-service-secretsharing.c index 842d714f3..1ffde0436 100644 --- a/src/secretsharing/gnunet-service-secretsharing.c +++ b/src/secretsharing/gnunet-service-secretsharing.c @@ -959,18 +959,9 @@ restore_fair (const struct GNUNET_CRYPTO_PaillierPublicKey *ppub, gcry_mpi_set (big_b, big_t); } - { - gcry_mpi_t paillier_n; - - GNUNET_CRYPTO_mpi_scan_unsigned (&paillier_n, - ppub, - sizeof (struct GNUNET_CRYPTO_PaillierPublicKey)); - /* FIXME: why get pallier_n here if we never use it? */ - gcry_mpi_set (xres, b_2); - gcry_mpi_invm (xres, xres, elgamal_q); - gcry_mpi_mulm (xres, xres, b_1, elgamal_q); - gcry_mpi_release (paillier_n); - } + gcry_mpi_set (xres, b_2); + gcry_mpi_invm (xres, xres, elgamal_q); + gcry_mpi_mulm (xres, xres, b_1, elgamal_q); gcry_mpi_release (a_1); gcry_mpi_release (a_2);