diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2014-02-03 16:25:17 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2014-02-03 16:25:17 +0000 |
commit | d6d4ffb707a1607c5aaa8e790de6afa21a195afe (patch) | |
tree | c21d5dee93c2996a51bbbb1e663a4f10dd1cf2de /src/include/gnunet_crypto_lib.h | |
parent | 1559917beb213bd0ab794bc7a450851b34117a82 (diff) | |
download | gnunet-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.h | 3 |
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 | */ |
1336 | int | 1337 | int |
1337 | GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *public_key, | 1338 | GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *public_key, |