projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- fix cli arg parse
[oweals/gnunet.git]
/
src
/
util
/
crypto_paillier.c
diff --git
a/src/util/crypto_paillier.c
b/src/util/crypto_paillier.c
index 6873d159f4ba2bf23a415c81bcd8596ca683b330..eb5bfe87c4353a9892c61f3bef0bff2a8dafca3e 100644
(file)
--- a/
src/util/crypto_paillier.c
+++ b/
src/util/crypto_paillier.c
@@
-131,6
+131,9
@@
GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *pu
if (possible_opts < 1)
possible_opts = 0;
+ //soft-cap by caller
+ possible_opts = (desired_ops < possible_opts)? desired_ops : possible_opts;
+
ciphertext->remaining_ops = htonl (possible_opts);
GNUNET_assert (0 != (n_square = gcry_mpi_new (0)));