Classes | Defines | Enumerations | Functions
key.h File Reference
#include <linux/types.h>
#include <linux/list.h>
#include <linux/crypto.h>
#include <linux/rcupdate.h>
#include <net/mac80211.h>
Include dependency graph for kernel-3.2/key.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ieee80211_key
struct  tkip_ctx

Defines

#define ALG_CCMP_KEY_LEN   16
#define CCMP_HDR_LEN   8
#define CCMP_MIC_LEN   8
#define CCMP_PN_LEN   6
#define CCMP_TK_LEN   16
#define CMAC_PN_LEN   6
#define key_mtx_dereference(local, ref)   rcu_dereference_protected(ref, lockdep_is_held(&((local)->key_mtx)))
#define NUM_DEFAULT_KEYS   4
#define NUM_DEFAULT_MGMT_KEYS   2
#define NUM_RX_DATA_QUEUES   16
#define TKIP_ICV_LEN   4
#define TKIP_IV_LEN   8
#define WEP_ICV_LEN   4
#define WEP_IV_LEN   4

Enumerations

enum  ieee80211_internal_key_flags { KEY_FLAG_UPLOADED_TO_HARDWARE = BIT(0), KEY_FLAG_TAINTED = BIT(1), KEY_FLAG_UPLOADED_TO_HARDWARE = BIT(0), KEY_FLAG_TAINTED = BIT(1) }
enum  ieee80211_internal_tkip_state {
  TKIP_STATE_NOT_INIT, TKIP_STATE_PHASE1_DONE, TKIP_STATE_PHASE1_HW_UPLOADED, TKIP_STATE_NOT_INIT,
  TKIP_STATE_PHASE1_DONE, TKIP_STATE_PHASE1_HW_UPLOADED
}

Functions

void __ieee80211_key_free (struct ieee80211_key *key)
void ieee80211_disable_keys (struct ieee80211_sub_if_data *sdata)
void ieee80211_enable_keys (struct ieee80211_sub_if_data *sdata)
void ieee80211_free_keys (struct ieee80211_sub_if_data *sdata)
struct ieee80211_keyieee80211_key_alloc (u32 cipher, int idx, size_t key_len, const u8 *key_data, size_t seq_len, const u8 *seq)
void ieee80211_key_free (struct ieee80211_local *local, struct ieee80211_key *key)
int __must_check ieee80211_key_link (struct ieee80211_key *key, struct ieee80211_sub_if_data *sdata, struct sta_info *sta)
void ieee80211_set_default_key (struct ieee80211_sub_if_data *sdata, int idx, bool uni, bool multi)
void ieee80211_set_default_mgmt_key (struct ieee80211_sub_if_data *sdata, int idx)

Define Documentation

#define ALG_CCMP_KEY_LEN   16

Definition at line 24 of file kernel-3.2/key.h.

#define CCMP_HDR_LEN   8

Definition at line 25 of file kernel-3.2/key.h.

#define CCMP_MIC_LEN   8

Definition at line 26 of file kernel-3.2/key.h.

#define CCMP_PN_LEN   6

Definition at line 28 of file kernel-3.2/key.h.

#define CCMP_TK_LEN   16

Definition at line 27 of file kernel-3.2/key.h.

#define CMAC_PN_LEN   6

Definition at line 31 of file kernel-3.2/key.h.

#define key_mtx_dereference (   local,
  ref 
)    rcu_dereference_protected(ref, lockdep_is_held(&((local)->key_mtx)))

Definition at line 147 of file kernel-3.2/key.h.

#define NUM_DEFAULT_KEYS   4

Definition at line 19 of file kernel-3.2/key.h.

#define NUM_DEFAULT_MGMT_KEYS   2

Definition at line 20 of file kernel-3.2/key.h.

#define NUM_RX_DATA_QUEUES   16

Definition at line 33 of file kernel-3.2/key.h.

#define TKIP_ICV_LEN   4

Definition at line 30 of file kernel-3.2/key.h.

#define TKIP_IV_LEN   8

Definition at line 29 of file kernel-3.2/key.h.

#define WEP_ICV_LEN   4

Definition at line 23 of file kernel-3.2/key.h.

#define WEP_IV_LEN   4

Definition at line 22 of file kernel-3.2/key.h.


Enumeration Type Documentation

enum ieee80211_internal_key_flags - internal key flags

: Indicates that this key is present in the hardware for TX crypto hardware acceleration. : Key is tainted and packets should be dropped.

Enumerator:
KEY_FLAG_UPLOADED_TO_HARDWARE 
KEY_FLAG_TAINTED 
KEY_FLAG_UPLOADED_TO_HARDWARE 
KEY_FLAG_TAINTED 

Definition at line 46 of file kernel-3.2/key.h.

Enumerator:
TKIP_STATE_NOT_INIT 
TKIP_STATE_PHASE1_DONE 
TKIP_STATE_PHASE1_HW_UPLOADED 
TKIP_STATE_NOT_INIT 
TKIP_STATE_PHASE1_DONE 
TKIP_STATE_PHASE1_HW_UPLOADED 

Definition at line 51 of file kernel-3.2/key.h.


Function Documentation

void __ieee80211_key_free ( struct ieee80211_key key)

Definition at line 512 of file kernel-3.2/key.c.

Definition at line 589 of file kernel-3.2/key.c.

void ieee80211_enable_keys ( struct ieee80211_sub_if_data sdata)

Definition at line 535 of file kernel-3.2/key.c.

void ieee80211_free_keys ( struct ieee80211_sub_if_data sdata)

Definition at line 603 of file kernel-3.2/key.c.

struct ieee80211_key* ieee80211_key_alloc ( u32  cipher,
int  idx,
size_t  key_len,
const u8 key_data,
size_t  seq_len,
const u8 seq 
) [read]

Definition at line 333 of file kernel-3.2/key.c.

void ieee80211_key_free ( struct ieee80211_local local,
struct ieee80211_key key 
)

Definition at line 527 of file kernel-3.2/key.c.

int __must_check ieee80211_key_link ( struct ieee80211_key key,
struct ieee80211_sub_if_data sdata,
struct sta_info sta 
)

Definition at line 446 of file kernel-3.2/key.c.

void ieee80211_set_default_key ( struct ieee80211_sub_if_data sdata,
int  idx,
bool  uni,
bool  multi 
)

Definition at line 239 of file kernel-3.2/key.c.

void ieee80211_set_default_mgmt_key ( struct ieee80211_sub_if_data sdata,
int  idx 
)

Definition at line 263 of file kernel-3.2/key.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:12