Merge branch 'vendor/MPFR'
[dragonfly.git] / sys / crypto / twofish / twofish.h
1 #ifndef __TWOFISH_H
2 #define __TWOFISH_H
3
4 typedef struct
5 {
6         u_int32_t l_key[40];
7         u_int32_t s_key[4];
8         u_int32_t mk_tab[4*256];
9         u_int32_t k_len;
10 } twofish_ctx;
11
12 void twofish_set_key(twofish_ctx *ctx, const u_int8_t in_key[], int key_len);
13 void twofish_encrypt(twofish_ctx *ctx, const u_int8_t in_blk[], u_int8_t out_blk[]);
14 void twofish_decrypt(twofish_ctx *ctx, const u_int8_t in_blk[], u_int8_t out_blk[]);
15
16 #endif /* __TWOFISH_H */