Added possibility to register custom proposal keywords
[strongswan.git] / src / libstrongswan / crypto / transform.h
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 /**
17 * @defgroup transforms transforms
18 * @{ @ingroup crypto
19 */
20
21 #ifndef TRANSFORM_H_
22 #define TRANSFORM_H_
23
24 typedef enum transform_type_t transform_type_t;
25
26 #include <enum.h>
27
28 /**
29 * Type of a transform, as in IKEv2 RFC 3.3.2.
30 */
31 enum transform_type_t {
32 UNDEFINED_TRANSFORM_TYPE = 241,
33 HASH_ALGORITHM = 242,
34 RANDOM_NUMBER_GENERATOR = 243,
35 AEAD_ALGORITHM = 244,
36 ENCRYPTION_ALGORITHM = 1,
37 PSEUDO_RANDOM_FUNCTION = 2,
38 INTEGRITY_ALGORITHM = 3,
39 DIFFIE_HELLMAN_GROUP = 4,
40 EXTENDED_SEQUENCE_NUMBERS = 5
41 };
42
43 /**
44 * enum names for transform_type_t.
45 */
46 extern enum_name_t *transform_type_names;
47
48 /**
49 * Extended sequence numbers, as in IKEv2 RFC 3.3.2.
50 */
51 enum extended_sequence_numbers_t {
52 NO_EXT_SEQ_NUMBERS = 0,
53 EXT_SEQ_NUMBERS = 1
54 };
55
56 /**
57 * enum strings for extended_sequence_numbers_t.
58 */
59 extern enum_name_t *extended_sequence_numbers_names;
60
61 #endif /** TRANSFORM_H_ @}*/