extended hasher_signature_algorithm_to_oid() function
[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 <library.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 ENCRYPTION_ALGORITHM = 1,
36 PSEUDO_RANDOM_FUNCTION = 2,
37 INTEGRITY_ALGORITHM = 3,
38 DIFFIE_HELLMAN_GROUP = 4,
39 EXTENDED_SEQUENCE_NUMBERS = 5
40 };
41
42 /**
43 * enum names for transform_type_t.
44 */
45 extern enum_name_t *transform_type_names;
46
47 #endif /** TRANSFORM_H_ @}*/