Go to the documentation of this file.
17 #ifndef CIFER_DAMGARD_H
18 #define CIFER_DAMGARD_H
struct cfe_damgard_fe_key cfe_damgard_fe_key
cfe_error cfe_damgard_precomp_init(cfe_damgard *s, size_t l, size_t modulus_len, mpz_t bound)
void cfe_damgard_fe_key_init(cfe_damgard_fe_key *fe_key)
void cfe_damgard_fe_key_free(cfe_damgard_fe_key *key)
cfe_error cfe_damgard_derive_fe_key(cfe_damgard_fe_key *fe_key, cfe_damgard *s, cfe_damgard_sec_key *msk, cfe_vec *y)
void cfe_damgard_pub_key_init(cfe_vec *mpk, cfe_damgard *s)
void cfe_damgard_generate_master_keys(cfe_damgard_sec_key *msk, cfe_vec *mpk, cfe_damgard *s)
void cfe_damgard_sec_key_init(cfe_damgard_sec_key *msk, cfe_damgard *s)
struct cfe_damgard_sec_key cfe_damgard_sec_key
cfe_error cfe_damgard_encrypt(cfe_vec *ciphertext, cfe_damgard *s, cfe_vec *x, cfe_vec *mpk)
cfe_error cfe_damgard_init(cfe_damgard *s, size_t l, size_t modulus_len, mpz_t bound)
void cfe_damgard_free(cfe_damgard *s)
void cfe_damgard_sec_key_free(cfe_damgard_sec_key *key)
void cfe_damgard_ciphertext_init(cfe_vec *ciphertext, cfe_damgard *s)
Vector struct and operations.
struct cfe_damgard cfe_damgard
void cfe_damgard_copy(cfe_damgard *res, cfe_damgard *s)
cfe_error cfe_damgard_decrypt(mpz_t res, cfe_damgard *s, cfe_vec *ciphertext, cfe_damgard_fe_key *key, cfe_vec *y)