fb17898d011bb9162e0bc162b39fe300c305c813
[strongswan.git] / src / libstrongswan / crypto / diffie_hellman.c
1 /*
2 * Copyright (C) 2005-2008 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * $Id$
17 */
18
19 #include "diffie_hellman.h"
20
21 ENUM_BEGIN(diffie_hellman_group_names, MODP_NONE, MODP_1024_BIT,
22 "MODP_NONE",
23 "MODP_768_BIT",
24 "MODP_1024_BIT");
25 ENUM_NEXT(diffie_hellman_group_names, MODP_1536_BIT, MODP_1536_BIT, MODP_1024_BIT,
26 "MODP_1536_BIT");
27 ENUM_NEXT(diffie_hellman_group_names, MODP_2048_BIT, ECP_521_BIT, MODP_1536_BIT,
28 "MODP_2048_BIT",
29 "MODP_3072_BIT",
30 "MODP_4096_BIT",
31 "MODP_6144_BIT",
32 "MODP_8192_BIT",
33 "ECP_256_BIT",
34 "ECP_384_BIT",
35 "ECP_521_BIT");
36 ENUM_NEXT(diffie_hellman_group_names, ECP_192_BIT, ECP_224_BIT, ECP_521_BIT,
37 "ECP_192_BIT",
38 "ECP_224_BIT");
39 ENUM_END(diffie_hellman_group_names, ECP_224_BIT);
40