Home
last modified time | relevance | path

Searched refs:key_id (Results 1 – 22 of 22) sorted by relevance

/net/sctp/
Dauth.c79 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) in sctp_auth_shkey_create() argument
90 new->key_id = key_id; in sctp_auth_shkey_create()
363 new = sctp_auth_shkey_create(sh_key->key_id, gfp); in sctp_auth_asoc_copy_shkeys()
431 __u16 key_id) in sctp_auth_get_shkey() argument
437 if (key->key_id == key_id) { in sctp_auth_get_shkey()
713 __u16 key_id, hmac_id; in sctp_auth_calculate_hmac() local
722 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()
725 if (key_id == asoc->active_key_id) in sctp_auth_calculate_hmac()
840 if (shkey->key_id == auth_key->sca_keynumber) { in sctp_auth_set_key()
882 __u16 key_id) in sctp_auth_set_active_key() argument
[all …]
Dulpevent.c826 const struct sctp_association *asoc, __u16 key_id, in sctp_ulpevent_make_authkey() argument
845 ak->auth_keynumber = key_id; in sctp_ulpevent_make_authkey()
Doutput.c264 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
Dsm_make_chunk.c87 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_control_release_owner()
1327 __u16 key_id) in sctp_make_auth() argument
1345 auth_hdr.shkey_id = htons(key_id); in sctp_make_auth()
Dsm_statefuns.c4355 __u16 key_id; in sctp_sf_authenticate() local
4371 key_id = ntohs(auth_hdr->shkey_id); in sctp_sf_authenticate()
4372 if (key_id != asoc->active_key_id) { in sctp_sf_authenticate()
4373 sh_key = sctp_auth_get_shkey(asoc, key_id); in sctp_sf_authenticate()
Dsocket.c9166 ev = sctp_ulpevent_make_authkey(asoc, shkey->key_id, in sctp_wfree()
/net/core/
Dflow_dissector.c41 enum flow_dissector_key_id key_id) in dissector_set_key() argument
43 flow_dissector->used_keys |= (1ULL << key_id); in dissector_set_key()
60 key->key_id)); in skb_flow_dissector_init()
62 dissector_set_key(flow_dissector, key->key_id); in skb_flow_dissector_init()
63 flow_dissector->offset[key->key_id] = key->offset; in skb_flow_dissector_init()
1963 .key_id = FLOW_DISSECTOR_KEY_CONTROL,
1967 .key_id = FLOW_DISSECTOR_KEY_BASIC,
1971 .key_id = FLOW_DISSECTOR_KEY_IPV4_ADDRS,
1975 .key_id = FLOW_DISSECTOR_KEY_IPV6_ADDRS,
1979 .key_id = FLOW_DISSECTOR_KEY_TIPC,
[all …]
/net/mac802154/
Dllsec.c419 if (!llsec_key_id_equal(key, &devkey->key_id)) in llsec_devkey_find()
441 if (llsec_devkey_find(dev, &key->key_id)) in mac802154_llsec_devkey_add()
465 devkey = llsec_devkey_find(dev, &key->key_id); in mac802154_llsec_devkey_del()
553 struct ieee802154_llsec_key_id *key_id) in llsec_lookup_key() argument
583 if (id->id != hdr->sec.key_id) in llsec_lookup_key()
599 if (key_id) in llsec_lookup_key()
600 *key_id = key_entry->id; in llsec_lookup_key()
932 next->devkey.key_id = *in_key; in llsec_update_devkey_record()
990 struct ieee802154_llsec_key_id key_id; in mac802154_llsec_decrypt() local
1013 key = llsec_lookup_key(sec, &hdr, &hdr.source, &key_id); in mac802154_llsec_decrypt()
[all …]
Drx.c285 pr_debug("key %02x\n", hdr->sec.key_id); in ieee802154_parse_frame_start()
292 hdr->sec.key_id); in ieee802154_parse_frame_start()
298 hdr->sec.key_id); in ieee802154_parse_frame_start()
Diface.c349 hdr->sec.key_id = params.out_key.id; in mac802154_set_header_security()
/net/sched/
Dact_tunnel_key.c372 __be64 key_id = 0; in tunnel_key_init() local
414 key_id = key32_to_tunnel_id(key32); in tunnel_key_init()
455 key_id, opts_len); in tunnel_key_init()
466 key_id, opts_len); in tunnel_key_init()
742 __be32 key_id = tunnel_id_to_key32(key->tun_id); in tunnel_key_dump() local
745 nla_put_be32(skb, TCA_TUNNEL_KEY_ENC_KEY_ID, key_id)) || in tunnel_key_dump()
Dcls_flower.c2026 keys[cnt].key_id = id; \
/net/mac80211/
Dwpa.c394 static inline void ccmp_pn2hdr(u8 *hdr, u8 *pn, int key_id) in ccmp_pn2hdr() argument
399 hdr[3] = 0x20 | (key_id << 6); in ccmp_pn2hdr()
597 static inline void gcmp_pn2hdr(u8 *hdr, const u8 *pn, int key_id) in gcmp_pn2hdr() argument
602 hdr[3] = 0x20 | (key_id << 6); in gcmp_pn2hdr()
847 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt()
894 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_256_encrypt()
1039 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_gmac_encrypt()
Drx.c992 return le16_to_cpu(mmie->key_id); in ieee80211_get_mmie_keyidx()
999 return le16_to_cpu(mmie16->key_id); in ieee80211_get_mmie_keyidx()
/net/ieee802154/
Dheader_ops.c72 buf[pos++] = hdr->key_id; in ieee802154_hdr_push_sechdr()
233 hdr->key_id = buf[pos++]; in ieee802154_hdr_get_sechdr()
Dnl-mac.c1116 ieee802154_llsec_parse_key_id(info, &key.key_id)) in llsec_add_devkey()
1141 ieee802154_llsec_parse_key_id(info, &key.key_id)) in llsec_del_devkey()
1173 ieee802154_llsec_fill_key_id(msg, &devkey->key_id)) in ieee802154_nl_fill_devkey()
Dnl802154.c2191 if (ieee802154_llsec_send_key_id(msg, &devkey->key_id) < 0) in nl802154_send_devkey()
2294 &key.key_id) < 0) in nl802154_add_llsec_devkey()
2327 &key.key_id) < 0) in nl802154_del_llsec_devkey()
/net/wireless/
Dnl80211.h96 int key_id, const u8 *tsc, gfp_t gfp);
Dmlme.c234 enum nl80211_key_type key_type, int key_id, in cfg80211_michael_mic_failure() argument
245 "keyid=%d %scast addr=%pM)", key_id, in cfg80211_michael_mic_failure()
255 trace_cfg80211_michael_mic_failure(dev, addr, key_type, key_id, tsc); in cfg80211_michael_mic_failure()
256 nl80211_michael_mic_failure(rdev, dev, addr, key_type, key_id, tsc, gfp); in cfg80211_michael_mic_failure()
Dtrace.h3032 enum nl80211_key_type key_type, int key_id, const u8 *tsc),
3033 TP_ARGS(netdev, addr, key_type, key_id, tsc),
3038 __field(int, key_id)
3045 __entry->key_id = key_id;
3051 __entry->key_id, __entry->tsc)
Dnl80211.c18602 enum nl80211_key_type key_type, int key_id, in nl80211_michael_mic_failure() argument
18622 (key_id != -1 && in nl80211_michael_mic_failure()
18623 nla_put_u8(msg, NL80211_ATTR_KEY_IDX, key_id)) || in nl80211_michael_mic_failure()
/net/bluetooth/
Dsmp.c341 const u8 key_id[4], u8 res[16]) in smp_h6()
345 SMP_DBG("w %16phN key_id %4phN", w, key_id); in smp_h6()
347 err = aes_cmac(tfm_cmac, w, key_id, 4, res); in smp_h6()
3714 const u8 key_id[4] = { 0x72, 0x62, 0x65, 0x6c }; in test_h6() local
3721 err = smp_h6(tfm_cmac, w, key_id, res); in test_h6()