cleaned up pluto's crypto framework
[strongswan.git] / src / pluto / alg / ike_alg_serpent.c
1 #include <stdio.h>
2 #include <string.h>
3 #include <stddef.h>
4 #include <sys/types.h>
5 #include <freeswan.h>
6
7 #include "constants.h"
8 #include "defs.h"
9 #include "log.h"
10 #include "alg_info.h"
11 #include "ike_alg.h"
12
13 #define SERPENT_KEY_MIN_LEN 128
14 #define SERPENT_KEY_DEF_LEN 128
15 #define SERPENT_KEY_MAX_LEN 256
16
17 struct encrypt_desc encrypt_desc_serpent =
18 {
19 algo_type: IKE_ALG_ENCRYPT,
20 algo_id: OAKLEY_SERPENT_CBC,
21 algo_next: NULL,
22
23 enc_blocksize: SERPENT_BLOCK_SIZE,
24 keyminlen: SERPENT_KEY_MIN_LEN,
25 keydeflen: SERPENT_KEY_DEF_LEN,
26 keymaxlen: SERPENT_KEY_MAX_LEN,
27 enc_testvectors: NULL
28 };
29
30 int ike_alg_serpent_init(void);
31
32 int
33 ike_alg_serpent_init(void)
34 {
35 int ret = ike_alg_register_enc(&encrypt_desc_serpent);
36
37 return ret;
38 }
39 /*
40 IKE_ALG_INIT_NAME: ike_alg_serpent_init
41 */