Blame view

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