Added SILC Thread Queue API
[silc.git] / lib / silccrypt / cast5_internal.h
1 /*
2
3   cast5_internal.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2007 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #ifndef CAST5_INTERNAL_H
21 #define CAST5_INTERNAL_H
22
23 #include "ciphers_def.h"
24
25 typedef struct {
26   SilcUInt32 K[32];
27   SilcUInt16 keylen;
28   SilcUInt16 padlen;
29 } cast5_key;
30
31 int cast5_setup(const unsigned char *key, int keylen, int num_rounds,
32                 cast5_key *skey);
33 int cast5_encrypt(cast5_key *skey, const SilcUInt32 pt[2],
34                   SilcUInt32 ct[2]);
35 int cast5_decrypt(cast5_key *skey, const SilcUInt32 ct[2],
36                   SilcUInt32 pt[2]);
37
38 #endif /* CAST5_INTERNAL_H */