23 #ifdef BPU_CONF_ENCRYPTION
59 #ifdef BPU_CONF_DECRYPTION
int BPU_gf2VecMalloc(BPU_T_GF2_Vector **v, int len)
BPU_T_Code_Ctx * code_ctx
#define BPU_gf2VecNull(v_pointer)
Null GF2 vector.
int BPU_gf2VecXor(BPU_T_GF2_Vector *out, const BPU_T_GF2_Vector *in)
Xor two Vectors GF2 and store result in first vector.
void BPU_gf2VecFree(BPU_T_GF2_Vector **v)
Free dynamically or statically allocated vector.
int BPU_gf2VecRand(BPU_T_GF2_Vector *out, int w)
int BPU_mecsBasicDecrypt(BPU_T_GF2_Vector *out, const BPU_T_GF2_Vector *in, const BPU_T_Mecs_Ctx *ctx)
uint16_t msg_len
Code dimenzion.
#define BPU_printError(fmt,...)
print error message with filename, line
BPU_T_GF2_Vector * e
Error vector.
void BPU_gf2VecCopy(BPU_T_GF2_Vector *dest, const BPU_T_GF2_Vector *src)
Copy VectorGF2.
int(* _decode)(BPU_T_GF2_Vector *out, const BPU_T_GF2_Vector *in, const struct _BPU_T_Code_Ctx *ctx)
This is reference to decode function. It will be set in BPU_codeInitCtx.
int(* _encode)(BPU_T_GF2_Vector *out, const BPU_T_GF2_Vector *in, const struct _BPU_T_Code_Ctx *ctx)
This is reference to encode function. It will be set in BPU_codeInitCtx.
int BPU_mecsBasicEncrypt(BPU_T_GF2_Vector *out, const BPU_T_GF2_Vector *in, const BPU_T_Mecs_Ctx *ctx)
uint8_t t
Error code correction capability.