summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-06 17:29:28 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-19 02:41:47 +0200
commit6a52ce5f9bc35a852b215e7073f3a0d2665ca8de (patch)
tree563fe56465b5d21a27ad23e097295833111e8871
parent338be6576f4d08f01a4d00fcc21956131eb1262b (diff)
fix ftbfs
-rw-r--r--src/util/perf_crypto_asymmetric.c18
1 files 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");