aboutsummaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/crypto.c b/crypto.c
index e067f04..e513e6f 100644
--- a/crypto.c
+++ b/crypto.c
@@ -77,11 +77,10 @@ struct zkp_challenge_0og {
};
-gcry_ctx_t ec_ctx = NULL;
-gcry_mpi_point_t ec_gen = NULL;
-gcry_mpi_point_t ec_zero = NULL;
-gcry_mpi_t ec_n = NULL;
-struct GNUNET_CRYPTO_EccDlogContext *ec_dlogctx = NULL;
+gcry_ctx_t ec_ctx = NULL;
+gcry_mpi_point_t ec_gen = NULL;
+gcry_mpi_point_t ec_zero = NULL;
+gcry_mpi_t ec_n = NULL;
/**
@@ -91,12 +90,10 @@ struct GNUNET_CRYPTO_EccDlogContext *ec_dlogctx = NULL;
* @param[in] dlogctx Pointer to the prepared dlog context.
*/
void
-brandt_crypto_init (struct GNUNET_CRYPTO_EccDlogContext *dlogctx)
+brandt_crypto_init ()
{
gcry_error_t rc;
- ec_dlogctx = dlogctx;
-
rc = gcry_mpi_ec_new (&ec_ctx, NULL, CURVE);
ASSERT_GCRY ("gcry_mpi_ec_new", rc);