|
wpa_supplicant / hostapd 2.0
|
00001 00010 #ifndef DES_I_H 00011 #define DES_I_H 00012 00013 struct des3_key_s { 00014 u32 ek[3][32]; 00015 u32 dk[3][32]; 00016 }; 00017 00018 void des_key_setup(const u8 *key, u32 *ek, u32 *dk); 00019 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt); 00020 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain); 00021 00022 void des3_key_setup(const u8 *key, struct des3_key_s *dkey); 00023 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt); 00024 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain); 00025 00026 #endif /* DES_I_H */ 00027
1.7.3