1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-03-20 22:18:54 +02:00
Xiangfu Liu 906232e59c add ks7010 drivers
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-05-10 06:59:27 -08:00

30 lines
839 B
C

/*
* Driver for KeyStream wireless LAN
*
* michael_mic.h
* $Id: michael_mic.h 991 2009-09-14 01:38:58Z sekine $
*
* Copyright (C) 2005-2008 KeyStream Corp.
* Copyright (C) 2009 Renesas Technology Corp.
*
* This program is free software; you can redistribute it and/or modify
* it undr the terms of the GNU General Public License version 2 as
* published by the Free Sotware Foundation.
*/
/* MichelMIC routine define */
struct michel_mic_t {
uint32_t K0; // Key
uint32_t K1; // Key
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];
};
extern
void MichaelMICFunction( struct michel_mic_t *Mic, uint8_t *Key,
uint8_t *Data, int Len, uint8_t priority,
uint8_t *Result );