Lines Matching refs:key
835 struct ieee802154_llsec_key *key) in ieee802154_llsec_parse_key() argument
840 memset(key, 0, sizeof(*key)); in ieee802154_llsec_parse_key()
861 key->cmd_frame_ids = commands[7]; in ieee802154_llsec_parse_key()
864 key->frame_types = frames; in ieee802154_llsec_parse_key()
866 nla_memcpy(key->key, info->attrs[IEEE802154_ATTR_LLSEC_KEY_BYTES], in ieee802154_llsec_parse_key()
875 struct ieee802154_llsec_key key; in llsec_add_key() local
878 if (ieee802154_llsec_parse_key(info, &key) || in llsec_add_key()
882 return ops->llsec->add_key(dev, &id, &key); in llsec_add_key()
912 const struct ieee802154_llsec_key_entry *key, in ieee802154_nl_fill_key() argument
925 ieee802154_llsec_fill_key_id(msg, &key->id) || in ieee802154_nl_fill_key()
927 key->key->frame_types)) in ieee802154_nl_fill_key()
930 if (key->key->frame_types & BIT(IEEE802154_FC_TYPE_MAC_CMD)) { in ieee802154_nl_fill_key()
932 commands[7] = key->key->cmd_frame_ids; in ieee802154_nl_fill_key()
939 IEEE802154_LLSEC_KEY_SIZE, key->key->key)) in ieee802154_nl_fill_key()
1111 struct ieee802154_llsec_device_key key; in llsec_add_devkey() local
1116 ieee802154_llsec_parse_key_id(info, &key.key_id)) in llsec_add_devkey()
1120 key.frame_counter = nla_get_u32(info->attrs[IEEE802154_ATTR_LLSEC_FRAME_COUNTER]); in llsec_add_devkey()
1122 return ops->llsec->add_devkey(dev, devaddr, &key); in llsec_add_devkey()
1137 struct ieee802154_llsec_device_key key; in llsec_del_devkey() local
1141 ieee802154_llsec_parse_key_id(info, &key.key_id)) in llsec_del_devkey()
1146 return ops->llsec->del_devkey(dev, devaddr, &key); in llsec_del_devkey()