BitPunch McEliece  v0.0.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
qcmdpctypes.h File Reference
#include <bitpunch/math/gf2types.h>
#include <bitpunch/debugio.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  _BPU_T_Qcmdpc_Spec
 
struct  _BPU_T_Qcmdpc_Params
 

Typedefs

typedef struct _BPU_T_Qcmdpc_Spec BPU_T_Qcmdpc_Spec
 
typedef struct _BPU_T_Qcmdpc_Params BPU_T_Qcmdpc_Params
 

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)
 

Typedef Documentation

QC-MDPC McEliece input code params

QC-MDPC McEliece code matrices

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.