fix ecc_dlog usage
This commit is contained in:
parent
6db1659195
commit
edaf7f117a
6
crypto.c
6
crypto.c
@ -62,7 +62,7 @@ static gcry_ctx_t ec_ctx;
|
||||
static gcry_mpi_point_t ec_gen;
|
||||
static gcry_mpi_point_t ec_zero;
|
||||
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.
|
||||
*/
|
||||
void
|
||||
brandt_crypto_init (GNUNET_CRYPTO_EccDlogContext *dlogctx)
|
||||
brandt_crypto_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx)
|
||||
{
|
||||
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 (winner)
|
||||
winner = i;
|
||||
*winner = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user