#include <bitpunch/math/gf2types.h>
#include <bitpunch/debugio.h>
#include <stdlib.h>
Go to the source code of this file.
QC-MDPC McEliece input code params
QC-MDPC McEliece code matrices
Free memory for QC-MDPC code params.
- Parameters
-
params | pointer to structure |
Definition at line 43 of file qcmdpctypes.c.
Free QC-MDPC McEliece code matrices
- Parameters
-
Definition at line 21 of file qcmdpctypes.c.
int BPU_qcmdpcInitParams |
( |
BPU_T_Qcmdpc_Params ** |
params, |
|
|
const uint16_t |
m, |
|
|
const uint16_t |
n0, |
|
|
const uint16_t |
w, |
|
|
const uint16_t |
t |
|
) |
| |
Allocate memory for QC-MDPC code params. After work you have to free memory using call BPU_qcmdpcFreeParams
- 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
- 0 if OK, else error
Definition at line 27 of file qcmdpctypes.c.