Function gnunet_sys::GNUNET_CRYPTO_paillier_hom_add [−][src]
pub unsafe extern "C" fn GNUNET_CRYPTO_paillier_hom_add(
public_key: *const GNUNET_CRYPTO_PaillierPublicKey,
c1: *const GNUNET_CRYPTO_PaillierCiphertext,
c2: *const GNUNET_CRYPTO_PaillierCiphertext,
result: *mut GNUNET_CRYPTO_PaillierCiphertext
) -> c_int
Compute a ciphertext that represents the sum of the plaintext in @a x1 and @a x2
Note that this operation can only be done a finite number of times before an overflow occurs.
@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.