Added WirelessManager, a port of wpa_supplicant.
[AROS.git] / workbench / network / WirelessManager / src / crypto / des_i.h
blob6f274144a0e614d17129b5077809dc94eba886bb
1 /*
2 * DES and 3DES-EDE ciphers
3 * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef DES_I_H
16 #define DES_I_H
18 struct des3_key_s {
19 u32 ek[3][32];
20 u32 dk[3][32];
23 void des_key_setup(const u8 *key, u32 *ek, u32 *dk);
24 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
25 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain);
27 void des3_key_setup(const u8 *key, struct des3_key_s *dkey);
28 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
29 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
31 #endif /* DES_I_H */