]> git.saurik.com Git - apple/ipsec.git/blob - ipsec-tools/racoon/algorithm_types.h
aca2f18f50301501e61d19a34a21325da5bc95f7
[apple/ipsec.git] / ipsec-tools / racoon / algorithm_types.h
1 /* $Id: algorithm.h,v 1.8 2004/11/18 15:14:44 ludvigm Exp $ */
2
3 /*
4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the project nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32 #ifndef _ALGORITHM_TYPES_H
33 #define _ALGORITHM_TYPES_H
34
35
36 /* algorithm class */
37 enum {
38 algclass_ipsec_enc,
39 algclass_ipsec_auth,
40 algclass_ipsec_comp,
41 algclass_isakmp_enc,
42 algclass_isakmp_hash,
43 algclass_isakmp_dh,
44 algclass_isakmp_ameth, /* authentication method. */
45 #define MAXALGCLASS 7
46 };
47
48 #define ALG_DEFAULT_KEYLEN 64
49
50 #define ALGTYPE_NOTHING 0
51
52 /* algorithm type */
53 enum algtype {
54 algtype_nothing = 0,
55
56 /* enc */
57 algtype_des_iv64,
58 algtype_des,
59 algtype_3des,
60 algtype_rc5,
61 algtype_idea,
62 algtype_cast128,
63 algtype_blowfish,
64 algtype_3idea,
65 algtype_des_iv32,
66 algtype_rc4,
67 algtype_null_enc,
68 algtype_aes,
69 algtype_twofish,
70
71 /* ipsec auth */
72 algtype_hmac_md5,
73 algtype_hmac_sha1,
74 algtype_des_mac,
75 algtype_kpdk,
76 algtype_non_auth,
77 algtype_hmac_sha2_256,
78 algtype_hmac_sha2_384,
79 algtype_hmac_sha2_512,
80
81 /* ipcomp */
82 algtype_oui,
83 algtype_deflate,
84 algtype_lzs,
85
86 /* hash */
87 algtype_md5,
88 algtype_sha1,
89 algtype_tiger,
90 algtype_sha2_256,
91 algtype_sha2_384,
92 algtype_sha2_512,
93
94 /* dh_group */
95 algtype_modp768,
96 algtype_modp1024,
97 algtype_ec2n155,
98 algtype_ec2n185,
99 algtype_modp1536,
100 algtype_modp2048,
101 algtype_modp3072,
102 algtype_modp4096,
103 algtype_modp6144,
104 algtype_modp8192,
105
106 /* authentication method. */
107 algtype_psk,
108 algtype_dsssig,
109 algtype_rsasig,
110 algtype_rsaenc,
111 algtype_rsarev,
112 algtype_gssapikrb,
113 #ifdef ENABLE_HYBRID
114 algtype_hybrid_rsa_s,
115 algtype_hybrid_dss_s,
116 algtype_hybrid_rsa_c,
117 algtype_hybrid_dss_c,
118 algtype_xauth_psk_s,
119 algtype_xauth_psk_c,
120 algtype_xauth_rsa_s,
121 algtype_xauth_rsa_c,
122 #endif
123 };
124
125 #endif