Defines | Functions | Variables
tkip.c File Reference
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/types.h>
#include <linux/netdevice.h>
#include <linux/export.h>
#include <asm/unaligned.h>
#include <net/mac80211.h>
#include "driver-ops.h"
#include "key.h"
#include "tkip.h"
#include "wep.h"
Include dependency graph for kernel-3.5/tkip.c:

Go to the source code of this file.

Defines

#define PHASE1_LOOP_COUNT   8

Functions

 EXPORT_SYMBOL (ieee80211_get_tkip_p1k_iv)
 EXPORT_SYMBOL (ieee80211_get_tkip_rx_p1k)
 EXPORT_SYMBOL (ieee80211_get_tkip_p2k)
static void ieee80211_compute_tkip_p1k (struct ieee80211_key *key, u32 iv32)
void ieee80211_get_tkip_p1k_iv (struct ieee80211_key_conf *keyconf, u32 iv32, u16 *p1k)
void ieee80211_get_tkip_p2k (struct ieee80211_key_conf *keyconf, struct sk_buff *skb, u8 *p2k)
void ieee80211_get_tkip_rx_p1k (struct ieee80211_key_conf *keyconf, const u8 *ta, u32 iv32, u16 *p1k)
u8ieee80211_tkip_add_iv (u8 *pos, struct ieee80211_key *key)
int ieee80211_tkip_decrypt_data (struct crypto_cipher *tfm, struct ieee80211_key *key, u8 *payload, size_t payload_len, u8 *ta, u8 *ra, int only_iv, int queue, u32 *out_iv32, u16 *out_iv16)
int ieee80211_tkip_encrypt_data (struct crypto_cipher *tfm, struct ieee80211_key *key, struct sk_buff *skb, u8 *payload, size_t payload_len)
static void tkip_mixing_phase1 (const u8 *tk, struct tkip_ctx *ctx, const u8 *ta, u32 tsc_IV32)
static void tkip_mixing_phase2 (const u8 *tk, struct tkip_ctx *ctx, u16 tsc_IV16, u8 *rc4key)
static u16 tkipS (u16 val)
static u8write_tkip_iv (u8 *pos, u16 iv16)

Variables

static const u16 tkip_sbox [256]

Define Documentation

#define PHASE1_LOOP_COUNT   8

Definition at line 22 of file kernel-3.5/tkip.c.


Function Documentation

static void ieee80211_compute_tkip_p1k ( struct ieee80211_key key,
u32  iv32 
) [static]

Definition at line 155 of file kernel-3.5/tkip.c.

void ieee80211_get_tkip_p1k_iv ( struct ieee80211_key_conf *  keyconf,
u32  iv32,
u16 p1k 
)

Definition at line 174 of file kernel-3.5/tkip.c.

void ieee80211_get_tkip_p2k ( struct ieee80211_key_conf *  keyconf,
struct sk_buff skb,
u8 p2k 
)

Definition at line 200 of file kernel-3.5/tkip.c.

void ieee80211_get_tkip_rx_p1k ( struct ieee80211_key_conf *  keyconf,
const u8 ta,
u32  iv32,
u16 p1k 
)

Definition at line 189 of file kernel-3.5/tkip.c.

u8* ieee80211_tkip_add_iv ( u8 pos,
struct ieee80211_key key 
)

Definition at line 145 of file kernel-3.5/tkip.c.

int ieee80211_tkip_decrypt_data ( struct crypto_cipher *  tfm,
struct ieee80211_key key,
u8 payload,
size_t  payload_len,
u8 ta,
u8 ra,
int  only_iv,
int  queue,
u32 out_iv32,
u16 out_iv16 
)

Definition at line 244 of file kernel-3.5/tkip.c.

int ieee80211_tkip_encrypt_data ( struct crypto_cipher *  tfm,
struct ieee80211_key key,
struct sk_buff skb,
u8 payload,
size_t  payload_len 
)

Definition at line 227 of file kernel-3.5/tkip.c.

static void tkip_mixing_phase1 ( const u8 tk,
struct tkip_ctx ctx,
const u8 ta,
u32  tsc_IV32 
) [static]

Definition at line 84 of file kernel-3.5/tkip.c.

static void tkip_mixing_phase2 ( const u8 tk,
struct tkip_ctx ctx,
u16  tsc_IV16,
u8 rc4key 
) [static]

Definition at line 108 of file kernel-3.5/tkip.c.

static u16 tkipS ( u16  val) [static]

Definition at line 64 of file kernel-3.5/tkip.c.

static u8* write_tkip_iv ( u8 pos,
u16  iv16 
) [static]

Definition at line 69 of file kernel-3.5/tkip.c.


Variable Documentation

const u16 tkip_sbox[256] [static]

Definition at line 28 of file kernel-3.5/tkip.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:58