1f0706e82SJiri Benc /* 2f0706e82SJiri Benc * Michael MIC implementation - optimized for TKIP MIC operations 3f0706e82SJiri Benc * Copyright 2002-2003, Instant802 Networks, Inc. 4f0706e82SJiri Benc * 5f0706e82SJiri Benc * This program is free software; you can redistribute it and/or modify 6f0706e82SJiri Benc * it under the terms of the GNU General Public License version 2 as 7f0706e82SJiri Benc * published by the Free Software Foundation. 8f0706e82SJiri Benc */ 9f0706e82SJiri Benc 10f0706e82SJiri Benc #ifndef MICHAEL_H 11f0706e82SJiri Benc #define MICHAEL_H 12f0706e82SJiri Benc 13f0706e82SJiri Benc #include <linux/types.h> 14f0706e82SJiri Benc 15f0706e82SJiri Benc #define MICHAEL_MIC_LEN 8 16f0706e82SJiri Benc 171b19ca39SHarvey Harrison struct michael_mic_ctx { 181b19ca39SHarvey Harrison u32 l, r; 191b19ca39SHarvey Harrison }; 201b19ca39SHarvey Harrison 21*8e8862b7SHarvey Harrison void michael_mic(const u8 *key, struct ieee80211_hdr *hdr, 22a7b6f0c5SHarvey Harrison const u8 *data, size_t data_len, u8 *mic); 23f0706e82SJiri Benc 24f0706e82SJiri Benc #endif /* MICHAEL_H */ 25