use rwlock instead of a mutex in trap_manager, avoids possible deadlock
[strongswan.git] / src / pluto / alg / ike_alg_serpent.c
1 /* IKE Serpent 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 SERPENT_KEY_MIN_LEN 128
23 #define SERPENT_KEY_DEF_LEN 128
24 #define SERPENT_KEY_MAX_LEN 256
25
26 struct encrypt_desc encrypt_desc_serpent =
27 {
28 algo_type: IKE_ALG_ENCRYPT,
29 algo_id: OAKLEY_SERPENT_CBC,
30 algo_next: NULL,
31
32 enc_blocksize: SERPENT_BLOCK_SIZE,
33 keyminlen: SERPENT_KEY_MIN_LEN,
34 keydeflen: SERPENT_KEY_DEF_LEN,
35 keymaxlen: SERPENT_KEY_MAX_LEN,
36 };
37