moved alg-serpent and alg-twofish scenarios to gcrypt-ikev1
[strongswan.git] / src / libstrongswan / plugins / twofish / twofish_crypter.h
1 /*
2 * Copyright (C) 2005-2008 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * Copyright (C) 2009 Andreas Steffen
5 * Hochschule fuer Technik Rapperswil
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
16 */
17
18 /**
19 * @defgroup twofish_crypter twofish_crypter
20 * @{ @ingroup twofish_p
21 */
22
23 #ifndef TWOFISH_CRYPTER_H_
24 #define TWOFISH_CRYPTER_H_
25
26 typedef struct twofish_crypter_t twofish_crypter_t;
27
28 #include <crypto/crypters/crypter.h>
29
30 /**
31 * Class implementing the Twofish encryption algorithm.
32 */
33 struct twofish_crypter_t {
34
35 /**
36 * The crypter_t interface.
37 */
38 crypter_t crypter_interface;
39 };
40
41 /**
42 * Constructor to create twofish_crypter_t objects.
43 *
44 * @param key_size key size in bytes
45 * @param algo algorithm to implement
46 * @return twofish_crypter_t object, NULL if not supported
47 */
48 twofish_crypter_t *twofish_crypter_create(encryption_algorithm_t algo,
49 size_t key_size);
50
51 #endif /** TWOFISH_CRYPTER_H_ @}*/