f94b972d |
1 | /* -*-c-*- |
f94b972d |
2 | * |
3 | * Internal structures for built-in fields |
4 | * |
5 | * (c) 2004 Straylight/Edgeware |
6 | */ |
7 | |
45c0fd36 |
8 | /*----- Licensing notice --------------------------------------------------* |
f94b972d |
9 | * |
10 | * This file is part of Catacomb. |
11 | * |
12 | * Catacomb is free software; you can redistribute it and/or modify |
13 | * it under the terms of the GNU Library General Public License as |
14 | * published by the Free Software Foundation; either version 2 of the |
15 | * License, or (at your option) any later version. |
45c0fd36 |
16 | * |
f94b972d |
17 | * Catacomb is distributed in the hope that it will be useful, |
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 | * GNU Library General Public License for more details. |
45c0fd36 |
21 | * |
f94b972d |
22 | * You should have received a copy of the GNU Library General Public |
23 | * License along with Catacomb; if not, write to the Free |
24 | * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
25 | * MA 02111-1307, USA. |
26 | */ |
27 | |
28 | #ifndef CATACOMB_FIELD_GUTS_H |
29 | #define CATACOMB_FIELD_GUTS_H |
30 | |
31 | #ifdef __cplusplus |
32 | extern "C" { |
33 | #endif |
34 | |
35 | /*----- Header files ------------------------------------------------------*/ |
36 | |
37 | #ifndef CATACOMB_MP_H |
38 | # include "mp.h" |
39 | #endif |
40 | |
41 | #ifndef CATACOMB_EC_H |
42 | # include "ec.h" |
43 | #endif |
44 | |
45 | #ifndef CATACOMB_MPMONT_H |
46 | # include "mpmont.h" |
47 | #endif |
48 | |
49 | #ifndef CATACOMB_MPREDUCE_H |
50 | # include "mpreduce.h" |
51 | #endif |
52 | |
53 | #ifndef CATACOMB_GF_H |
54 | # include "gf.h" |
55 | #endif |
56 | |
57 | #ifndef CATACOMB_GFN_H |
58 | # include "gfn.h" |
59 | #endif |
60 | |
61 | #ifndef CATACOMB_GFREDUCE_H |
62 | # include "gfreduce.h" |
63 | #endif |
64 | |
65 | #ifndef CATACOMB_FIELD_H |
66 | # include "field.h" |
67 | #endif |
68 | |
69 | /*----- Data structures ---------------------------------------------------*/ |
70 | |
71 | typedef struct fctx_prime { |
72 | field f; |
73 | mpmont mm; |
74 | } fctx_prime; |
75 | |
76 | typedef struct fctx_niceprime { |
77 | field f; |
78 | mpreduce r; |
45c0fd36 |
79 | } fctx_niceprime; |
f94b972d |
80 | |
81 | typedef struct fctx_binpoly { |
82 | field f; |
83 | gfreduce r; |
84 | } fctx_binpoly; |
85 | |
86 | typedef struct fctx_binnorm { |
87 | fctx_binpoly f; |
88 | gfn ntop, pton; |
89 | } fctx_binnorm; |
90 | |
91 | /*----- That's all, folks -------------------------------------------------*/ |
92 | |
93 | #ifdef __cplusplus |
94 | } |
95 | #endif |
96 | |
97 | #endif |