[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/05: fix type
From: |
gnunet |
Subject: |
[gnunet] 01/05: fix type |
Date: |
Sat, 05 Dec 2020 10:47:06 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 72068a707bede6121cfa535ddcdfe74052259c0c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 22 21:17:27 2020 +0100
fix type
---
src/util/perf_crypto_rsa.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/util/perf_crypto_rsa.c b/src/util/perf_crypto_rsa.c
index d652e8d4e..aba61786f 100644
--- a/src/util/perf_crypto_rsa.c
+++ b/src/util/perf_crypto_rsa.c
@@ -44,7 +44,7 @@ eval (unsigned int len)
struct GNUNET_CRYPTO_RsaBlindingKeySecret bsec[10];
unsigned int i;
char sbuf[128];
- char *bbuf;
+ void *bbuf;
size_t bbuf_len;
struct GNUNET_HashCode hc;
@@ -88,14 +88,16 @@ eval (unsigned int len)
64 * 1024 / (1 +
GNUNET_TIME_absolute_get_duration
(start).rel_value_us / 1000LL), "keys/ms");
- */start = GNUNET_TIME_absolute_get ();
+ */
+ start = GNUNET_TIME_absolute_get ();
GNUNET_CRYPTO_hash ("test", 4, &hc);
for (i = 0; i < 10; i++)
{
GNUNET_CRYPTO_rsa_blind (&hc,
&bsec[i],
public_key,
- &bbuf, &bbuf_len);
+ &bbuf,
+ &bbuf_len);
GNUNET_free (bbuf);
}
printf ("10x %u-blinding took %s\n",
@@ -115,12 +117,14 @@ eval (unsigned int len)
GNUNET_CRYPTO_rsa_blind (&hc,
&bsec[0],
public_key,
- &bbuf, &bbuf_len);
+ &bbuf,
+ &bbuf_len);
start = GNUNET_TIME_absolute_get ();
for (i = 0; i < 10; i++)
{
sig = GNUNET_CRYPTO_rsa_sign_blinded (private_key,
- bbuf, bbuf_len);
+ bbuf,
+ bbuf_len);
GNUNET_CRYPTO_rsa_signature_free (sig);
}
printf ("10x %u-signing took %s\n",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.