Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
tkip.h File Reference
#include <linux/types.h>
#include <linux/crypto.h>
#include "key.h"

Go to the source code of this file.

Enumerations

enum  { TKIP_DECRYPT_OK = 0, TKIP_DECRYPT_NO_EXT_IV = -1, TKIP_DECRYPT_INVALID_KEYIDX = -2, TKIP_DECRYPT_REPLAY = -3 }
 

Functions

u8ieee80211_tkip_add_iv (u8 *pos, struct ieee80211_key *key)
 
int ieee80211_tkip_encrypt_data (struct crypto_cipher *tfm, struct ieee80211_key *key, struct sk_buff *skb, u8 *payload, size_t payload_len)
 
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)
 

Enumeration Type Documentation

anonymous enum
Enumerator:
TKIP_DECRYPT_OK 
TKIP_DECRYPT_NO_EXT_IV 
TKIP_DECRYPT_INVALID_KEYIDX 
TKIP_DECRYPT_REPLAY 

Definition at line 23 of file tkip.h.

Function Documentation

u8* ieee80211_tkip_add_iv ( u8 pos,
struct ieee80211_key key 
)

Definition at line 145 of file 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 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 tkip.c.