Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
wl_enc.h File Reference

Go to the source code of this file.

Data Structures

struct  _encstct
 

Macros

#define CRYPT_CODE   "57617665A5D6"
 
#define ENCRYPTION_LEN   102
 
#define ENCRYPTION_MAGIC   0x48576877L
 
#define DEF_CRYPT_STR   "G?TIUEA]d5MAdZV'eUb&&6.)'&:,'VF/(FR2)6^5*'*8*W6;+GB>,7NA-'ZD-X&G.H2J/8>M0(JP0XVS1HbV29.Y3):\\3YF_4IRb56"
 
#define DEFAULT_CRYPT_MAC   "W\x01\x6B\x66\xA5\x5A"
 
#define CH_START   '&'
 
#define MACADDRESS_STR_LEN   12
 
#define KEY_LEN   14
 
#define NUM_KEYS   4
 
#define KEY_LENGTH_NONE_ASCII   0
 
#define KEY_LENGTH_64_BIT_ASCII   5
 
#define KEY_LENGTH_128_BIT_ASCII   13
 
#define KEY_LENGTH_NONE_HEX   ( KEY_LENGTH_NONE_ASCII * sizeof( unsigned short ))
 
#define KEY_LENGTH_64_BIT_HEX   ( KEY_LENGTH_64_BIT_ASCII * sizeof( unsigned short ))
 
#define KEY_LENGTH_128_BIT_HEX   ( KEY_LENGTH_128_BIT_ASCII * sizeof( unsigned short ))
 

Typedefs

typedef struct _encstct ENCSTRCT
 
typedef struct _encstctPENCSTRCT
 

Functions

int wl_wep_code (char *szCrypt, char *szDest, void *Data, int nLen)
 
int wl_wep_decode (char *szCrypt, void *Dest, char *szData)
 

Macro Definition Documentation

#define CH_START   '&'

Definition at line 76 of file wl_enc.h.

#define CRYPT_CODE   "57617665A5D6"

Definition at line 70 of file wl_enc.h.

#define DEF_CRYPT_STR   "G?TIUEA]d5MAdZV'eUb&&6.)'&:,'VF/(FR2)6^5*'*8*W6;+GB>,7NA-'ZD-X&G.H2J/8>M0(JP0XVS1HbV29.Y3):\\3YF_4IRb56"

Definition at line 73 of file wl_enc.h.

#define DEFAULT_CRYPT_MAC   "W\x01\x6B\x66\xA5\x5A"

Definition at line 75 of file wl_enc.h.

#define ENCRYPTION_LEN   102

Definition at line 71 of file wl_enc.h.

#define ENCRYPTION_MAGIC   0x48576877L

Definition at line 72 of file wl_enc.h.

#define KEY_LEN   14

Definition at line 79 of file wl_enc.h.

#define KEY_LENGTH_128_BIT_ASCII   13

Definition at line 84 of file wl_enc.h.

#define KEY_LENGTH_128_BIT_HEX   ( KEY_LENGTH_128_BIT_ASCII * sizeof( unsigned short ))

Definition at line 88 of file wl_enc.h.

#define KEY_LENGTH_64_BIT_ASCII   5

Definition at line 83 of file wl_enc.h.

#define KEY_LENGTH_64_BIT_HEX   ( KEY_LENGTH_64_BIT_ASCII * sizeof( unsigned short ))

Definition at line 87 of file wl_enc.h.

#define KEY_LENGTH_NONE_ASCII   0

Definition at line 82 of file wl_enc.h.

#define KEY_LENGTH_NONE_HEX   ( KEY_LENGTH_NONE_ASCII * sizeof( unsigned short ))

Definition at line 86 of file wl_enc.h.

#define MACADDRESS_STR_LEN   12

Definition at line 77 of file wl_enc.h.

#define NUM_KEYS   4

Definition at line 80 of file wl_enc.h.

Typedef Documentation

Function Documentation

int wl_wep_code ( char szCrypt,
char szDest,
void Data,
int  nLen 
)

Definition at line 108 of file wl_enc.c.

int wl_wep_decode ( char szCrypt,
void Dest,
char szData 
)

Definition at line 185 of file wl_enc.c.