Merge commit 'origin/silc.1.1.branch'
[silc.git] / lib / silcske / groups_internal.h
1 /*
2
3   groups_internal.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2000 - 2001 Pekka Riikonen
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; version 2 of the License.
12   
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #ifndef GROUPS_INTERNAL_H
21 #define GROUPS_INTERNAL_H
22
23 /* Diffie Hellman Group. Defines the group name, prime, largest prime 
24    factor (group order) and generator. */
25 struct SilcSKEDiffieHellmanGroupDefStruct {
26   int number;
27   char *name;
28   char *group;
29   char *group_order;
30   char *generator;
31 };
32
33 struct SilcSKEDiffieHellmanGroupStruct {
34   int number;
35   char *name;
36   SilcMPInt group;
37   SilcMPInt group_order;
38   SilcMPInt generator;
39 };
40
41 /* List of defined groups. */
42 extern const struct SilcSKEDiffieHellmanGroupDefStruct silc_ske_groups[];
43
44 #endif