Lines Matching +full:separately +full:- +full:defined

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
32 * 802.11 protocol crypto-related definitions.
38 * Old WEP-style key. Deprecated.
59 * separately through loadable cipher modules that register with
61 * of the cipher; any per-key state is hung off wk_private by the
65 * The generic crypto support handles encap/decap of cipher-related
66 * frame contents for both hardware- and software-based implementations.
83 #define IEEE80211_KEY_SWENCRYPT 0x00000010 /* host-based encrypt */
84 #define IEEE80211_KEY_SWDECRYPT 0x00000020 /* host-based decrypt */
85 #define IEEE80211_KEY_SWENMIC 0x00000040 /* host-based enmic */
86 #define IEEE80211_KEY_SWDEMIC 0x00000080 /* host-based demic */
88 #define IEEE80211_KEY_CIPHER0 0x00001000 /* cipher-specific action 0 */
89 #define IEEE80211_KEY_CIPHER1 0x00002000 /* cipher-specific action 1 */
124 #define IEEE80211_KEYIX_NONE ((ieee80211_keyix) -1)
172 #if defined(__KERNEL__) || defined(_KERNEL)
230 ((k)->wk_cipher == &ieee80211_cipher_none)
249 * @brief Add any pre-fragmentation MIC to an MSDU.
256 * MPDU to be separately encrypted with their own MIC/ICV.
258 * Please see 802.11-2020 12.5.2.1.2 (TKIP cryptographic encapsulation)
271 const struct ieee80211_cipher *cip = k->wk_cipher; in ieee80211_crypto_enmic()
272 return (cip->ic_miclen > 0 ? cip->ic_enmic(k, m, force) : 1); in ieee80211_crypto_enmic()
284 k->wk_cipher = &ieee80211_cipher_none; in ieee80211_crypto_resetkey()
285 k->wk_private = k->wk_cipher->ic_attach(vap, k); in ieee80211_crypto_resetkey()
286 k->wk_keyix = k->wk_rxkeyix = ix; in ieee80211_crypto_resetkey()
287 k->wk_flags = IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV; in ieee80211_crypto_resetkey()
291 * Crypt-related notification methods.
303 #endif /* defined(__KERNEL__) || defined(_KERNEL) */