Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / sys / crypto / serpent / serpent.h
1
2 // Copyright in this code is held by Dr B. R. Gladman but free direct or
3 // derivative use is permitted subject to acknowledgement of its origin.
4 // Dr B. R. Gladman                               .   25th January 2000.
5
6 typedef struct
7 {
8         uint32_t l_key[140];
9 } serpent_ctx;
10
11 void serpent_set_key(serpent_ctx *ctx, const u_int8_t in_key[], int key_len);
12 void serpent_encrypt(serpent_ctx *ctx, const u_int8_t in_blk[],
13                      u_int8_t out_blk[]);
14 void serpent_decrypt(serpent_ctx *ctx, const u_int8_t in_blk[],
15                      u_int8_t out_blk[]);
16