Searched refs:key_id (Results 1 - 49 of 49) sorted by relevance

/linux-4.4.14/include/net/sctp/
H A Dauth.h64 __u16 key_id; member in struct:sctp_shared_key
83 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp);
88 __u16 key_id);
115 __u16 key_id);
118 __u16 key_id);
H A Dulpevent.h125 const struct sctp_association *asoc, __u16 key_id,
/linux-4.4.14/net/core/
H A Dflow_dissector.c23 enum flow_dissector_key_id key_id) dissector_uses_key()
25 return flow_dissector->used_keys & (1 << key_id); dissector_uses_key()
29 enum flow_dissector_key_id key_id) dissector_set_key()
31 flow_dissector->used_keys |= (1 << key_id); dissector_set_key()
35 enum flow_dissector_key_id key_id, skb_flow_dissector_target()
38 return ((char *) target_container) + flow_dissector->offset[key_id]; skb_flow_dissector_target()
55 key->key_id)); skb_flow_dissector_init()
57 dissector_set_key(flow_dissector, key->key_id); skb_flow_dissector_init()
58 flow_dissector->offset[key->key_id] = key->offset; skb_flow_dissector_init()
840 .key_id = FLOW_DISSECTOR_KEY_CONTROL,
844 .key_id = FLOW_DISSECTOR_KEY_BASIC,
848 .key_id = FLOW_DISSECTOR_KEY_IPV4_ADDRS,
852 .key_id = FLOW_DISSECTOR_KEY_IPV6_ADDRS,
856 .key_id = FLOW_DISSECTOR_KEY_TIPC_ADDRS,
860 .key_id = FLOW_DISSECTOR_KEY_PORTS,
864 .key_id = FLOW_DISSECTOR_KEY_VLANID,
868 .key_id = FLOW_DISSECTOR_KEY_FLOW_LABEL,
872 .key_id = FLOW_DISSECTOR_KEY_GRE_KEYID,
879 .key_id = FLOW_DISSECTOR_KEY_CONTROL,
883 .key_id = FLOW_DISSECTOR_KEY_BASIC,
22 dissector_uses_key(const struct flow_dissector *flow_dissector, enum flow_dissector_key_id key_id) dissector_uses_key() argument
28 dissector_set_key(struct flow_dissector *flow_dissector, enum flow_dissector_key_id key_id) dissector_set_key() argument
34 skb_flow_dissector_target(struct flow_dissector *flow_dissector, enum flow_dissector_key_id key_id, void *target_container) skb_flow_dissector_target() argument
/linux-4.4.14/net/sctp/
H A Dauth.c94 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) sctp_auth_shkey_create() argument
104 new->key_id = key_id; sctp_auth_shkey_create()
367 new = sctp_auth_shkey_create(sh_key->key_id, gfp); sctp_auth_asoc_copy_shkeys()
399 /* If the key_id is non-zero and we couldn't find an sctp_auth_asoc_init_active_key()
402 * For key_id 0, endpoint pair shared key is a NULL key. sctp_auth_asoc_init_active_key()
426 /* Find the endpoint pair shared key based on the key_id */ sctp_auth_get_shkey()
429 __u16 key_id) sctp_auth_get_shkey()
435 if (key->key_id == key_id) sctp_auth_get_shkey()
715 __u16 key_id, hmac_id; sctp_auth_calculate_hmac() local
724 key_id = ntohs(auth->auth_hdr.shkey_id); sctp_auth_calculate_hmac()
727 if (key_id == asoc->active_key_id) sctp_auth_calculate_hmac()
732 ep_key = sctp_auth_get_shkey(asoc, key_id); sctp_auth_calculate_hmac()
841 if (cur_key->key_id == auth_key->sca_keynumber) { key_for_each()
884 __u16 key_id) sctp_auth_set_active_key()
897 if (key->key_id == key_id) { key_for_each()
907 asoc->active_key_id = key_id;
910 ep->active_key_id = key_id;
917 __u16 key_id) sctp_auth_del_key_id()
927 if (asoc->active_key_id == key_id) sctp_auth_del_key_id()
932 if (ep->active_key_id == key_id) sctp_auth_del_key_id()
939 if (key->key_id == key_id) { key_for_each()
427 sctp_auth_get_shkey( const struct sctp_association *asoc, __u16 key_id) sctp_auth_get_shkey() argument
882 sctp_auth_set_active_key(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_set_active_key() argument
915 sctp_auth_del_key_id(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_del_key_id() argument
H A Dulpevent.c784 const struct sctp_association *asoc, __u16 key_id, sctp_ulpevent_make_authkey()
804 ak->auth_keynumber = key_id; sctp_ulpevent_make_authkey()
783 sctp_ulpevent_make_authkey( const struct sctp_association *asoc, __u16 key_id, __u32 indication, gfp_t gfp) sctp_ulpevent_make_authkey() argument
H A Dsm_statefuns.c3997 __u16 key_id; sctp_sf_authenticate() local
4015 key_id = ntohs(auth_hdr->shkey_id); sctp_sf_authenticate()
4016 if (key_id != asoc->active_key_id && !sctp_auth_get_shkey(asoc, key_id)) sctp_sf_authenticate()
/linux-4.4.14/net/mac802154/
H A Dllsec.c417 if (!llsec_key_id_equal(key, &devkey->key_id)) llsec_devkey_find()
439 if (llsec_devkey_find(dev, &key->key_id)) mac802154_llsec_devkey_add()
463 devkey = llsec_devkey_find(dev, &key->key_id); mac802154_llsec_devkey_del()
551 struct ieee802154_llsec_key_id *key_id) llsec_lookup_key()
581 if (id->id != hdr->sec.key_id) llsec_lookup_key()
597 if (key_id) llsec_lookup_key()
598 *key_id = key_entry->id; llsec_lookup_key()
916 next->devkey.key_id = *in_key; llsec_update_devkey_record()
974 struct ieee802154_llsec_key_id key_id; mac802154_llsec_decrypt() local
997 key = llsec_lookup_key(sec, &hdr, &hdr.source, &key_id); mac802154_llsec_decrypt()
1028 err = llsec_update_devkey_info(dev, &key_id, frame_ctr); mac802154_llsec_decrypt()
548 llsec_lookup_key(struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, const struct ieee802154_addr *addr, struct ieee802154_llsec_key_id *key_id) llsec_lookup_key() argument
H A Drx.c172 pr_debug("key %02x\n", hdr->sec.key_id); ieee802154_parse_frame_start()
179 hdr->sec.key_id); ieee802154_parse_frame_start()
185 hdr->sec.key_id); ieee802154_parse_frame_start()
H A Diface.c365 hdr->sec.key_id = params.out_key.id; mac802154_set_header_security()
/linux-4.4.14/net/wireless/
H A Dnl80211.h71 int key_id, const u8 *tsc, gfp_t gfp);
H A Dmlme.c172 enum nl80211_key_type key_type, int key_id, cfg80211_michael_mic_failure()
183 "keyid=%d %scast addr=%pM)", key_id, cfg80211_michael_mic_failure()
193 trace_cfg80211_michael_mic_failure(dev, addr, key_type, key_id, tsc); cfg80211_michael_mic_failure()
194 nl80211_michael_mic_failure(rdev, dev, addr, key_type, key_id, tsc, gfp); cfg80211_michael_mic_failure()
171 cfg80211_michael_mic_failure(struct net_device *dev, const u8 *addr, enum nl80211_key_type key_type, int key_id, const u8 *tsc, gfp_t gfp) cfg80211_michael_mic_failure() argument
H A Dtrace.h2224 enum nl80211_key_type key_type, int key_id, const u8 *tsc),
2225 TP_ARGS(netdev, addr, key_type, key_id, tsc),
2230 __field(int, key_id)
2237 __entry->key_id = key_id;
2243 __entry->key_id, __entry->tsc)
H A Dnl80211.c12057 enum nl80211_key_type key_type, int key_id, nl80211_michael_mic_failure()
12077 (key_id != -1 && nl80211_michael_mic_failure()
12078 nla_put_u8(msg, NL80211_ATTR_KEY_IDX, key_id)) || nl80211_michael_mic_failure()
12055 nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *addr, enum nl80211_key_type key_type, int key_id, const u8 *tsc, gfp_t gfp) nl80211_michael_mic_failure() argument
/linux-4.4.14/include/net/
H A Dflow_dissector.h136 enum flow_dissector_key_id key_id; member in struct:flow_dissector_key
H A Dieee802154_netdev.h45 u8 key_id; member in struct:ieee802154_sechdr
H A Dcfg802154.h306 struct ieee802154_llsec_key_id key_id; member in struct:ieee802154_llsec_device_key
H A Dcfg80211.h4291 * @key_id: Key identifier (0..3). Can be -1 if missing.
4300 enum nl80211_key_type key_type, int key_id,
/linux-4.4.14/net/ieee802154/
H A Dheader_ops.c80 buf[pos++] = hdr->key_id; ieee802154_hdr_push_sechdr()
194 hdr->key_id = buf[pos++]; ieee802154_hdr_get_sechdr()
H A Dnl-mac.c1117 ieee802154_llsec_parse_key_id(info, &key.key_id)) llsec_add_devkey()
1142 ieee802154_llsec_parse_key_id(info, &key.key_id)) llsec_del_devkey()
1173 ieee802154_llsec_fill_key_id(msg, &devkey->key_id)) ieee802154_nl_fill_devkey()
H A Dnl802154.c753 /* TODO key_id to key_idx ? Check naming */ ieee802154_llsec_send_key_id()
1790 if (ieee802154_llsec_send_key_id(msg, &devkey->key_id) < 0) nl802154_send_devkey()
1887 &key.key_id) < 0) nl802154_add_llsec_devkey()
1918 &key.key_id) < 0) nl802154_del_llsec_devkey()
/linux-4.4.14/net/mac80211/
H A Dwpa.c377 static inline void ccmp_pn2hdr(u8 *hdr, u8 *pn, int key_id) ccmp_pn2hdr() argument
382 hdr[3] = 0x20 | (key_id << 6); ccmp_pn2hdr()
608 static inline void gcmp_pn2hdr(u8 *hdr, const u8 *pn, int key_id) gcmp_pn2hdr() argument
613 hdr[3] = 0x20 | (key_id << 6); gcmp_pn2hdr()
950 mmie->key_id = cpu_to_le16(key->conf.keyidx); ieee80211_crypto_aes_cmac_encrypt()
994 mmie->key_id = cpu_to_le16(key->conf.keyidx); ieee80211_crypto_aes_cmac_256_encrypt()
1139 mmie->key_id = cpu_to_le16(key->conf.keyidx); ieee80211_crypto_aes_gmac_encrypt()
H A Drx.c711 return le16_to_cpu(mmie->key_id); ieee80211_get_mmie_keyidx()
718 return le16_to_cpu(mmie16->key_id); ieee80211_get_mmie_keyidx()
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
H A Dacx.c61 int wl1251_acx_default_key(struct wl1251 *wl, u8 key_id) wl1251_acx_default_key() argument
66 wl1251_debug(DEBUG_ACX, "acx dot11_default_key (%d)", key_id); wl1251_acx_default_key()
72 default_key->id = key_id; wl1251_acx_default_key()
81 wl->default_key = key_id; wl1251_acx_default_key()
H A Dacx.h1451 int wl1251_acx_default_key(struct wl1251 *wl, u8 key_id);
/linux-4.4.14/drivers/net/wireless/rsi/
H A Drsi_91x_mgmt.c689 * @key_id: Key index.
698 u8 key_id, rsi_hal_load_key()
726 key_id = 0; rsi_hal_load_key()
730 key_descriptor |= (key_type | BIT(13) | (key_id << 14)); rsi_hal_load_key()
740 memcpy(&set_key->key[key_id][1], rsi_hal_load_key()
694 rsi_hal_load_key(struct rsi_common *common, u8 *data, u16 key_len, u8 key_type, u8 key_id, u32 cipher) rsi_hal_load_key() argument
H A Drsi_mgmt.h294 u8 key_type, u8 key_id, u32 cipher);
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
H A Dfw-api-sta.h372 * @key_id:
380 __le32 key_id; member in struct:iwl_mvm_mgmt_mcast_key_cmd
H A Dsta.c1324 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx); iwl_mvm_send_sta_igtk()
/linux-4.4.14/drivers/crypto/caam/
H A Dpdb.h166 u8 key_id; member in struct:wifi_encap_pdb
/linux-4.4.14/drivers/net/wireless/orinoco/
H A Dmain.c977 int key_id = ((status & HERMES_RXSTAT_MIC_KEY_ID) >> orinoco_rx() local
990 key = (struct orinoco_tkip_key *) priv->keys[key_id].key; orinoco_rx()
995 dev->name, src, key_id); orinoco_rx()
1011 dev->name, src, key_id); orinoco_rx()
1017 wxmic.flags = key_id & IW_MICFAILURE_KEY_ID; orinoco_rx()
1023 (void) orinoco_hw_get_tkip_iv(priv, key_id, orinoco_rx()
/linux-4.4.14/drivers/net/wireless/p54/
H A Dlmac.h441 u8 key_id; member in struct:p54_keycache
H A Dfwio.c668 rxkey->key_id = idx; p54_upload_key()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
H A Dcmd.h504 u8 key_id; member in struct:wl1271_cmd_set_keys
H A Dcmd.c1344 cmd->key_id = id; wl12xx_cmd_set_default_wep_key()
1395 cmd->key_id = id; wl1271_cmd_set_sta_key()
1461 cmd->key_id = id; wl1271_cmd_set_ap_key()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
H A Dtxrx.h316 * bit 4.. 5 : key_id:2
/linux-4.4.14/drivers/net/wireless/
H A Drndis_wlan.c2904 int flags, buflen, key_id; rndis_wlan_auth_indication() local
2945 key_id = -1; rndis_wlan_auth_indication()
2949 key_type, key_id, NULL, rndis_wlan_auth_indication()
2955 key_id = -1; rndis_wlan_auth_indication()
2959 key_type, key_id, NULL, rndis_wlan_auth_indication()
H A Dmwl8k.c4208 __le32 key_id; member in struct:mwl8k_cmd_set_key
4277 cmd->key_id = cpu_to_le32(key->keyidx); mwl8k_encryption_set_cmd_info()
/linux-4.4.14/net/sched/
H A Dcls_flower.c341 keys[cnt].key_id = id; \
/linux-4.4.14/drivers/net/wireless/ipw2x00/
H A Dipw2200.h826 u8 key_id; member in struct:ipw_tgi_tx_key
945 u8 key_id; member in struct:ipw_rx_key
H A Dipw2200.c5925 key.key_id = index; ipw_send_tgi_tx_key()
/linux-4.4.14/net/bluetooth/
H A Dsmp.c354 const u8 key_id[4], u8 res[16]) smp_h6()
358 SMP_DBG("w %16phN key_id %4phN", w, key_id); smp_h6()
360 err = aes_cmac(tfm_cmac, w, key_id, 4, res); smp_h6()
3666 const u8 key_id[4] = { 0x72, 0x62, 0x65, 0x6c }; test_h6() local
3673 err = smp_h6(tfm_cmac, w, key_id, res); test_h6()
353 smp_h6(struct crypto_hash *tfm_cmac, const u8 w[16], const u8 key_id[4], u8 res[16]) smp_h6() argument
/linux-4.4.14/drivers/net/wireless/ath/wcn36xx/
H A Dsmd.c1546 msg_body.key_id = keyidx; wcn36xx_smd_remove_stakey()
1576 msg_body.key_id = keyidx; wcn36xx_smd_remove_bsskey()
H A Dhal.h2009 u8 key_id; member in struct:wcn36xx_hal_remove_bss_key_req_msg
2036 u8 key_id; member in struct:wcn36xx_hal_remove_sta_key_req_msg
2828 u8 key_id; member in struct:mic_failure_ind_msg
/linux-4.4.14/include/linux/
H A Dieee80211.h1015 __le16 key_id; member in struct:ieee80211_mmie
1024 __le16 key_id; member in struct:ieee80211_mmie_16
/linux-4.4.14/drivers/staging/rtl8712/
H A Drtl871x_ioctl_linux.c1576 if (keyindex_provided == 1) { /* set key_id only, no given r8711_wx_set_enc()
/linux-4.4.14/drivers/staging/panel/
H A Dpanel.c32 * - change the keyboard to a double mapping : signals -> key_id -> values
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
H A Dwmi.h1728 u8 key_id; member in struct:wmi_tkip_micerr_event
H A Dwmi.c1076 ath6kl_tkip_micerr_event(vif, ev->key_id, ev->is_mcast); ath6kl_wmi_tkip_micerr_event_rx()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
H A Dioctl_linux.c1685 /* set key_id only, no given KeyMaterial(erq->length == 0). */ rtw_wx_set_enc()

Completed in 2368 milliseconds