ieee80211_crypto.h (148863) | ieee80211_crypto.h (167432) |
---|---|
1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 15 unchanged lines hidden (view full) --- 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/net80211/ieee80211_crypto.h 148863 2005-08-08 18:46:36Z sam $ | 32 * $FreeBSD: head/sys/net80211/ieee80211_crypto.h 167432 2007-03-11 06:36:10Z sam $ |
33 */ 34#ifndef _NET80211_IEEE80211_CRYPTO_H_ 35#define _NET80211_IEEE80211_CRYPTO_H_ 36 37/* 38 * 802.11 protocol crypto-related definitions. 39 */ 40#define IEEE80211_KEYBUF_SIZE 16 --- 123 unchanged lines hidden (view full) --- 164 int (*ic_encap)(struct ieee80211_key *, struct mbuf *, 165 u_int8_t keyid); 166 int (*ic_decap)(struct ieee80211_key *, struct mbuf *, int); 167 int (*ic_enmic)(struct ieee80211_key *, struct mbuf *, int); 168 int (*ic_demic)(struct ieee80211_key *, struct mbuf *, int); 169}; 170extern const struct ieee80211_cipher ieee80211_cipher_none; 171 | 33 */ 34#ifndef _NET80211_IEEE80211_CRYPTO_H_ 35#define _NET80211_IEEE80211_CRYPTO_H_ 36 37/* 38 * 802.11 protocol crypto-related definitions. 39 */ 40#define IEEE80211_KEYBUF_SIZE 16 --- 123 unchanged lines hidden (view full) --- 164 int (*ic_encap)(struct ieee80211_key *, struct mbuf *, 165 u_int8_t keyid); 166 int (*ic_decap)(struct ieee80211_key *, struct mbuf *, int); 167 int (*ic_enmic)(struct ieee80211_key *, struct mbuf *, int); 168 int (*ic_demic)(struct ieee80211_key *, struct mbuf *, int); 169}; 170extern const struct ieee80211_cipher ieee80211_cipher_none; 171 |
172#define IEEE80211_KEY_UNDEFINED(k) \ 173 ((k)->wk_cipher == &ieee80211_cipher_none) 174 |
|
172void ieee80211_crypto_register(const struct ieee80211_cipher *); 173void ieee80211_crypto_unregister(const struct ieee80211_cipher *); 174int ieee80211_crypto_available(u_int cipher); 175 176struct ieee80211_key *ieee80211_crypto_encap(struct ieee80211com *, 177 struct ieee80211_node *, struct mbuf *); 178struct ieee80211_key *ieee80211_crypto_decap(struct ieee80211com *, 179 struct ieee80211_node *, struct mbuf *, int); --- 48 unchanged lines hidden --- | 175void ieee80211_crypto_register(const struct ieee80211_cipher *); 176void ieee80211_crypto_unregister(const struct ieee80211_cipher *); 177int ieee80211_crypto_available(u_int cipher); 178 179struct ieee80211_key *ieee80211_crypto_encap(struct ieee80211com *, 180 struct ieee80211_node *, struct mbuf *); 181struct ieee80211_key *ieee80211_crypto_decap(struct ieee80211com *, 182 struct ieee80211_node *, struct mbuf *, int); --- 48 unchanged lines hidden --- |