From 6a52ce5f9bc35a852b215e7073f3a0d2665ca8de Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 6 May 2020 17:29:28 +0200 Subject: [PATCH] fix ftbfs --- src/util/perf_crypto_asymmetric.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/util/perf_crypto_asymmetric.c b/src/util/perf_crypto_asymmetric.c index 49d9ec644..8533351e1 100644 --- a/src/util/perf_crypto_asymmetric.c +++ b/src/util/perf_crypto_asymmetric.c @@ -62,9 +62,9 @@ int main (int argc, char *argv[]) { int i; - struct GNUNET_CRYPTO_EcdhePrivateKey *ecdhe[l]; + struct GNUNET_CRYPTO_EcdhePrivateKey ecdhe[l]; struct GNUNET_CRYPTO_EcdhePublicKey dhpub[l]; - struct GNUNET_CRYPTO_EddsaPrivateKey *eddsa[l]; + struct GNUNET_CRYPTO_EddsaPrivateKey eddsa[l]; struct GNUNET_CRYPTO_EddsaPublicKey dspub[l]; struct TestSig sig[l]; @@ -82,18 +82,18 @@ main (int argc, char *argv[]) start = GNUNET_TIME_absolute_get (); for (i = 0; i < l; i++) - eddsa[i] = GNUNET_CRYPTO_eddsa_key_create (); + GNUNET_CRYPTO_eddsa_key_create (&eddsa[i]); log_duration ("EdDSA", "create key"); start = GNUNET_TIME_absolute_get (); for (i = 0; i < l; i++) - GNUNET_CRYPTO_eddsa_key_get_public (eddsa[i], &dspub[i]); + GNUNET_CRYPTO_eddsa_key_get_public (&eddsa[i], &dspub[i]); log_duration ("EdDSA", "get public"); start = GNUNET_TIME_absolute_get (); for (i = 0; i < l; i++) GNUNET_assert (GNUNET_OK == - GNUNET_CRYPTO_eddsa_sign_ (eddsa[i], + GNUNET_CRYPTO_eddsa_sign_ (&eddsa[i], &sig[i].purp, &sig[i].sig)); log_duration ("EdDSA", "sign HashCode"); @@ -109,19 +109,19 @@ main (int argc, char *argv[]) start = GNUNET_TIME_absolute_get (); for (i = 0; i < l; i++) - ecdhe[i] = GNUNET_CRYPTO_ecdhe_key_create (); + GNUNET_CRYPTO_ecdhe_key_create (&ecdhe[i]); log_duration ("ECDH", "create key"); start = GNUNET_TIME_absolute_get (); for (i = 0; i < l; i++) - GNUNET_CRYPTO_ecdhe_key_get_public (ecdhe[i], &dhpub[i]); + GNUNET_CRYPTO_ecdhe_key_get_public (&ecdhe[i], &dhpub[i]); log_duration ("ECDH", "get public"); start = GNUNET_TIME_absolute_get (); for (i = 0; i < l - 1; i += 2) { - GNUNET_CRYPTO_ecc_ecdh (ecdhe[i], &dhpub[i + 1], &sig[i].h); - GNUNET_CRYPTO_ecc_ecdh (ecdhe[i + 1], &dhpub[i], &sig[i + 1].h); + GNUNET_CRYPTO_ecc_ecdh (&ecdhe[i], &dhpub[i + 1], &sig[i].h); + GNUNET_CRYPTO_ecc_ecdh (&ecdhe[i + 1], &dhpub[i], &sig[i + 1].h); } log_duration ("ECDH", "do DH"); -- 2.25.1