From 84e1871a793507afdba49cf385cbf7ce2e04aca4 Mon Sep 17 00:00:00 2001 From: Christian Fuchs Date: Tue, 21 Jan 2014 10:54:47 +0000 Subject: - scalarproduct element container was 1 byte too large - added logics to compute the maximum supported number of paillier hom.ops for a ciphertext - updated comments --- src/include/gnunet_crypto_lib.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 5ccc557fe..a8e9d6027 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h @@ -1341,10 +1341,11 @@ GNUNET_CRYPTO_paillier_create (struct GNUNET_CRYPTO_PaillierPublicKey *public_ke * Encrypt a plaintext with a paillier public key. * * @param public_key Public key to use. - * @param plaintext Plaintext to encrypt. + * @param m Plaintext to encrypt. * @param[out] ciphertext Encrytion of @a plaintext with @a public_key. + * @return guaranteed number of supported homomorphic operations */ -void +int GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *public_key, const gcry_mpi_t m, struct GNUNET_CRYPTO_PaillierCiphertext *ciphertext); @@ -1356,7 +1357,7 @@ GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *pu * @param private_key Private key to use for decryption. * @param public_key Public key to use for decryption. * @param ciphertext Ciphertext to decrypt. - * @param[out] plaintext Decryption of @a ciphertext with @private_key. + * @param[out] m Decryption of @a ciphertext with @private_key. */ void GNUNET_CRYPTO_paillier_decrypt (const struct GNUNET_CRYPTO_PaillierPrivateKey *private_key, -- cgit v1.2.3