17 #ifndef CIFER_DATA_SER_H
18 #define CIFER_DATA_SER_H
23 #include "data.pb-c.h"
32 void cfe_mpz_ser_init(MpzSer *o);
34 void cfe_mpz_pack(mpz_t a, MpzSer *msg);
36 void cfe_mpz_ser(mpz_t aa,
cfe_ser *buf);
38 void cfe_mpz_unpack(mpz_t a, MpzSer *msg);
40 cfe_error cfe_mpz_read(mpz_t a,
cfe_ser *buf);
50 void cfe_octet_ser_init(
OctetSer *o);
52 void cfe_ECP_BN254_pack(ECP_BN254 *a,
OctetSer *msg);
54 void cfe_ECP_BN254_ser(ECP_BN254 *a,
cfe_ser *buf);
56 void cfe_ECP_BN254_unpack(ECP_BN254 *a,
OctetSer *msg);
58 cfe_error cfe_ECP_BN254_read(ECP_BN254 *a,
cfe_ser *buf);
60 void cfe_ECP2_BN254_pack(ECP2_BN254 *a,
OctetSer *msg);
62 void cfe_ECP2_BN254_ser(ECP2_BN254 *a,
cfe_ser *buf);
64 void cfe_ECP2_BN254_unpack(ECP2_BN254 *a,
OctetSer *msg);
66 cfe_error cfe_ECP2_BN254_read(ECP2_BN254 *a,
cfe_ser *buf);
68 void cfe_FP12_BN254_pack(FP12_BN254 *a,
OctetSer *msg);
70 void cfe_FP12_BN254_ser(FP12_BN254 *a,
cfe_ser *buf);
72 void cfe_FP12_BN254_unpack(FP12_BN254 *a,
OctetSer *msg);
74 cfe_error cfe_FP12_BN254_read(FP12_BN254 *a,
cfe_ser *buf);