Merge branches 'pm-cpuidle', 'pm-opp' and 'pm-avs'
[cascardo/linux.git] / drivers / staging / ks7010 / michael_mic.h
1 /*
2  *   Driver for KeyStream wireless LAN
3  *
4  *   Copyright (C) 2005-2008 KeyStream Corp.
5  *   Copyright (C) 2009 Renesas Technology Corp.
6  *
7  *   This program is free software; you can redistribute it and/or modify
8  *   it under the terms of the GNU General Public License version 2 as
9  *   published by the Free Software Foundation.
10  */
11
12 /* MichelMIC routine define */
13 struct michel_mic_t {
14         uint32_t K0;    // Key 
15         uint32_t K1;    // Key 
16         uint32_t L;     // Current state 
17         uint32_t R;     // Current state 
18         uint8_t M[4];   // Message accumulator (single word) 
19         int nBytesInM;  // # bytes in M 
20         uint8_t Result[8];
21 };
22
23 extern
24 void MichaelMICFunction(struct michel_mic_t *Mic, uint8_t * Key,
25                         uint8_t * Data, int Len, uint8_t priority,
26                         uint8_t * Result);