5 Author: Pekka Riikonen <priikone@silcnet.org>
7 Copyright (C) 2007 Pekka Riikonen
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.
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.
20 #ifndef DES_INTERNAL_H
21 #define DES_INTERNAL_H
23 #include "ciphers_def.h"
37 int des_setup(const unsigned char *key, int keylen, int num_rounds,
39 int des_encrypt(des_key *skey, const SilcUInt32 pt[2],
41 int des_decrypt(des_key *skey, const SilcUInt32 ct[2],
44 int des3_setup(const unsigned char *key, int keylen, int num_rounds,
46 int des3_encrypt(des3_key *skey, const SilcUInt32 pt[2],
48 int des3_decrypt(des3_key *skey, const SilcUInt32 ct[2],
51 #endif /* DES_INTERNAL_H */