Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef TKIP_H
00010 #define TKIP_H
00011
00012 #include <linux/types.h>
00013 #include <linux/crypto.h>
00014 #include "key.h"
00015
00016 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key);
00017
00018 int ieee80211_tkip_encrypt_data(struct crypto_cipher *tfm,
00019 struct ieee80211_key *key,
00020 struct sk_buff *skb,
00021 u8 *payload, size_t payload_len);
00022
00023 enum {
00024 TKIP_DECRYPT_OK = 0,
00025 TKIP_DECRYPT_NO_EXT_IV = -1,
00026 TKIP_DECRYPT_INVALID_KEYIDX = -2,
00027 TKIP_DECRYPT_REPLAY = -3,
00028 };
00029 int ieee80211_tkip_decrypt_data(struct crypto_cipher *tfm,
00030 struct ieee80211_key *key,
00031 u8 *payload, size_t payload_len, u8 *ta,
00032 u8 *ra, int only_iv, int queue,
00033 u32 *out_iv32, u16 *out_iv16);
00034
00035 #endif