use rwlock instead of a mutex in trap_manager, avoids possible deadlock
[strongswan.git] / src / pluto / alg / ike_alg_blowfish.c
1 /* IKE Blowfish 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 BLOWFISH_KEY_MIN_LEN 128
23 #define BLOWFISH_KEY_MAX_LEN 448
24
25 struct encrypt_desc encrypt_desc_blowfish =
26 {
27 algo_type: IKE_ALG_ENCRYPT,
28 algo_id: OAKLEY_BLOWFISH_CBC,
29 algo_next: NULL,
30
31 enc_blocksize: BLOWFISH_BLOCK_SIZE,
32 keyminlen: BLOWFISH_KEY_MIN_LEN,
33 keydeflen: BLOWFISH_KEY_MIN_LEN,
34 keymaxlen: BLOWFISH_KEY_MAX_LEN,
35 };
36