126 #endif // BPU_CODECTX_H
enum _BPU_T_EN_Code_Types BPU_T_EN_Code_Types
Possible types of codes.
BPU_T_Qcmdpc_Spec * qcmdpc
BPU_T_Goppa_Params * goppa
void BPU_codeFreeParamsQcmdpc(BPU_T_UN_Code_Params *params)
BPU_T_Math_Ctx * math_ctx
Math context.
BPU_T_Qcmdpc_Params * qcmdpc
int BPU_codeInitMathCtx(BPU_T_Math_Ctx **ctx, const uint16_t m, const uint16_t t, const BPU_T_GF2_16x mod)
BPU_codeInitMathCtx.
int BPU_codeInitParamsGoppa(BPU_T_UN_Code_Params *params, const uint16_t m, const uint16_t t, const BPU_T_GF2_16x mod)
BPU_codeInitParamsGoppa.
uint16_t msg_len
Code dimenzion.
Code specifics union type.
BPU_T_GF2_Vector * e
Error vector.
void BPU_codeFreeCtx(BPU_T_Code_Ctx **ctx)
BPU_codeFreeCtx.
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 BPU_codeInitParamsQcmdpc(BPU_T_UN_Code_Params *params, const uint16_t m, const uint16_t n0, const uint16_t w, const uint16_t t)
void BPU_codeFreeParamsGoppa(BPU_T_UN_Code_Params *params)
BPU_codeFreeParamsGoppa.
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.
_BPU_T_EN_Code_Types
Possible types of codes.
struct _BPU_T_Code_Ctx BPU_T_Code_Ctx
union _BPU_T_UN_Code_Spec BPU_T_UN_Code_Spec
Code specifics union type.
union _BPU_T_UN_Code_Params BPU_T_UN_Code_Params
uint8_t t
Error code correction capability.
int BPU_codeInitCtx(BPU_T_Code_Ctx **ctx, const BPU_T_UN_Code_Params *params, const BPU_T_EN_Code_Types type)
BPU_codeInitCtx Initialize (register) code functions encode, decode and code spec structure based on ...
uint16_t code_len
Code len.
BPU_T_UN_Code_Spec * code_spec
Code specific structure, like generator matrix, control matrix, gen. poly ...