xref: /linux/net/mac80211/michael.h (revision 1b19ca396621dcba573b20d4625526f5a460c886)
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 
17*1b19ca39SHarvey Harrison struct michael_mic_ctx {
18*1b19ca39SHarvey Harrison 	u32 l, r;
19*1b19ca39SHarvey Harrison };
20*1b19ca39SHarvey Harrison 
21f0706e82SJiri Benc void michael_mic(u8 *key, u8 *da, u8 *sa, u8 priority,
22f0706e82SJiri Benc 		 u8 *data, size_t data_len, u8 *mic);
23f0706e82SJiri Benc 
24f0706e82SJiri Benc #endif /* MICHAEL_H */
25