fix ecc_dlog usage

This commit is contained in:
Markus Teich 2016-07-13 14:08:49 +02:00
parent 6db1659195
commit edaf7f117a

View File

@ -62,7 +62,7 @@ static gcry_ctx_t ec_ctx;
static gcry_mpi_point_t ec_gen; static gcry_mpi_point_t ec_gen;
static gcry_mpi_point_t ec_zero; static gcry_mpi_point_t ec_zero;
static gcry_mpi_t ec_n; static gcry_mpi_t ec_n;
static GNUNET_CRYPTO_EccDlogContext *ec_dlogctx; static struct GNUNET_CRYPTO_EccDlogContext *ec_dlogctx;
/** /**
@ -72,7 +72,7 @@ static GNUNET_CRYPTO_EccDlogContext *ec_dlogctx;
* @param[in] dlogctx Pointer to the prepared dlog context. * @param[in] dlogctx Pointer to the prepared dlog context.
*/ */
void void
brandt_crypto_init (GNUNET_CRYPTO_EccDlogContext *dlogctx) brandt_crypto_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx)
{ {
gcry_error_t rc; gcry_error_t rc;
@ -1135,7 +1135,7 @@ fp_pub_determine_outcome (struct BRANDT_Auction *ad, uint16_t *winner)
if (gcry_mpi_test_bit (dlog, i)) if (gcry_mpi_test_bit (dlog, i))
{ {
if (winner) if (winner)
winner = i; *winner = i;
break; break;
} }
} }