aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_crypto_rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_crypto_rsa.c')
-rw-r--r--src/util/test_crypto_rsa.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/util/test_crypto_rsa.c b/src/util/test_crypto_rsa.c
index bf058d285..f26a76a38 100644
--- a/src/util/test_crypto_rsa.c
+++ b/src/util/test_crypto_rsa.c
@@ -82,8 +82,8 @@ testEncryptDecrypt ()
82 } 82 }
83 } 83 }
84 printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", ITER, 84 printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", ITER,
85 (unsigned long long) GNUNET_TIME_absolute_get_duration (start). 85 (unsigned long long)
86 rel_value, ok); 86 GNUNET_TIME_absolute_get_duration (start).rel_value, ok);
87 GNUNET_CRYPTO_rsa_key_free (hostkey); 87 GNUNET_CRYPTO_rsa_key_free (hostkey);
88 if (ok == 0) 88 if (ok == 0)
89 return GNUNET_OK; 89 return GNUNET_OK;
@@ -121,8 +121,8 @@ testEncryptPerformance ()
121 } 121 }
122 } 122 }
123 printf ("%d RSA encrypt operations %llu ms (%d failures)\n", ITER, 123 printf ("%d RSA encrypt operations %llu ms (%d failures)\n", ITER,
124 (unsigned long long) GNUNET_TIME_absolute_get_duration (start). 124 (unsigned long long)
125 rel_value, ok); 125 GNUNET_TIME_absolute_get_duration (start).rel_value, ok);
126 GNUNET_CRYPTO_rsa_key_free (hostkey); 126 GNUNET_CRYPTO_rsa_key_free (hostkey);
127 if (ok != 0) 127 if (ok != 0)
128 return GNUNET_SYSERR; 128 return GNUNET_SYSERR;
@@ -178,8 +178,8 @@ testEncryptDecryptSK ()
178 } 178 }
179 } 179 }
180 printf ("%d RSA encrypt/decrypt SK operations %llums (%d failures)\n", ITER, 180 printf ("%d RSA encrypt/decrypt SK operations %llums (%d failures)\n", ITER,
181 (unsigned long long) GNUNET_TIME_absolute_get_duration (start). 181 (unsigned long long)
182 rel_value, ok); 182 GNUNET_TIME_absolute_get_duration (start).rel_value, ok);
183 GNUNET_CRYPTO_rsa_key_free (hostkey); 183 GNUNET_CRYPTO_rsa_key_free (hostkey);
184 if (ok != 0) 184 if (ok != 0)
185 return GNUNET_SYSERR; 185 return GNUNET_SYSERR;
@@ -232,8 +232,8 @@ testSignVerify ()
232 } 232 }
233 } 233 }
234 printf ("%d RSA sign/verify operations %llums\n", ITER, 234 printf ("%d RSA sign/verify operations %llums\n", ITER,
235 (unsigned long long) GNUNET_TIME_absolute_get_duration (start). 235 (unsigned long long)
236 rel_value); 236 GNUNET_TIME_absolute_get_duration (start).rel_value);
237 GNUNET_CRYPTO_rsa_key_free (hostkey); 237 GNUNET_CRYPTO_rsa_key_free (hostkey);
238 return ok; 238 return ok;
239} 239}
@@ -268,8 +268,8 @@ testSignPerformance ()
268 } 268 }
269 } 269 }
270 printf ("%d RSA sign operations %llu ms\n", ITER, 270 printf ("%d RSA sign operations %llu ms\n", ITER,
271 (unsigned long long) GNUNET_TIME_absolute_get_duration (start). 271 (unsigned long long)
272 rel_value); 272 GNUNET_TIME_absolute_get_duration (start).rel_value);
273 GNUNET_CRYPTO_rsa_key_free (hostkey); 273 GNUNET_CRYPTO_rsa_key_free (hostkey);
274 return ok; 274 return ok;
275} 275}