added support for 3DES encryption algorithm in IKE
[strongswan.git] / src / libstrongswan / crypto / crypters / des_crypter.h
1 /**
2 * @file des_crypter.h
3 *
4 * @brief Interface of des_crypter_t
5 *
6 */
7
8 /*
9 * Copyright (C) 2006 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 #ifndef DES_CRYPTER_H_
24 #define DES_CRYPTER_H_
25
26 #include <crypto/crypters/crypter.h>
27
28
29 typedef struct des_crypter_t des_crypter_t;
30
31 /**
32 * @brief Class implementing the DES and 3DES encryption algorithms.
33 *
34 * @b Constructors:
35 * - des_crypter_create()
36 *
37 * @ingroup crypters
38 */
39 struct des_crypter_t {
40
41 /**
42 * The crypter_t interface.
43 */
44 crypter_t crypter_interface;
45 };
46
47 /**
48 * @brief Constructor to create des_crypter_t objects.
49 *
50 * @param algo ENCR_DES for single DES, ENCR_3DES for triple DES
51 * @return
52 * - des_crypter_t object
53 * - NULL if algo not supported
54 */
55 des_crypter_t *des_crypter_create(encryption_algorithm_t algo);
56
57
58 #endif /* DES_CRYPTER_H_ */