Definition: vec_curve.h:34
void cfe_sgp_sec_key_init(cfe_sgp_sec_key *msk, cfe_sgp *sgp)
void cfe_sgp_generate_sec_key(cfe_sgp_sec_key *msk, cfe_sgp *s)
void cfe_sgp_sec_key_free(cfe_sgp_sec_key *msk)
cfe_error cfe_sgp_encrypt(cfe_sgp_cipher *cipher, cfe_sgp *s, cfe_vec *x, cfe_vec *y, cfe_sgp_sec_key *msk)
cfe_error cfe_sgp_decrypt(mpz_t res, cfe_sgp *s, cfe_sgp_cipher *cipher, ECP2_BN254 *key, cfe_mat *f)
void cfe_sgp_cipher_init(cfe_sgp_cipher *cipher, cfe_sgp *s)
struct cfe_sgp_cipher cfe_sgp_cipher
Vectors of elements of an elliptic curve struct and operations on it.
cfe_error cfe_sgp_init(cfe_sgp *s, size_t l, mpz_t bound)
cfe_error cfe_sgp_derive_fe_key(ECP2_BN254 *key, cfe_sgp *sgp, cfe_sgp_sec_key *msk, cfe_mat *f)
struct cfe_sgp_sec_key cfe_sgp_sec_key
Vector struct and operations.
Definition: vec_curve.h:42
void cfe_sgp_free(cfe_sgp *s)
void cfe_sgp_cipher_free(cfe_sgp_cipher *cipher)