tkip.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2004, Instant802 Networks, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
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 /* TKIP_H */


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