use rwlock instead of a mutex in trap_manager, avoids possible deadlock
[strongswan.git] / src / pluto / alg / ike_alg_twofish.c
1 /* IKE Twofish encryption algorithm description
2 * Copyright (C) JuanJo Ciarlante <jjo-ipsec@mendoza.gov.ar>
3 * Copyright (C) 2009 Andreas Steffen
4 *
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 #include <crypto/crypters/crypter.h>
19
20 #include "ike_alg.h"
21
22 #define TWOFISH_KEY_MIN_LEN 128
23 #define TWOFISH_KEY_DEF_LEN 128
24 #define TWOFISH_KEY_MAX_LEN 256
25
26 struct encrypt_desc encrypt_desc_twofish =
27 {
28 algo_type: IKE_ALG_ENCRYPT,
29 algo_id: OAKLEY_TWOFISH_CBC,
30 algo_next: NULL,
31
32 enc_blocksize: TWOFISH_BLOCK_SIZE,
33 keydeflen: TWOFISH_KEY_MIN_LEN,
34 keyminlen: TWOFISH_KEY_DEF_LEN,
35 keymaxlen: TWOFISH_KEY_MAX_LEN,
36 };
37
38 struct encrypt_desc encrypt_desc_twofish_ssh =
39 {
40 algo_type: IKE_ALG_ENCRYPT,
41 algo_id: OAKLEY_TWOFISH_CBC_SSH,
42 algo_next: NULL,
43
44 enc_blocksize: TWOFISH_BLOCK_SIZE,
45 keydeflen: TWOFISH_KEY_MIN_LEN,
46 keyminlen: TWOFISH_KEY_DEF_LEN,
47 keymaxlen: TWOFISH_KEY_MAX_LEN,
48 };
49