亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ieee80211_crypto.h

?? Linux下wifi實現
?? H
字號:
/*- * Copyright (c) 2001 Atsushi Onoe * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products *    derived from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $Id: ieee80211_crypto.h 1441 2006-02-06 16:03:21Z mrenzmann $ */#ifndef _NET80211_IEEE80211_CRYPTO_H_#define _NET80211_IEEE80211_CRYPTO_H_/* * 802.11 protocol crypto-related definitions. */#define	IEEE80211_KEYBUF_SIZE	16#define	IEEE80211_MICBUF_SIZE	(8 + 8)		/* space for both tx+rx keys */#define IEEE80211_TID_SIZE	17		/* total number of TIDs *//* * Old WEP-style key.  Deprecated. */struct ieee80211_wepkey {	u_int wk_len;				/* key length in bytes */	u_int8_t wk_key[IEEE80211_KEYBUF_SIZE];};struct ieee80211_cipher;/* * Crypto key state.  There is sufficient room for all supported * ciphers (see below).  The underlying ciphers are handled * separately through loadable cipher modules that register with * the generic crypto support.  A key has a reference to an instance * of the cipher; any per-key state is hung off wk_private by the * cipher when it is attached.  Ciphers are automatically called * to detach and cleanup any such state when the key is deleted. * * The generic crypto support handles encap/decap of cipher-related * frame contents for both hardware- and software-based implementations. * A key requiring software crypto support is automatically flagged and * the cipher is expected to honor this and do the necessary work. * Ciphers such as TKIP may also support mixed hardware/software * encrypt/decrypt and MIC processing. *//* XXX need key index typedef *//* XXX pack better? *//* XXX 48-bit rsc/tsc */struct ieee80211_key {	u_int8_t wk_keylen;		/* key length in bytes */	u_int8_t wk_flags;#define	IEEE80211_KEY_XMIT	0x01	/* key used for xmit */#define	IEEE80211_KEY_RECV	0x02	/* key used for recv */#define	IEEE80211_KEY_GROUP	0x04	/* key used for WPA group operation */#define	IEEE80211_KEY_SWCRYPT	0x10	/* host-based encrypt/decrypt */#define	IEEE80211_KEY_SWMIC	0x20	/* host-based enmic/demic */	u_int16_t wk_keyix;		/* key index */	u_int8_t wk_key[IEEE80211_KEYBUF_SIZE+IEEE80211_MICBUF_SIZE];#define	wk_txmic	wk_key+IEEE80211_KEYBUF_SIZE+0	/* XXX can't () right */#define	wk_rxmic	wk_key+IEEE80211_KEYBUF_SIZE+8	/* XXX can't () right */	u_int64_t wk_keyrsc[IEEE80211_TID_SIZE];	/* key receive sequence counter */	u_int64_t wk_keytsc;		/* key transmit sequence counter */	const struct ieee80211_cipher *wk_cipher;	void *wk_private;		/* private cipher state */};#define	IEEE80211_KEY_COMMON 		/* common flags passed in by apps */\	(IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV | IEEE80211_KEY_GROUP)/* * NB: these values are ordered carefully; there are lots of * of implications in any reordering.  In particular beware * that 4 is not used to avoid conflicting with IEEE80211_F_PRIVACY. */#define	IEEE80211_CIPHER_WEP		0#define	IEEE80211_CIPHER_TKIP		1#define	IEEE80211_CIPHER_AES_OCB	2#define	IEEE80211_CIPHER_AES_CCM	3#define	IEEE80211_CIPHER_CKIP		5#define	IEEE80211_CIPHER_NONE		6	/* pseudo value */#define	IEEE80211_CIPHER_MAX		(IEEE80211_CIPHER_NONE+1)#define	IEEE80211_KEYIX_NONE	((u_int16_t) - 1)#if defined(__KERNEL__) || defined(_KERNEL)struct ieee80211com;struct ieee80211vap;struct ieee80211_node;struct sk_buff;void ieee80211_crypto_attach(struct ieee80211com *);void ieee80211_crypto_detach(struct ieee80211com *);void ieee80211_crypto_vattach(struct ieee80211vap *);void ieee80211_crypto_vdetach(struct ieee80211vap *);int ieee80211_crypto_newkey(struct ieee80211vap *, int, int,	struct ieee80211_key *);int ieee80211_crypto_delkey(struct ieee80211vap *, struct ieee80211_key *,	struct ieee80211_node *);int ieee80211_crypto_setkey(struct ieee80211vap *, struct ieee80211_key *,	const u_int8_t macaddr[IEEE80211_ADDR_LEN], struct ieee80211_node *);void ieee80211_crypto_delglobalkeys(struct ieee80211vap *);/* * Template for a supported cipher.  Ciphers register with the * crypto code and are typically loaded as separate modules * (the null cipher is always present). * XXX may need refcnts */struct ieee80211_cipher {	const char *ic_name;		/* printable name */	u_int ic_cipher;			/* IEEE80211_CIPHER_* */	u_int ic_header;			/* size of privacy header (bytes) */	u_int ic_trailer;		/* size of privacy trailer (bytes) */	u_int ic_miclen;			/* size of mic trailer (bytes) */	void *(*ic_attach)(struct ieee80211vap *, struct ieee80211_key *);	void (*ic_detach)(struct ieee80211_key *);	int (*ic_setkey)(struct ieee80211_key *);	int (*ic_encap)(struct ieee80211_key *, struct sk_buff *, u_int8_t);	int (*ic_decap)(struct ieee80211_key *, struct sk_buff *, int);	int (*ic_enmic)(struct ieee80211_key *, struct sk_buff *, int);	int (*ic_demic)(struct ieee80211_key *, struct sk_buff *, int);};extern const struct ieee80211_cipher ieee80211_cipher_none;void ieee80211_crypto_register(const struct ieee80211_cipher *);void ieee80211_crypto_unregister(const struct ieee80211_cipher *);int ieee80211_crypto_available(u_int);struct ieee80211_key *ieee80211_crypto_encap(struct ieee80211_node *,	struct sk_buff *);struct ieee80211_key *ieee80211_crypto_decap(struct ieee80211_node *,	struct sk_buff *, int);/* * Check and remove any MIC. */static __inline intieee80211_crypto_demic(struct ieee80211vap *vap, struct ieee80211_key *k,	struct sk_buff *skb, int hdrlen){	const struct ieee80211_cipher *cip = k->wk_cipher;	return (cip->ic_miclen > 0 ? cip->ic_demic(k, skb, hdrlen) : 1);}/* * Add any MIC. */static __inline intieee80211_crypto_enmic(struct ieee80211vap *vap, struct ieee80211_key *k,	struct sk_buff *skb, int force){	const struct ieee80211_cipher *cip = k->wk_cipher;	return (cip->ic_miclen > 0 ? cip->ic_enmic(k, skb, force) : 1);}/*  * Reset key state to an unused state.  The crypto * key allocation mechanism ensures other state (e.g. * key data) is properly setup before a key is used. */static __inline voidieee80211_crypto_resetkey(struct ieee80211vap *vap, struct ieee80211_key *k,	u_int16_t ix){	k->wk_cipher = &ieee80211_cipher_none;;	k->wk_private = k->wk_cipher->ic_attach(vap, k);	k->wk_keyix = ix;	k->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV;}/* * Crypto-related notification methods. */void ieee80211_notify_replay_failure(struct ieee80211vap *,	const struct ieee80211_frame *, const struct ieee80211_key *,	u_int64_t rsc);void ieee80211_notify_michael_failure(struct ieee80211vap *,	const struct ieee80211_frame *, u_int keyix);#endif /* defined(__KERNEL__) || defined(_KERNEL) */#endif /* _NET80211_IEEE80211_CRYPTO_H_ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美a一区二区| 亚洲午夜精品网| 国产精品亚洲а∨天堂免在线| 欧美一二三四在线| 精品一区二区三区欧美| 精品88久久久久88久久久| 精品亚洲成a人在线观看| 久久久久久免费毛片精品| 国产成人h网站| 亚洲另类春色国产| 欧美午夜不卡在线观看免费| 美女一区二区三区在线观看| 精品福利在线导航| 成人动漫一区二区在线| 亚洲精品五月天| 欧美一区欧美二区| 国产精品综合网| 亚洲色图在线视频| 91精品欧美久久久久久动漫| 精品一区二区三区视频在线观看 | 国产精品天天看| 色婷婷综合激情| 国模大尺度一区二区三区| 亚洲视频 欧洲视频| 欧美精品久久99| 国产超碰在线一区| 亚洲地区一二三色| 欧美激情一区二区三区蜜桃视频| 91网站最新地址| 老汉av免费一区二区三区| 国产精品天美传媒| 日韩欧美亚洲国产精品字幕久久久| 在线观看亚洲a| 美女看a上一区| 一区二区三区日韩在线观看| 日韩免费福利电影在线观看| 99re这里都是精品| 国内外精品视频| 亚洲成人777| 亚洲欧美自拍偷拍| 精品美女被调教视频大全网站| 在线看国产一区二区| 国产老女人精品毛片久久| 亚洲国产婷婷综合在线精品| 国产视频亚洲色图| 日韩一级黄色片| 在线观看亚洲专区| 成人动漫av在线| 国精产品一区一区三区mba桃花 | 国产午夜精品一区二区三区嫩草| 在线观看视频一区| 成人性生交大片免费看在线播放| 日韩成人免费看| 亚洲综合色区另类av| 中文字幕一区在线观看| 欧美成人r级一区二区三区| 欧美色倩网站大全免费| 91蜜桃传媒精品久久久一区二区| 国产精品一区二区无线| 九色综合狠狠综合久久| 日韩激情中文字幕| 香港成人在线视频| 亚洲免费观看高清完整版在线 | 欧美午夜在线一二页| 不卡一区二区中文字幕| 福利一区二区在线| 国产裸体歌舞团一区二区| 蜜桃av噜噜一区二区三区小说| 午夜欧美在线一二页| 一区二区欧美在线观看| 麻豆精品在线视频| 日韩av网站在线观看| 亚洲6080在线| 水野朝阳av一区二区三区| 亚洲精品第一国产综合野| 亚洲精品免费电影| 亚洲精品免费播放| 一区二区久久久| 亚洲狠狠丁香婷婷综合久久久| 亚洲欧美aⅴ...| 日韩美女视频一区二区| 亚洲欧美偷拍卡通变态| 亚洲精品日日夜夜| 亚洲在线免费播放| 日本美女视频一区二区| 久久不见久久见免费视频1| 久久er精品视频| 国产精品亚洲一区二区三区妖精 | 亚洲靠逼com| 亚洲福利视频一区二区| 亚洲成人在线免费| 蜜臀国产一区二区三区在线播放 | av男人天堂一区| 日本电影欧美片| 欧美人成免费网站| 欧美电视剧在线观看完整版| 久久精品视频免费| 亚洲四区在线观看| 婷婷夜色潮精品综合在线| 精品一区二区三区免费视频| 成人一区在线观看| 91传媒视频在线播放| 91麻豆精品国产自产在线| 久久久久久久综合狠狠综合| 亚洲欧洲精品一区二区三区不卡| 极品少妇xxxx精品少妇| 不卡的av网站| 精品视频123区在线观看| 欧美成人aa大片| 亚洲欧美一区二区久久| 免费成人深夜小野草| 国产成人精品三级| 欧美三级电影一区| 国产丝袜在线精品| 亚洲成人一二三| 国产99久久久国产精品潘金| 欧美亚洲高清一区二区三区不卡| 欧美tk丨vk视频| 亚洲免费观看在线观看| 激情六月婷婷综合| 欧美在线你懂得| 欧美激情一区在线| 日韩精品免费专区| 91玉足脚交白嫩脚丫在线播放| 4438亚洲最大| 一区二区三区在线观看动漫| 久久精品久久精品| 欧美系列在线观看| 国产精品视频一二三| 日本强好片久久久久久aaa| 99精品桃花视频在线观看| 欧美大片日本大片免费观看| 亚洲精品视频自拍| 国产99一区视频免费| 日韩三级在线免费观看| 亚洲天堂成人网| 丁香婷婷综合色啪| 日韩一区二区三区电影| 亚洲最大成人网4388xx| 成人黄页在线观看| 精品国产sm最大网站免费看| 香蕉影视欧美成人| 色综合视频在线观看| 国产精品美女久久福利网站 | 亚洲一区二区在线观看视频| 国产麻豆欧美日韩一区| 欧美丰满嫩嫩电影| 一区二区三区免费看视频| 国产不卡一区视频| 精品国产乱码久久久久久浪潮| 亚洲欧美日本在线| 国产成人鲁色资源国产91色综| 精品捆绑美女sm三区| 日韩激情在线观看| 欧美卡1卡2卡| 亚洲成av人片在线| 久久久电影一区二区三区| 石原莉奈一区二区三区在线观看| 色综合久久中文字幕| 18成人在线观看| av电影一区二区| 中文字幕亚洲综合久久菠萝蜜| 风间由美性色一区二区三区| 国产欧美日韩视频一区二区| 国产在线观看免费一区| 精品国产精品网麻豆系列| 麻豆成人综合网| 3751色影院一区二区三区| 日韩av在线免费观看不卡| 欧美日韩在线不卡| 日韩有码一区二区三区| 91精品欧美久久久久久动漫| 奇米在线7777在线精品| 精品久久久久久久久久久久包黑料| 免费观看成人鲁鲁鲁鲁鲁视频| 日韩午夜三级在线| 久久9热精品视频| 国产午夜精品福利| av一区二区三区| 亚洲影视资源网| 日韩一区二区免费在线电影| 久久99国内精品| 欧美国产视频在线| 99国产欧美另类久久久精品| 一区二区三区视频在线看| 欧美精品久久99| 国产美女在线观看一区| 国产精品每日更新| 欧美体内she精视频| 日本伊人精品一区二区三区观看方式| 日韩久久免费av| 成人丝袜18视频在线观看| 亚洲精品中文在线| 在线不卡免费av| 国产乱码精品一区二区三区av| 亚洲欧洲av在线| 欧美一区二区视频在线观看2020| 国产一区二区三区免费观看| 日韩毛片视频在线看| 91精品国产综合久久精品图片|