Go to the documentation of this file.
17 #ifndef CIFER_LWE_FS_H
18 #define CIFER_LWE_FS_H
void cfe_lwe_fs_ciphertext_init(cfe_vec *ct, cfe_lwe_fs *s)
cfe_error cfe_lwe_fs_encrypt(cfe_vec *ct, cfe_lwe_fs *s, cfe_vec *x, cfe_mat *PK)
void cfe_lwe_fs_generate_sec_key(cfe_mat *SK, cfe_lwe_fs *s)
Matrix struct and operations.
void cfe_lwe_fs_sec_key_init(cfe_mat *SK, cfe_lwe_fs *s)
cfe_error cfe_lwe_fs_init(cfe_lwe_fs *s, size_t l, size_t n, mpz_t bound_x, mpz_t bound_y)
void cfe_lwe_fs_pub_key_init(cfe_mat *PK, cfe_lwe_fs *s)
cfe_error cfe_lwe_fs_generate_pub_key(cfe_mat *PK, cfe_lwe_fs *s, cfe_mat *SK)
void cfe_lwe_fs_fe_key_init(cfe_vec *z_y, cfe_lwe_fs *s)
struct cfe_lwe_fs cfe_lwe_fs
cfe_error cfe_lwe_fs_decrypt(mpz_t res, cfe_lwe_fs *s, cfe_vec *ct, cfe_vec *z_y, cfe_vec *y)
Vector struct and operations.
cfe_error cfe_lwe_fs_derive_fe_key(cfe_vec *z_y, cfe_lwe_fs *s, cfe_vec *y, cfe_mat *SK)
void cfe_lwe_fs_free(cfe_lwe_fs *s)