Go to the source code of this file.
|
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 code type. More...
|
|
int | BPU_codeInitMathCtx (BPU_T_Math_Ctx **ctx, const uint16_t m, const uint16_t t, const BPU_T_GF2_16x mod) |
| BPU_codeInitMathCtx. More...
|
|
void | BPU_codeFreeCtx (BPU_T_Code_Ctx **ctx) |
| BPU_codeFreeCtx. More...
|
|
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. More...
|
|
void | BPU_codeFreeParamsGoppa (BPU_T_UN_Code_Params *params) |
| BPU_codeFreeParamsGoppa. More...
|
|
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_codeFreeParamsQcmdpc (BPU_T_UN_Code_Params *params) |
|
Code specifics union type.
Possible types of codes.
Enumerator |
---|
BPU_EN_CODE_GOPPA |
|
BPU_EN_CODE_QCMDPC |
|
Definition at line 34 of file codectx.h.
BPU_codeFreeCtx.
- Parameters
-
Definition at line 161 of file codectx.c.
BPU_codeFreeParamsGoppa.
- Parameters
-
Definition at line 191 of file codectx.c.
Free memory for params.
- Parameters
-
params | pointer to structure |
Definition at line 199 of file codectx.c.
BPU_codeInitCtx Initialize (register) code functions encode, decode and code spec structure based on code type.
- Parameters
-
- Returns
Definition at line 31 of file codectx.c.
BPU_codeInitMathCtx.
- Parameters
-
- Returns
Definition at line 126 of file codectx.c.
BPU_codeInitParamsGoppa.
- Parameters
-
- Returns
Definition at line 187 of file codectx.c.
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 |
|
) |
| |
Wrapper for param initialization. After work you have to free memory using call BPU_codeFreeParamsQcmdpc
- Parameters
-
params | pointer to structure |
m | size of cyclic matrix |
n0 | number of cyclic matrices |
w | weight of parity-check matrix row |
t | count of errors |
- Returns
- [description]
Definition at line 195 of file codectx.c.