diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-05-29 02:39:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-05-29 02:39:55 +0000 |
commit | 36ccc5b502d85f9fcf212e30fa9f1a0787de73ab (patch) | |
tree | 4020c41421f7a5df3cee172e128a07047eaf3848 /src/util/test_crypto_rsa.c | |
parent | 9bf34bae8102d0c20b36008ce10c2695a658c4d5 (diff) | |
download | gnunet-36ccc5b502d85f9fcf212e30fa9f1a0787de73ab.tar.gz gnunet-36ccc5b502d85f9fcf212e30fa9f1a0787de73ab.zip |
removing server from argument list, other minor fixes
Diffstat (limited to 'src/util/test_crypto_rsa.c')
-rw-r--r-- | src/util/test_crypto_rsa.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/test_crypto_rsa.c b/src/util/test_crypto_rsa.c index e71decca8..4456d68f4 100644 --- a/src/util/test_crypto_rsa.c +++ b/src/util/test_crypto_rsa.c | |||
@@ -83,8 +83,8 @@ testEncryptDecrypt () | |||
83 | } | 83 | } |
84 | printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", | 84 | printf ("%d RSA encrypt/decrypt operations %llums (%d failures)\n", |
85 | ITER, | 85 | ITER, |
86 | (unsigned long long) GNUNET_TIME_absolute_get_duration (start). | 86 | (unsigned long long) |
87 | value, ok); | 87 | GNUNET_TIME_absolute_get_duration (start).value, ok); |
88 | GNUNET_CRYPTO_rsa_key_free (hostkey); | 88 | GNUNET_CRYPTO_rsa_key_free (hostkey); |
89 | if (ok == 0) | 89 | if (ok == 0) |
90 | return GNUNET_OK; | 90 | return GNUNET_OK; |
@@ -123,8 +123,8 @@ testEncryptPerformance () | |||
123 | } | 123 | } |
124 | printf ("%d RSA encrypt operations %llu ms (%d failures)\n", | 124 | printf ("%d RSA encrypt operations %llu ms (%d failures)\n", |
125 | ITER, | 125 | ITER, |
126 | (unsigned long long) GNUNET_TIME_absolute_get_duration (start). | 126 | (unsigned long long) |
127 | value, ok); | 127 | GNUNET_TIME_absolute_get_duration (start).value, ok); |
128 | GNUNET_CRYPTO_rsa_key_free (hostkey); | 128 | GNUNET_CRYPTO_rsa_key_free (hostkey); |
129 | if (ok != 0) | 129 | if (ok != 0) |
130 | return GNUNET_SYSERR; | 130 | return GNUNET_SYSERR; |
@@ -182,8 +182,8 @@ testEncryptDecryptSK () | |||
182 | } | 182 | } |
183 | printf ("%d RSA encrypt/decrypt SK operations %llus (%d failures)\n", | 183 | printf ("%d RSA encrypt/decrypt SK operations %llus (%d failures)\n", |
184 | ITER, | 184 | ITER, |
185 | (unsigned long long) GNUNET_TIME_absolute_get_duration (start). | 185 | (unsigned long long) |
186 | value, ok); | 186 | GNUNET_TIME_absolute_get_duration (start).value, ok); |
187 | GNUNET_CRYPTO_rsa_key_free (hostkey); | 187 | GNUNET_CRYPTO_rsa_key_free (hostkey); |
188 | if (ok != 0) | 188 | if (ok != 0) |
189 | return GNUNET_SYSERR; | 189 | return GNUNET_SYSERR; |
@@ -237,8 +237,8 @@ testSignVerify () | |||
237 | } | 237 | } |
238 | printf ("%d RSA sign/verify operations %llums\n", | 238 | printf ("%d RSA sign/verify operations %llums\n", |
239 | ITER, | 239 | ITER, |
240 | (unsigned long long) GNUNET_TIME_absolute_get_duration (start). | 240 | (unsigned long long) |
241 | value); | 241 | GNUNET_TIME_absolute_get_duration (start).value); |
242 | GNUNET_CRYPTO_rsa_key_free (hostkey); | 242 | GNUNET_CRYPTO_rsa_key_free (hostkey); |
243 | return ok; | 243 | return ok; |
244 | } | 244 | } |