updated integrity algorithm identifiers
[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
17 #include "diffie_hellman.h"
18
19 ENUM_BEGIN(diffie_hellman_group_names, MODP_NONE, MODP_1024_BIT,
20 "MODP_NONE",
21 "MODP_768_BIT",
22 "MODP_1024_BIT");
23 ENUM_NEXT(diffie_hellman_group_names, MODP_1536_BIT, MODP_1536_BIT, MODP_1024_BIT,
24 "MODP_1536_BIT");
25 ENUM_NEXT(diffie_hellman_group_names, MODP_2048_BIT, ECP_521_BIT, MODP_1536_BIT,
26 "MODP_2048_BIT",
27 "MODP_3072_BIT",
28 "MODP_4096_BIT",
29 "MODP_6144_BIT",
30 "MODP_8192_BIT",
31 "ECP_256_BIT",
32 "ECP_384_BIT",
33 "ECP_521_BIT");
34 ENUM_NEXT(diffie_hellman_group_names, ECP_192_BIT, ECP_224_BIT, ECP_521_BIT,
35 "ECP_192_BIT",
36 "ECP_224_BIT");
37 ENUM_NEXT(diffie_hellman_group_names, MODP_NULL, MODP_NULL, ECP_224_BIT,
38 "MODP_NULL");
39 ENUM_END(diffie_hellman_group_names, MODP_NULL);
40