33 #define BPU_QCMDPC_PARAM_MAX_ITER 10
36 #define BPU_QCMDPC_PARAM_DELTA 5
39 #define BPU_QCMDPC_PARAM_DELTA_B 0
40 #define BPU_QCMDPC_MAX_B_VALUES 5
42 #ifdef BPU_CONF_ENCRYPTION
53 #ifdef BPU_CONF_DECRYPTION
100 #ifdef BPU_CONF_KEY_GEN
120 #endif // BPU_QCMDPC_H
int BPU_mecsQcmdpcDecode1(BPU_T_GF2_Vector *error_vec, const BPU_T_GF2_Vector *cipher_text, int delta, const struct _BPU_T_Code_Ctx *ctx)
int BPU_mecsQcmdpcTestGHmatrices(const BPU_T_GF2_QC_Matrix *G, const BPU_T_GF2_Sparse_Qc_Matrix *H)
int BPU_mecsQcmdpcDecode2(BPU_T_GF2_Vector *error_vec, const BPU_T_GF2_Vector *cipher_text, const struct _BPU_T_Code_Ctx *ctx)
int BPU_mecsQcmdpcEncode(BPU_T_GF2_Vector *out, const BPU_T_GF2_Vector *in, const struct _BPU_T_Code_Ctx *ctx)
void BPU_mecsQcmdpcCalcSyndrom(BPU_T_GF2_Vector *syndrom, const BPU_T_GF2_Vector *cipher_text, const struct _BPU_T_Code_Ctx *ctx)
int BPU_mecsQcmdpcGenKeys(BPU_T_Code_Ctx *ctx)
int BPU_mecsQcmdpcDecrypt(BPU_T_GF2_Vector *out, const BPU_T_GF2_Vector *in, const struct _BPU_T_Code_Ctx *ctx)