w(1): Limit affect of locale change
[dragonfly.git] / sys / crypto / twofish / twofish.h
blobf9f0a37b49d2644f5ac9d5925a3ae837368f7f0e
1 #ifndef __TWOFISH_H
2 #define __TWOFISH_H
4 typedef struct
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;
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[]);
16 #endif /* __TWOFISH_H */