Go to the documentation of this file.
17 #ifndef CIFER_PAILLIER_H
18 #define CIFER_PAILLIER_H
void cfe_paillier_free(cfe_paillier *s)
Definition: paillier.h:32
cfe_error cfe_paillier_derive_fe_key(mpz_t fe_key, cfe_paillier *s, cfe_vec *msk, cfe_vec *y)
cfe_error cfe_paillier_init(cfe_paillier *s, size_t l, size_t lambda, size_t bit_len, mpz_t bound_x, mpz_t bound_y)
void cfe_paillier_master_keys_init(cfe_vec *msk, cfe_vec *mpk, cfe_paillier *s)
struct cfe_paillier cfe_paillier
cfe_error cfe_paillier_encrypt(cfe_vec *ciphertext, cfe_paillier *s, cfe_vec *x, cfe_vec *mpk)
void cfe_paillier_ciphertext_init(cfe_vec *ciphertext, cfe_paillier *s)
Vector struct and operations.
void cfe_paillier_copy(cfe_paillier *res, cfe_paillier *s)
cfe_error cfe_paillier_decrypt(mpz_t res, cfe_paillier *s, cfe_vec *ciphertext, mpz_t key, cfe_vec *y)
cfe_error cfe_paillier_generate_master_keys(cfe_vec *msk, cfe_vec *mpk, cfe_paillier *s)