From e66cbbe44f3708e6d6a30b216035bcccfc8e7207 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Fri, 2 Dec 2016 12:53:54 +0100 Subject: move ecdlogctx passing to _join()/_new() functions --- internals.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'internals.h') diff --git a/internals.h b/internals.h index 8a82e2e..8e97e8a 100644 --- a/internals.h +++ b/internals.h @@ -146,12 +146,14 @@ struct BRANDT_Auction { gcry_mpi_point_t *tmpa1; /** used for temporary storage, size: k */ gcry_mpi_point_t *tmpb1; /** used for temporary storage, size: k */ + + /** only needed in M+1st price auctions to determine winners */ + struct GNUNET_CRYPTO_EccDlogContext *dlogctx; }; -extern gcry_ctx_t ec_ctx; -extern gcry_mpi_point_t ec_gen; -extern gcry_mpi_point_t ec_zero; -extern gcry_mpi_t ec_n; -extern struct GNUNET_CRYPTO_EccDlogContext *ec_dlogctx; +extern gcry_ctx_t ec_ctx; +extern gcry_mpi_point_t ec_gen; +extern gcry_mpi_point_t ec_zero; +extern gcry_mpi_t ec_n; #endif /* ifndef _BRANDT_INTERNALS_H */ -- cgit v1.2.3