moved alg-serpent and alg-twofish scenarios to gcrypt-ikev1
[strongswan.git] / src / libstrongswan / plugins / serpent / serpent.h
1 #ifndef SERPENT_H
2 #define SERPENT_H
3 #ifdef __KERNEL__
4 #include <linux/types.h>
5 #else
6 #include <sys/types.h>
7 #define u32 u_int32_t
8 #define u8 u_int8_t
9 #endif
10
11 struct serpent_context {
12 u32 keyinfo[140];
13 };
14
15 typedef struct serpent_context serpent_context;
16
17 int serpent_set_key(serpent_context *ctx, const u8 * in_key, int key_len);
18 int serpent_decrypt(serpent_context *ctx, const u8 * in_blk, u8 * out_blk);
19 int serpent_encrypt(serpent_context *ctx, const u8 * in_blk, u8 * out_blk);
20
21 #endif /* SERPENT_H */