Go to the source code of this file.
Decrypt cipher text (ct) and save it to plain text.
Decrypt cipher text (ct) and save it to plain text. All strctures must be allocated before use.
- Parameters
-
pt | plain text |
ct | cipher text |
ctx | McEliece context |
- Returns
- 0 - succes, else error
Definition at line 45 of file mecs.c.
Encrypt plaintext (pt) and save it to cipher text.
Encrypt plaintext (pt) and save it to cipher text. All strctures must be allocated before use.
- Parameters
-
ct | cipher text |
pt | plain text |
ctx | McEliece context |
- Returns
- 0 - succes, else error
Definition at line 33 of file mecs.c.
Key generation, first must be initialized context using BPU_mecsInitCtx().
Key generation, first must be initialized context using BPU_mecsInitCtx().
- Parameters
-
- Returns
- 0 - success, else error
Definition at line 55 of file mecs.c.