1 #ifndef __WINBOND_DS_TKIP_H
2 #define __WINBOND_DS_TKIP_H
4 #include <linux/types.h>
6 // Rotation functions on 32 bit values
7 #define ROL32( A, n ) \
8 ( ((A) << (n)) | ( ((A)>>(32-(n))) & ( (1UL << (n)) - 1 ) ) )
10 #define ROR32( A, n ) ROL32( (A), 32-(n) )
18 struct // Current state
27 u32 M; // Message accumulator (single word)
30 s32 bytes_in_M; // # bytes in M
33 //void _append_data( u8 *pData, u16 size, tkip_t *p );
34 void Mds_MicGet( void* adapter, void* pRxLayer1, u8 *pKey, u8 *pMic );
35 void Mds_MicFill( void* adapter, void* pDes, u8 *XmitBufAddress );