![]() |
BitPunch McEliece
v0.0.4
|
#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) |
void BPU_qcmdpcFreeParams | ( | BPU_T_Qcmdpc_Params ** | params | ) |
Free memory for QC-MDPC code params.
params | pointer to structure |
Definition at line 43 of file qcmdpctypes.c.
void BPU_qcmdpcFreeSpec | ( | BPU_T_Qcmdpc_Spec * | spec | ) |
Free QC-MDPC McEliece code matrices
spec | pointer 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
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 |
Definition at line 27 of file qcmdpctypes.c.