79a02cf02f786cf5e2a6f1f81b4f7b054c32a7f4
[strongswan.git] / Source / charon / transforms / crypters / crypter.c
1 /**
2 * @file crypter.c
3 *
4 * @brief Generic constructor for crypter_t.
5 *
6 */
7
8 /*
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 */
22
23
24 #include "crypter.h"
25
26
27 /**
28 * string mappings for encryption_algorithm_t
29 */
30 mapping_t encryption_algorithm_m[] = {
31 {ENCR_UNDEFINED, "ENCR_UNDEFINED"},
32 {ENCR_DES_IV64, "ENCR_DES_IV64"},
33 {ENCR_DES, "ENCR_DES"},
34 {ENCR_3DES, "ENCR_3DES"},
35 {ENCR_RC5, "ENCR_RC5"},
36 {ENCR_IDEA, "ENCR_IDEA"},
37 {ENCR_CAST, "ENCR_CAST"},
38 {ENCR_BLOWFISH, "ENCR_BLOWFISH"},
39 {ENCR_3IDEA, "ENCR_3IDEA"},
40 {ENCR_DES_IV32, "ENCR_DES_IV32"},
41 {ENCR_NULL, "ENCR_NULL"},
42 {ENCR_AES_CBC, "ENCR_AES_CBC"},
43 {ENCR_AES_CTR, "ENCR_AES_CTR"},
44 {MAPPING_END, NULL}
45 };