Go to the source code of this file.
|
int | BPU_mecsInitCtx (BPU_T_Mecs_Ctx **ctx, const BPU_T_UN_Mecs_Params *params, const BPU_T_EN_Mecs_Types type) |
| Initialize (register) mecs functions for encryption, decryption and key gen based on type. More...
|
|
int | BPU_mecsFreeCtx (BPU_T_Mecs_Ctx **ctx) |
|
int | BPU_mecsInitParamsGoppa (BPU_T_UN_Mecs_Params *params, const uint16_t m, const uint16_t t, const BPU_T_GF2_16x mod) |
|
void | BPU_mecsFreeParamsGoppa (BPU_T_UN_Mecs_Params *params) |
|
int | BPU_mecsInitParamsQcmdpc (BPU_T_UN_Mecs_Params *params, const uint16_t m, const uint16_t n0, const uint16_t w, const uint16_t t) |
|
void | BPU_mecsFreeParamsQcmdpc (BPU_T_UN_Mecs_Params *params) |
|
Possible types of MECS.
Enumerator |
---|
BPU_EN_MECS_BASIC_GOPPA |
basic mecs, without any conversion
|
BPU_EN_MECS_CCA2_POINTCHEVAL_GOPPA |
adapted Pointcheval's cca2 conversion
|
BPU_EN_MECS_BASIC_QCMDPC |
basic qc-mdpc mecs, without any conversion
|
BPU_EN_MECS_CCA2_POINTCHEVAL_QCMDPC |
adapted Pointcheval's cca2 conversion for qcmdpc
|
Definition at line 27 of file mecsctx.h.
Free memory for params.
- Parameters
-
params | pointer to structure |
Definition at line 204 of file mecsctx.c.
Initialize (register) mecs functions for encryption, decryption and key gen based on type.
Definition at line 37 of file mecsctx.c.
int BPU_mecsInitParamsQcmdpc |
( |
BPU_T_UN_Mecs_Params * |
params, |
|
|
const uint16_t |
m, |
|
|
const uint16_t |
n0, |
|
|
const uint16_t |
w, |
|
|
const uint16_t |
t |
|
) |
| |
Wrapper for param initialization. After work you have to free memory using call BPU_mecsFreeParamsQcmdpc
- 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
- [description]
Definition at line 200 of file mecsctx.c.