1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  *   Driver for KeyStream wireless LAN
4  *
5  *   Copyright (C) 2005-2008 KeyStream Corp.
6  *   Copyright (C) 2009 Renesas Technology Corp.
7  */
8 
9 /* MichaelMIC routine define */
10 struct michael_mic {
11 	u32 k0;	// Key
12 	u32 k1;	// Key
13 	u32 l;	// Current state
14 	u32 r;	// Current state
15 	u8 m[4];	// Message accumulator (single word)
16 	int m_bytes;	// # bytes in M
17 	u8 result[8];
18 };
19 
20 void michael_mic_function(struct michael_mic *mic, u8 *key,
21 			  u8 *data, unsigned int len, u8 priority, u8 *result);
22