81c463ac70586d406299d6bd84d3142666b1b2ee
[strongswan.git] / src / charon / config / proposal_keywords.txt
1 %{
2 /* proposal keywords
3  * Copyright (C) 2009 Andreas Steffen
4  * Hochschule fuer Technik Rapperswil, Switzerland
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  * RCSID $Id:$
17  */
18
19 #include <string.h>
20
21 #include "proposal.h"
22
23 #include <crypto/crypters/crypter.h>
24 #include <crypto/signers/signer.h>
25
26 %}
27 struct proposal_token {
28     char             *name;
29     transform_type_t  type;
30         u_int16_t         algorithm;
31     u_int16_t         keysize;  
32 };
33 %%
34 null,             ENCRYPTION_ALGORITHM, ENCR_NULL,                0
35 aes128,           ENCRYPTION_ALGORITHM, ENCR_AES_CBC,           128
36 aes192,           ENCRYPTION_ALGORITHM, ENCR_AES_CBC,           192
37 aes256,           ENCRYPTION_ALGORITHM, ENCR_AES_CBC,           256
38 aes128ccm8,       ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV8,      128
39 aes128ccm64,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV8,      128
40 aes128ccm12,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV12,     128
41 aes128ccm96,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV12,     128
42 aes128ccm16,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV16,     128
43 aes128ccm128,     ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV16,     128
44 aes192ccm8,       ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV8,      192
45 aes192ccm64,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV8,      192
46 aes192ccm12,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV12,     192
47 aes192ccm96,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV12,     192
48 aes192ccm16,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV16,     192
49 aes192ccm128,     ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV16,     192
50 aes256ccm8,       ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV8,      256
51 aes256ccm64,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV8,      256
52 aes256ccm12,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV12,     256
53 aes256ccm96,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV12,     256
54 aes256ccm16,      ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV16,     256
55 aes256ccm128,     ENCRYPTION_ALGORITHM, ENCR_AES_CCM_ICV16,     256
56 aes128gcm8,       ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV8,      128
57 aes128gcm64,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV8,      128
58 aes128gcm12,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV12,     128
59 aes128gcm96,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV12,     128
60 aes128gcm16,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16,     128
61 aes128gcm128,     ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16,     128
62 aes192gcm8,       ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV8,      192
63 aes192gcm64,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV8,      192
64 aes192gcm12,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV12,     192
65 aes192gcm96,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV12,     192
66 aes192gcm16,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16,     192
67 aes192gcm128,     ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16,     192
68 aes256gcm8,       ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV8,      256
69 aes256gcm64,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV8,      256
70 aes256gcm12,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV12,     256
71 aes256gcm96,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV12,     256
72 aes256gcm16,      ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16,     256
73 aes256gcm128,     ENCRYPTION_ALGORITHM, ENCR_AES_GCM_ICV16,     256
74 3des,             ENCRYPTION_ALGORITHM, ENCR_3DES,                0
75 blowfish128,      ENCRYPTION_ALGORITHM, ENCR_BLOWFISH,          128
76 blowfish192,      ENCRYPTION_ALGORITHM, ENCR_BLOWFISH,          192
77 blowfish256,      ENCRYPTION_ALGORITHM, ENCR_BLOWFISH,          256
78 camellia128,      ENCRYPTION_ALGORITHM, ENCR_CAMELLIA_CBC,      128
79 camellia192,      ENCRYPTION_ALGORITHM, ENCR_CAMELLIA_CBC,      192
80 camellia256,      ENCRYPTION_ALGORITHM, ENCR_CAMELLIA_CBC,      256
81 sha,              INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA1_96,        0
82 sha1,             INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA1_96,        0
83 sha256,           INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA2_256_128,   0
84 sha2_256,         INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA2_256_128,   0
85 sha384,           INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA2_384_192,   0
86 sha2_384,         INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA2_384_192,   0
87 sha512,           INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA2_512_256,   0
88 sha2_512,         INTEGRITY_ALGORITHM,  AUTH_HMAC_SHA2_512_256,   0
89 md5,              INTEGRITY_ALGORITHM,  AUTH_HMAC_MD5_96,         0
90 aesxcbc,          INTEGRITY_ALGORITHM,  AUTH_AES_XCBC_96,         0
91 modpnull,         DIFFIE_HELLMAN_GROUP, MODP_NULL,                0
92 modp768,          DIFFIE_HELLMAN_GROUP, MODP_768_BIT,             0
93 modp1024,         DIFFIE_HELLMAN_GROUP, MODP_1024_BIT,            0
94 modp1536,         DIFFIE_HELLMAN_GROUP, MODP_1536_BIT,            0
95 modp2048,         DIFFIE_HELLMAN_GROUP, MODP_2048_BIT,            0
96 modp3072,         DIFFIE_HELLMAN_GROUP, MODP_3072_BIT,            0
97 modp4096,         DIFFIE_HELLMAN_GROUP, MODP_4096_BIT,            0
98 modp6144,         DIFFIE_HELLMAN_GROUP, MODP_6144_BIT,            0
99 modp8192,         DIFFIE_HELLMAN_GROUP, MODP_8192_BIT,            0
100 ecp192,           DIFFIE_HELLMAN_GROUP, ECP_192_BIT,              0
101 ecp224,           DIFFIE_HELLMAN_GROUP, ECP_224_BIT,              0
102 ecp256,           DIFFIE_HELLMAN_GROUP, ECP_256_BIT,              0
103 ecp384,           DIFFIE_HELLMAN_GROUP, ECP_384_BIT,              0
104 ecp521,           DIFFIE_HELLMAN_GROUP, ECP_521_BIT,              0