diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 12:53:54 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 12:53:54 +0100 |
commit | e66cbbe44f3708e6d6a30b216035bcccfc8e7207 (patch) | |
tree | 5329f963c2eee3af18976862cdfdf9e344dfd109 /crypto.c | |
parent | 64689a9083fd11a1e482cc86c0417183cdc76ece (diff) |
move ecdlogctx passing to _join()/_new() functions
Diffstat (limited to 'crypto.c')
-rw-r--r-- | crypto.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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); |