aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-12 06:46:44 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-12 06:46:44 +0000
commitb629067024cb61dfd2a505af3234cd9a99b0cc0a (patch)
treec50df3c9fdd2f74303de56c68d0131b6a46f51a9 /src
parentd1d46fe33e75a837df25269b0dd00080b4150d87 (diff)
downloadgnunet-b629067024cb61dfd2a505af3234cd9a99b0cc0a.tar.gz
gnunet-b629067024cb61dfd2a505af3234cd9a99b0cc0a.zip
1
Diffstat (limited to 'src')
-rw-r--r--src/util/crypto_ksk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/crypto_ksk.c b/src/util/crypto_ksk.c
index fd5392840..26adbcda0 100644
--- a/src/util/crypto_ksk.c
+++ b/src/util/crypto_ksk.c
@@ -227,7 +227,7 @@ is_prime (mpz_t n, int steps, GNUNET_HashCode * hc)
227 227
228 /* Find q and k, so that n = 1 + 2^k * q . */ 228 /* Find q and k, so that n = 1 + 2^k * q . */
229 mpz_init_set (q, nminus1); 229 mpz_init_set (q, nminus1);
230 k = mpz_scan0 (q, 0); 230 k = mpz_scan1 (q, 0);
231 mpz_tdiv_q_2exp (q, q, k); 231 mpz_tdiv_q_2exp (q, q, k);
232 232
233 for (i = 0; i < steps; i++) 233 for (i = 0; i < steps; i++)