BitPunch McEliece  v0.0.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
goppatypes.h
Go to the documentation of this file.
1 /*
2 This file is part of BitPunch
3 Copyright (C) 2015 Frantisek Uhrecky <frantisek.uhrecky[what here]gmail.com>
4 
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef GOPPATYPES_H
19 #define GOPPATYPES_H
20 #include <bitpunch/math/gf2types.h>
23 
27 typedef struct _BPU_T_Goppa_Spec {
32  uint16_t support_len;
34 
38 typedef struct _BPU_T_Goppa_Params {
39  uint16_t m;
40  uint16_t t;
43 
49 
58 int BPU_goppaInitParams(BPU_T_Goppa_Params **params, const uint16_t m, const uint16_t t, const BPU_T_GF2_16x mod);
59 
65 
66 #endif // GOPPATYPES_H
uint16_t t
error capability of code
Definition: goppatypes.h:40
BPU_T_GF2_Matrix * g_mat
Generator matrix.
Definition: goppatypes.h:28
void BPU_goppaFreeParams(BPU_T_Goppa_Params **params)
BPU_goppaFreeParams Free goppa code params.
Definition: goppatypes.c:51
uint16_t m
degree of mod polynomial
Definition: goppatypes.h:39
uint16_t BPU_T_GF2_16x
Definition: gf2xtypes.h:26
BPU_T_Perm_Vector * permutation
permutation "matrix"
Definition: goppatypes.h:31
BPU_T_GF2_16x_Matrix * h_mat
Control matrix H.
Definition: goppatypes.h:29
uint16_t support_len
number of elements in support
Definition: goppatypes.h:32
void BPU_goppaFreeSpec(BPU_T_Goppa_Spec *spec)
BPU_goppaFreeSpec Free Goppa code internal structure.
Definition: goppatypes.c:27
struct _BPU_T_Goppa_Spec BPU_T_Goppa_Spec
int BPU_goppaInitParams(BPU_T_Goppa_Params **params, const uint16_t m, const uint16_t t, const BPU_T_GF2_16x mod)
BPU_goppaInitParams Initi Goppa code params.
Definition: goppatypes.c:36
BPU_T_GF2_16x mod
Galois field polynomial.
Definition: goppatypes.h:41
struct _BPU_T_Goppa_Params BPU_T_Goppa_Params
BPU_T_GF2_16x_Poly * g
gen. polynomial
Definition: goppatypes.h:30