Added proposal keywords for ESN support
[strongswan.git] / src / libstrongswan / crypto / transform.c
1 /*
2 * Copyright (C) 2006-2009 Martin Willi
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 #include <crypto/transform.h>
17
18 ENUM_BEGIN(transform_type_names, UNDEFINED_TRANSFORM_TYPE, AEAD_ALGORITHM,
19 "UNDEFINED_TRANSFORM_TYPE",
20 "HASH_ALGORITHM",
21 "RANDOM_NUMBER_GENERATOR",
22 "AEAD_ALGORITHM");
23 ENUM_NEXT(transform_type_names, ENCRYPTION_ALGORITHM, EXTENDED_SEQUENCE_NUMBERS, AEAD_ALGORITHM,
24 "ENCRYPTION_ALGORITHM",
25 "PSEUDO_RANDOM_FUNCTION",
26 "INTEGRITY_ALGORITHM",
27 "DIFFIE_HELLMAN_GROUP",
28 "EXTENDED_SEQUENCE_NUMBERS");
29 ENUM_END(transform_type_names, EXTENDED_SEQUENCE_NUMBERS);
30
31
32 ENUM(extended_sequence_numbers_names, NO_EXT_SEQ_NUMBERS, EXT_SEQ_NUMBERS,
33 "NO_EXT_SEQ",
34 "EXT_SEQ",
35 );