diff options
Diffstat (limited to 'src/util/crypto_paillier.c')
-rw-r--r-- | src/util/crypto_paillier.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crypto_paillier.c b/src/util/crypto_paillier.c index 75d607706..0a08509ba 100644 --- a/src/util/crypto_paillier.c +++ b/src/util/crypto_paillier.c | |||
@@ -246,8 +246,7 @@ GNUNET_CRYPTO_paillier_encrypt (const struct | |||
246 | number has the same length (or is smaller), by counting the | 246 | number has the same length (or is smaller), by counting the |
247 | number of possible operations. We essentially divide max_num by | 247 | number of possible operations. We essentially divide max_num by |
248 | 2 until the result is no longer larger than 'm', incrementing the | 248 | 2 until the result is no longer larger than 'm', incrementing the |
249 | maximum number of operations in each round, starting at -2 */ | 249 | maximum number of operations in each round, starting at -2 */for (possible_opts = -2; gcry_mpi_cmp (max_num, m) > 0; possible_opts++) |
250 | for (possible_opts = -2; gcry_mpi_cmp (max_num, m) > 0; possible_opts++) | ||
251 | gcry_mpi_div (max_num, | 250 | gcry_mpi_div (max_num, |
252 | NULL, | 251 | NULL, |
253 | max_num, | 252 | max_num, |
@@ -481,4 +480,5 @@ GNUNET_CRYPTO_paillier_hom_get_remaining (const struct | |||
481 | return ntohl (c->remaining_ops); | 480 | return ntohl (c->remaining_ops); |
482 | } | 481 | } |
483 | 482 | ||
483 | |||
484 | /* end of crypto_paillier.c */ | 484 | /* end of crypto_paillier.c */ |