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