des_i.h
Go to the documentation of this file.
00001 /*
00002  * DES and 3DES-EDE ciphers
00003  * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef DES_I_H
00016 #define DES_I_H
00017 
00018 struct des3_key_s {
00019         u32 ek[3][32];
00020         u32 dk[3][32];
00021 };
00022 
00023 void des_key_setup(const u8 *key, u32 *ek, u32 *dk);
00024 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
00025 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain);
00026 
00027 void des3_key_setup(const u8 *key, struct des3_key_s *dkey);
00028 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
00029 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
00030 
00031 #endif /* DES_I_H */


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:19