BitPunch McEliece  v0.0.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mecs.h
Go to the documentation of this file.
1 /*
2 This file is part of BitPunch
3 Copyright (C) 2013-2015 Frantisek Uhrecky <frantisek.uhrecky[what here]gmail.com>
4 Copyright (C) 2013-2014 Andrej Gulyas <andrej.guly[what here]gmail.com>
5 Copyright (C) 2013-2014 Marek Klein <kleinmrk[what here]gmail.com>
6 Copyright (C) 2013-2014 Filip Machovec <filipmachovec[what here]yahoo.com>
7 Copyright (C) 2013-2014 Jozef Kudlac <jozef[what here]kudlac.sk>
8 
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22 #ifndef BPU_MECS_H
23 #define BPU_MECS_H
24 
25 #include "mecsctx.h"
26 
27 #include <bitpunch/config.h>
28 #include <bitpunch/math/gf2.h>
29 #include <bitpunch/math/gf2x.h>
30 #include <bitpunch/code/codectx.h>
31 
32 /******************************************************************/
33 #ifdef BPU_CONF_ENCRYPTION
34 
35 int BPU_mecsEncrypt(BPU_T_GF2_Vector *ct, const BPU_T_GF2_Vector *pt, const BPU_T_Mecs_Ctx *ctx);
36 #endif
37 
38 #ifdef BPU_CONF_DECRYPTION
39 
41 #endif
42 
43 #ifdef BPU_CONF_KEY_GEN
44 
46 #endif
47 
48 #endif // BPU_MECS_H
int BPU_mecsGenKeyPair(BPU_T_Mecs_Ctx *ctx)
Key generation, first must be initialized context using BPU_mecsInitCtx().
Definition: mecs.c:55
int BPU_mecsEncrypt(BPU_T_GF2_Vector *ct, const BPU_T_GF2_Vector *pt, const BPU_T_Mecs_Ctx *ctx)
Encrypt plaintext (pt) and save it to cipher text.
Definition: mecs.c:33
int BPU_mecsDecrypt(BPU_T_GF2_Vector *pt, BPU_T_GF2_Vector *ct, const BPU_T_Mecs_Ctx *ctx)
Decrypt cipher text (ct) and save it to plain text.
Definition: mecs.c:45