| 1 | /* |
| 2 | * Driver for KeyStream wireless LAN |
| 3 | * |
| 4 | * michael_mic.h |
| 5 | * $Id: michael_mic.h 991 2009-09-14 01:38:58Z sekine $ |
| 6 | * |
| 7 | * Copyright (C) 2005-2008 KeyStream Corp. |
| 8 | * Copyright (C) 2009 Renesas Technology Corp. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it undr the terms of the GNU General Public License version 2 as |
| 12 | * published by the Free Sotware Foundation. |
| 13 | */ |
| 14 | |
| 15 | /* MichelMIC routine define */ |
| 16 | struct michel_mic_t { |
| 17 | uint32_t K0; // Key |
| 18 | uint32_t K1; // Key |
| 19 | uint32_t L; // Current state |
| 20 | uint32_t R; // Current state |
| 21 | uint8_t M[4]; // Message accumulator (single word) |
| 22 | int nBytesInM; // # bytes in M |
| 23 | uint8_t Result[8]; |
| 24 | }; |
| 25 | |
| 26 | extern |
| 27 | void MichaelMICFunction( struct michel_mic_t *Mic, uint8_t *Key, |
| 28 | uint8_t *Data, int Len, uint8_t priority, |
| 29 | uint8_t *Result ); |
| 30 | |