From b5bdfc8c7f57a9afff7a7dc2b6a8cdf5c303940d Mon Sep 17 00:00:00 2001 From: Christian Fuchs Date: Tue, 21 Jan 2014 11:37:50 +0000 Subject: - added logics for homomorphic operation in paillier - adjusted headers --- src/include/gnunet_crypto_lib.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/include') diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index a8e9d6027..5dc76be79 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h @@ -1372,16 +1372,18 @@ GNUNET_CRYPTO_paillier_decrypt (const struct GNUNET_CRYPTO_PaillierPrivateKey *p * Note that this operation can only be done a finite number of times * before an overflow occurs. * - * @param x1 Paillier cipher text. - * @param x2 Paillier cipher text. + * @param public_key Public key to use for encryption. + * @param c1 Paillier cipher text. + * @param c2 Paillier cipher text. * @param[out] result Result of the homomorphic operation. * @return #GNUNET_OK if the result could be computed, * #GNUNET_SYSERR if no more homomorphic operations are remaining. */ int -GNUNET_CRYPTO_paillier_hom_add (const struct GNUNET_CRYPTO_PaillierCiphertext *x1, - const struct GNUNET_CRYPTO_PaillierCiphertext *x2, - const struct GNUNET_CRYPTO_PaillierCiphertext *result); +GNUNET_CRYPTO_paillier_hom_add (const struct GNUNET_CRYPTO_PaillierPublicKey *public_key, + const struct GNUNET_CRYPTO_PaillierCiphertext *c1, + const struct GNUNET_CRYPTO_PaillierCiphertext *c2, + struct GNUNET_CRYPTO_PaillierCiphertext *result); #if 0 /* keep Emacsens' auto-indent happy */ -- cgit v1.2.3