/net/mac802154/ |
D | llsec.c | 27 void mac802154_llsec_init(struct mac802154_llsec *sec) in mac802154_llsec_init() argument 29 memset(sec, 0, sizeof(*sec)); in mac802154_llsec_init() 31 memset(&sec->params.default_key_source, 0xFF, IEEE802154_ADDR_LEN); in mac802154_llsec_init() 33 INIT_LIST_HEAD(&sec->table.security_levels); in mac802154_llsec_init() 34 INIT_LIST_HEAD(&sec->table.devices); in mac802154_llsec_init() 35 INIT_LIST_HEAD(&sec->table.keys); in mac802154_llsec_init() 36 hash_init(sec->devices_short); in mac802154_llsec_init() 37 hash_init(sec->devices_hw); in mac802154_llsec_init() 38 rwlock_init(&sec->lock); in mac802154_llsec_init() 41 void mac802154_llsec_destroy(struct mac802154_llsec *sec) in mac802154_llsec_destroy() argument [all …]
|
D | llsec.h | 64 void mac802154_llsec_init(struct mac802154_llsec *sec); 65 void mac802154_llsec_destroy(struct mac802154_llsec *sec); 67 int mac802154_llsec_get_params(struct mac802154_llsec *sec, 69 int mac802154_llsec_set_params(struct mac802154_llsec *sec, 73 int mac802154_llsec_key_add(struct mac802154_llsec *sec, 76 int mac802154_llsec_key_del(struct mac802154_llsec *sec, 79 int mac802154_llsec_dev_add(struct mac802154_llsec *sec, 81 int mac802154_llsec_dev_del(struct mac802154_llsec *sec, 84 int mac802154_llsec_devkey_add(struct mac802154_llsec *sec, 87 int mac802154_llsec_devkey_del(struct mac802154_llsec *sec, [all …]
|
D | mib.c | 49 res = mac802154_llsec_get_params(&sdata->sec, params); in mac802154_get_params() 65 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in mac802154_set_params() 81 res = mac802154_llsec_key_add(&sdata->sec, id, key); in mac802154_add_key() 96 res = mac802154_llsec_key_del(&sdata->sec, id); in mac802154_del_key() 111 res = mac802154_llsec_dev_add(&sdata->sec, llsec_dev); in mac802154_add_dev() 125 res = mac802154_llsec_dev_del(&sdata->sec, dev_addr); in mac802154_del_dev() 141 res = mac802154_llsec_devkey_add(&sdata->sec, device_addr, key); in mac802154_add_devkey() 157 res = mac802154_llsec_devkey_del(&sdata->sec, device_addr, key); in mac802154_del_devkey() 172 res = mac802154_llsec_seclevel_add(&sdata->sec, sl); in mac802154_add_seclevel() 187 res = mac802154_llsec_seclevel_del(&sdata->sec, sl); in mac802154_del_seclevel() [all …]
|
D | cfg.c | 327 *table = &sdata->sec.table; in ieee802154_get_llsec_table() 361 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in ieee802154_set_llsec_params() 377 res = mac802154_llsec_get_params(&sdata->sec, params); in ieee802154_get_llsec_params() 393 res = mac802154_llsec_key_add(&sdata->sec, id, key); in ieee802154_add_llsec_key() 408 res = mac802154_llsec_key_del(&sdata->sec, id); in ieee802154_del_llsec_key() 423 res = mac802154_llsec_seclevel_add(&sdata->sec, sl); in ieee802154_add_seclevel() 438 res = mac802154_llsec_seclevel_del(&sdata->sec, sl); in ieee802154_del_seclevel() 453 res = mac802154_llsec_dev_add(&sdata->sec, dev_desc); in ieee802154_add_device() 468 res = mac802154_llsec_dev_del(&sdata->sec, extended_addr); in ieee802154_del_device() 484 res = mac802154_llsec_devkey_add(&sdata->sec, extended_addr, key); in ieee802154_add_devkey() [all …]
|
D | rx.c | 173 rc = mac802154_llsec_decrypt(&sdata->sec, skb); in ieee802154_subif_frame() 277 pr_debug("seclevel %i\n", hdr->sec.level); in ieee802154_parse_frame_start() 279 switch (hdr->sec.key_id_mode) { in ieee802154_parse_frame_start() 285 pr_debug("key %02x\n", hdr->sec.key_id); in ieee802154_parse_frame_start() 290 le32_to_cpu(hdr->sec.short_src) >> 16, in ieee802154_parse_frame_start() 291 le32_to_cpu(hdr->sec.short_src) & 0xffff, in ieee802154_parse_frame_start() 292 hdr->sec.key_id); in ieee802154_parse_frame_start() 296 key = swab64((__force u64)hdr->sec.extended_src); in ieee802154_parse_frame_start() 298 hdr->sec.key_id); in ieee802154_parse_frame_start()
|
D | iface.c | 329 mac802154_llsec_get_params(&sdata->sec, ¶ms); in mac802154_set_header_security() 343 hdr->sec.level = level; in mac802154_set_header_security() 344 hdr->sec.key_id_mode = params.out_key.mode; in mac802154_set_header_security() 346 hdr->sec.short_src = params.out_key.short_source; in mac802154_set_header_security() 348 hdr->sec.extended_src = params.out_key.extended_source; in mac802154_set_header_security() 349 hdr->sec.key_id = params.out_key.id; in mac802154_set_header_security() 512 mac802154_llsec_destroy(&sdata->sec); in mac802154_wpan_free() 588 mac802154_llsec_init(&sdata->sec); in ieee802154_setup_sdata()
|
D | tx.c | 243 rc = mac802154_llsec_encrypt(&sdata->sec, skb); in ieee802154_subif_start_xmit()
|
D | ieee802154_i.h | 130 struct mac802154_llsec sec; member
|
/net/rxrpc/ |
D | server_key.c | 69 const struct rxrpc_security *sec; in rxrpc_preparse_s() local 81 sec = rxrpc_security_lookup(sec_class); in rxrpc_preparse_s() 82 if (!sec) in rxrpc_preparse_s() 85 prep->payload.data[1] = (struct rxrpc_security *)sec; in rxrpc_preparse_s() 87 if (!sec->preparse_server_key) in rxrpc_preparse_s() 90 return sec->preparse_server_key(prep); in rxrpc_preparse_s() 95 const struct rxrpc_security *sec = prep->payload.data[1]; in rxrpc_free_preparse_s() local 97 if (sec && sec->free_preparse_server_key) in rxrpc_free_preparse_s() 98 sec->free_preparse_server_key(prep); in rxrpc_free_preparse_s() 103 const struct rxrpc_security *sec = key->payload.data[1]; in rxrpc_destroy_s() local [all …]
|
D | security.c | 70 const struct rxrpc_security *sec = &rxrpc_no_security; in rxrpc_init_client_call_security() local 83 sec = rxrpc_security_lookup(token->security_index); in rxrpc_init_client_call_security() 84 if (sec) in rxrpc_init_client_call_security() 90 call->security = sec; in rxrpc_init_client_call_security() 91 call->security_ix = sec->security_index; in rxrpc_init_client_call_security() 133 const struct rxrpc_security *sec; in rxrpc_get_incoming_security() local 138 sec = rxrpc_security_lookup(sp->hdr.securityIndex); in rxrpc_get_incoming_security() 139 if (!sec) { in rxrpc_get_incoming_security() 148 sec->no_key_abort, -EKEYREJECTED); in rxrpc_get_incoming_security() 152 return sec; in rxrpc_get_incoming_security()
|
D | call_accept.c | 246 const struct rxrpc_security *sec, in rxrpc_alloc_incoming_call() argument 294 rxrpc_new_incoming_connection(rx, conn, sec, skb); in rxrpc_alloc_incoming_call() 335 const struct rxrpc_security *sec = NULL; in rxrpc_new_incoming_call() local 363 sec = rxrpc_get_incoming_security(rx, skb); in rxrpc_new_incoming_call() 364 if (!sec) in rxrpc_new_incoming_call() 376 call = rxrpc_alloc_incoming_call(rx, local, peer, conn, sec, peer_srx, in rxrpc_new_incoming_call()
|
D | conn_service.c | 150 const struct rxrpc_security *sec, in rxrpc_new_incoming_connection() argument 163 conn->security = sec; in rxrpc_new_incoming_connection()
|
/net/bluetooth/rfcomm/ |
D | sock.c | 665 struct bt_security sec; in rfcomm_sock_setsockopt() local 686 sec.level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt() 688 err = bt_copy_from_sockptr(&sec, sizeof(sec), optval, optlen); in rfcomm_sock_setsockopt() 692 if (sec.level > BT_SECURITY_HIGH) { in rfcomm_sock_setsockopt() 697 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt() 804 struct bt_security sec; in rfcomm_sock_getsockopt() local 827 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt() 828 sec.key_size = 0; in rfcomm_sock_getsockopt() 830 len = min_t(unsigned int, len, sizeof(sec)); in rfcomm_sock_getsockopt() 831 if (copy_to_user(optval, (char *) &sec, len)) in rfcomm_sock_getsockopt()
|
/net/ieee802154/ |
D | header_ops.c | 108 rc = ieee802154_hdr_push_sechdr(buf + pos, &hdr->sec); in ieee802154_hdr_push() 302 pos += ieee802154_hdr_get_sechdr(skb->data + pos, &hdr->sec); in ieee802154_hdr_pull() 360 pos += ieee802154_hdr_get_sechdr(buf + pos, &hdr->sec); in ieee802154_hdr_peek() 372 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload() 373 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload()
|
/net/bluetooth/ |
D | l2cap_sock.c | 559 struct bt_security sec; in l2cap_sock_getsockopt() local 586 memset(&sec, 0, sizeof(sec)); in l2cap_sock_getsockopt() 588 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 591 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 593 sec.level = chan->sec_level; in l2cap_sock_getsockopt() 596 len = min_t(unsigned int, len, sizeof(sec)); in l2cap_sock_getsockopt() 597 if (copy_to_user(optval, (char *) &sec, len)) in l2cap_sock_getsockopt() 885 struct bt_security sec; in l2cap_sock_setsockopt() local 912 sec.level = BT_SECURITY_LOW; in l2cap_sock_setsockopt() 914 len = min_t(unsigned int, sizeof(sec), optlen); in l2cap_sock_setsockopt() [all …]
|
/net/dccp/ccids/ |
D | Kconfig | 34 This text was extracted from RFC 4340 (sec. 10.2),
|
/net/core/ |
D | page_pool.c | 873 int sec = (s32)((u32)jiffies - (u32)pool->defer_start) / HZ; in page_pool_release_retry() local 876 __func__, inflight, sec); in page_pool_release_retry()
|
/net/netfilter/ |
D | nfnetlink_log.c | 604 ts.sec = cpu_to_be64(kts.tv_sec); in __build_packet_message()
|
D | nfnetlink_queue.c | 611 ts.sec = cpu_to_be64(kts.tv_sec); in nfqnl_build_packet_message()
|