c684579979e607f8e4952c053d117fedc147ed3a
[u/mdw/catacomb] / group-guts.h
1 /* -*-c-*-
2 *
3 * $Id$
4 *
5 * Internal structures for built-in groups
6 *
7 * (c) 2004 Straylight/Edgeware
8 */
9
10 /*----- Licensing notice --------------------------------------------------*
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.
18 *
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.
23 *
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
51 #ifndef CATACOMB_GROUP_H
52 # include "group.h"
53 #endif
54
55 /*----- Data structures ---------------------------------------------------*/
56
57 typedef struct gctx_prime {
58 group g;
59 mp *gen;
60 mpmont mm;
61 } gctx_prime;
62
63 typedef struct gctx_ec {
64 group g;
65 ec id, gen;
66 ec_info ei;
67 } gctx_ec;
68
69 /*----- That's all, folks -------------------------------------------------*/
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif