Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
key.h File Reference
#include "ttype.h"
#include "tether.h"
#include "80211mgr.h"

Go to the source code of this file.

Data Structures

struct  tagSKeyItem
 
struct  tagSKeyTable
 
struct  tagSKeyManagement
 

Macros

#define MAX_GROUP_KEY   4
 
#define MAX_KEY_TABLE   11
 
#define MAX_KEY_LEN   32
 
#define AES_KEY_LEN   16
 
#define AUTHENTICATOR_KEY   0x10000000
 
#define USE_KEYRSC   0x20000000
 
#define PAIRWISE_KEY   0x40000000
 
#define TRANSMIT_KEY   0x80000000
 
#define GROUP_KEY   0x00000000
 
#define KEY_CTL_WEP   0x00
 
#define KEY_CTL_NONE   0x01
 
#define KEY_CTL_TKIP   0x02
 
#define KEY_CTL_CCMP   0x03
 
#define KEY_CTL_INVALID   0xFF
 

Typedefs

typedef struct tagSKeyItem SKeyItem
 
typedef struct tagSKeyItemPSKeyItem
 
typedef struct tagSKeyTable SKeyTable
 
typedef struct tagSKeyTablePSKeyTable
 
typedef struct tagSKeyManagement SKeyManagement
 
typedef struct tagSKeyManagementPSKeyManagement
 

Functions

void KeyvInitTable (PSKeyManagement pTable, unsigned long dwIoBase)
 
bool KeybGetKey (PSKeyManagement pTable, unsigned char *pbyBSSID, unsigned long dwKeyIndex, PSKeyItem *pKey)
 
bool KeybSetKey (PSKeyManagement pTable, unsigned char *pbyBSSID, unsigned long dwKeyIndex, unsigned long uKeyLength, PQWORD pKeyRSC, unsigned char *pbyKey, unsigned char byKeyDecMode, unsigned long dwIoBase, unsigned char byLocalID)
 
bool KeybSetDefaultKey (PSKeyManagement pTable, unsigned long dwKeyIndex, unsigned long uKeyLength, PQWORD pKeyRSC, unsigned char *pbyKey, unsigned char byKeyDecMode, unsigned long dwIoBase, unsigned char byLocalID)
 
bool KeybRemoveKey (PSKeyManagement pTable, unsigned char *pbyBSSID, unsigned long dwKeyIndex, unsigned long dwIoBase)
 
bool KeybGetTransmitKey (PSKeyManagement pTable, unsigned char *pbyBSSID, unsigned long dwKeyType, PSKeyItem *pKey)
 
bool KeybCheckPairewiseKey (PSKeyManagement pTable, PSKeyItem *pKey)
 
bool KeybRemoveAllKey (PSKeyManagement pTable, unsigned char *pbyBSSID, unsigned long dwIoBase)
 
void KeyvRemoveWEPKey (PSKeyManagement pTable, unsigned long dwKeyIndex, unsigned long dwIoBase)
 
void KeyvRemoveAllWEPKey (PSKeyManagement pTable, unsigned long dwIoBase)
 
bool KeybSetAllGroupKey (PSKeyManagement pTable, unsigned long dwKeyIndex, unsigned long uKeyLength, PQWORD pKeyRSC, unsigned char *pbyKey, unsigned char byKeyDecMode, unsigned long dwIoBase, unsigned char byLocalID)
 

Macro Definition Documentation

#define AES_KEY_LEN   16

Definition at line 41 of file key.h.

#define AUTHENTICATOR_KEY   0x10000000

Definition at line 44 of file key.h.

#define GROUP_KEY   0x00000000

Definition at line 49 of file key.h.

#define KEY_CTL_CCMP   0x03

Definition at line 54 of file key.h.

#define KEY_CTL_INVALID   0xFF

Definition at line 55 of file key.h.

#define KEY_CTL_NONE   0x01

Definition at line 52 of file key.h.

#define KEY_CTL_TKIP   0x02

Definition at line 53 of file key.h.

#define KEY_CTL_WEP   0x00

Definition at line 51 of file key.h.

#define MAX_GROUP_KEY   4

Definition at line 38 of file key.h.

#define MAX_KEY_LEN   32

Definition at line 40 of file key.h.

#define MAX_KEY_TABLE   11

Definition at line 39 of file key.h.

#define PAIRWISE_KEY   0x40000000

Definition at line 46 of file key.h.

#define TRANSMIT_KEY   0x80000000

Definition at line 47 of file key.h.

#define USE_KEYRSC   0x20000000

Definition at line 45 of file key.h.

Typedef Documentation

Function Documentation

bool KeybCheckPairewiseKey ( PSKeyManagement  pTable,
PSKeyItem pKey 
)

Definition at line 600 of file key.c.

bool KeybGetKey ( PSKeyManagement  pTable,
unsigned char pbyBSSID,
unsigned long  dwKeyIndex,
PSKeyItem pKey 
)

Definition at line 134 of file key.c.

bool KeybGetTransmitKey ( PSKeyManagement  pTable,
unsigned char pbyBSSID,
unsigned long  dwKeyType,
PSKeyItem pKey 
)

Definition at line 520 of file key.c.

bool KeybRemoveAllKey ( PSKeyManagement  pTable,
unsigned char pbyBSSID,
unsigned long  dwIoBase 
)

Definition at line 438 of file key.c.

bool KeybRemoveKey ( PSKeyManagement  pTable,
unsigned char pbyBSSID,
unsigned long  dwKeyIndex,
unsigned long  dwIoBase 
)

Definition at line 365 of file key.c.

bool KeybSetAllGroupKey ( PSKeyManagement  pTable,
unsigned long  dwKeyIndex,
unsigned long  uKeyLength,
PQWORD  pKeyRSC,
unsigned char pbyKey,
unsigned char  byKeyDecMode,
unsigned long  dwIoBase,
unsigned char  byLocalID 
)

Definition at line 744 of file key.c.

bool KeybSetDefaultKey ( PSKeyManagement  pTable,
unsigned long  dwKeyIndex,
unsigned long  uKeyLength,
PQWORD  pKeyRSC,
unsigned char pbyKey,
unsigned char  byKeyDecMode,
unsigned long  dwIoBase,
unsigned char  byLocalID 
)

Definition at line 634 of file key.c.

bool KeybSetKey ( PSKeyManagement  pTable,
unsigned char pbyBSSID,
unsigned long  dwKeyIndex,
unsigned long  uKeyLength,
PQWORD  pKeyRSC,
unsigned char pbyKey,
unsigned char  byKeyDecMode,
unsigned long  dwIoBase,
unsigned char  byLocalID 
)

Definition at line 192 of file key.c.

void KeyvInitTable ( PSKeyManagement  pTable,
unsigned long  dwIoBase 
)

Definition at line 99 of file key.c.

void KeyvRemoveAllWEPKey ( PSKeyManagement  pTable,
unsigned long  dwIoBase 
)

Definition at line 495 of file key.c.

void KeyvRemoveWEPKey ( PSKeyManagement  pTable,
unsigned long  dwKeyIndex,
unsigned long  dwIoBase 
)

Definition at line 473 of file key.c.