aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Fuchs <christian.fuchs@cfuchs.net>2014-02-03 16:25:17 +0000
committerChristian Fuchs <christian.fuchs@cfuchs.net>2014-02-03 16:25:17 +0000
commitd6d4ffb707a1607c5aaa8e790de6afa21a195afe (patch)
treec21d5dee93c2996a51bbbb1e663a4f10dd1cf2de /src/include/gnunet_crypto_lib.h
parent1559917beb213bd0ab794bc7a450851b34117a82 (diff)
downloadgnunet-d6d4ffb707a1607c5aaa8e790de6afa21a195afe.tar.gz
gnunet-d6d4ffb707a1607c5aaa8e790de6afa21a195afe.zip
- added more information on when paillier-encrypt soft-fails (too long number, no homomorphic ops possible)
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index d9c5e49e1..54923ec56 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1331,7 +1331,8 @@ GNUNET_CRYPTO_paillier_create (struct GNUNET_CRYPTO_PaillierPublicKey *public_ke
1331 * @param public_key Public key to use. 1331 * @param public_key Public key to use.
1332 * @param m Plaintext to encrypt. 1332 * @param m Plaintext to encrypt.
1333 * @param[out] ciphertext Encrytion of @a plaintext with @a public_key. 1333 * @param[out] ciphertext Encrytion of @a plaintext with @a public_key.
1334 * @return guaranteed number of supported homomorphic operations 1334 * @return guaranteed number of supported homomorphic operations >= 1,
1335 * -1 if less than one homomorphic operation is possible
1335 */ 1336 */
1336int 1337int
1337GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *public_key, 1338GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *public_key,