0001
0002
0003
0004
0005
0006 #ifndef TKIP_H
0007 #define TKIP_H
0008
0009 #include <linux/types.h>
0010 #include <linux/crypto.h>
0011 #include "key.h"
0012
0013 int ieee80211_tkip_encrypt_data(struct arc4_ctx *ctx,
0014 struct ieee80211_key *key,
0015 struct sk_buff *skb,
0016 u8 *payload, size_t payload_len);
0017
0018 enum {
0019 TKIP_DECRYPT_OK = 0,
0020 TKIP_DECRYPT_NO_EXT_IV = -1,
0021 TKIP_DECRYPT_INVALID_KEYIDX = -2,
0022 TKIP_DECRYPT_REPLAY = -3,
0023 };
0024 int ieee80211_tkip_decrypt_data(struct arc4_ctx *ctx,
0025 struct ieee80211_key *key,
0026 u8 *payload, size_t payload_len, u8 *ta,
0027 u8 *ra, int only_iv, int queue,
0028 u32 *out_iv32, u16 *out_iv16);
0029
0030 #endif