BitPunch McEliece  v0.0.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
qcmdpctypes.c File Reference
#include "qcmdpctypes.h"

Go to the source code of this file.

Functions

void BPU_qcmdpcFreeSpec (BPU_T_Qcmdpc_Spec *spec)
 
int BPU_qcmdpcInitParams (BPU_T_Qcmdpc_Params **params, const uint16_t m, const uint16_t n0, const uint16_t w, const uint16_t t)
 
void BPU_qcmdpcFreeParams (BPU_T_Qcmdpc_Params **params)
 

Function Documentation

void BPU_qcmdpcFreeParams ( BPU_T_Qcmdpc_Params **  params)

Free memory for QC-MDPC code params.

Parameters
paramspointer to structure

Definition at line 43 of file qcmdpctypes.c.

void BPU_qcmdpcFreeSpec ( BPU_T_Qcmdpc_Spec spec)

Free QC-MDPC McEliece code matrices

Parameters
specpointer to structure

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
paramspointer to structure
msize of cyclic matrix
n0number of cyclic matrices
wweight of parity-check matrix row
tcount of errors
Returns
0 if OK, else error

Definition at line 27 of file qcmdpctypes.c.