fixed CHILD_SA SPI byte order in XML interface
[strongswan.git] / src / libcrypto / libserpent / 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 struct serpent_context {
11 u32 keyinfo[140]; /* storage for the key schedule */
12 };
13 typedef struct serpent_context serpent_context;
14 int serpent_set_key(serpent_context *ctx, const u8 * in_key, int key_len);
15 int serpent_decrypt(serpent_context *ctx, const u8 * in_blk, u8 * out_blk);
16 int serpent_encrypt(serpent_context *ctx, const u8 * in_blk, u8 * out_blk);
17 #endif /* SERPENT_H */