/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 | rx.c | 86 rc = mac802154_llsec_decrypt(&sdata->sec, skb); in ieee802154_subif_frame() 161 pr_debug("seclevel %i\n", hdr->sec.level); in ieee802154_parse_frame_start() 163 switch (hdr->sec.key_id_mode) { in ieee802154_parse_frame_start() 169 pr_debug("key %02x\n", hdr->sec.key_id); in ieee802154_parse_frame_start() 174 le32_to_cpu(hdr->sec.short_src) >> 16, in ieee802154_parse_frame_start() 175 le32_to_cpu(hdr->sec.short_src) & 0xffff, in ieee802154_parse_frame_start() 176 hdr->sec.key_id); in ieee802154_parse_frame_start() 180 key = swab64((__force u64)hdr->sec.extended_src); in ieee802154_parse_frame_start() 182 hdr->sec.key_id); in ieee802154_parse_frame_start()
|
D | cfg.c | 272 *table = &sdata->sec.table; in ieee802154_get_llsec_table() 306 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in ieee802154_set_llsec_params() 322 res = mac802154_llsec_get_params(&sdata->sec, params); in ieee802154_get_llsec_params() 338 res = mac802154_llsec_key_add(&sdata->sec, id, key); in ieee802154_add_llsec_key() 353 res = mac802154_llsec_key_del(&sdata->sec, id); in ieee802154_del_llsec_key() 368 res = mac802154_llsec_seclevel_add(&sdata->sec, sl); in ieee802154_add_seclevel() 383 res = mac802154_llsec_seclevel_del(&sdata->sec, sl); in ieee802154_del_seclevel() 398 res = mac802154_llsec_dev_add(&sdata->sec, dev_desc); in ieee802154_add_device() 413 res = mac802154_llsec_dev_del(&sdata->sec, extended_addr); in ieee802154_del_device() 429 res = mac802154_llsec_devkey_add(&sdata->sec, extended_addr, key); in ieee802154_add_devkey() [all …]
|
D | iface.c | 337 mac802154_llsec_get_params(&sdata->sec, ¶ms); in mac802154_set_header_security() 351 hdr->sec.level = level; in mac802154_set_header_security() 352 hdr->sec.key_id_mode = params.out_key.mode; in mac802154_set_header_security() 354 hdr->sec.short_src = params.out_key.short_source; in mac802154_set_header_security() 356 hdr->sec.extended_src = params.out_key.extended_source; in mac802154_set_header_security() 357 hdr->sec.key_id = params.out_key.id; in mac802154_set_header_security() 520 mac802154_llsec_destroy(&sdata->sec); in mac802154_wpan_free() 595 mac802154_llsec_init(&sdata->sec); in ieee802154_setup_sdata()
|
D | tx.c | 123 rc = mac802154_llsec_encrypt(&sdata->sec, skb); in ieee802154_subif_start_xmit()
|
D | ieee802154_i.h | 91 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; in rxrpc_init_client_conn_security() local 85 sec = rxrpc_security_lookup(token->security_index); in rxrpc_init_client_conn_security() 86 if (sec) in rxrpc_init_client_conn_security() 92 conn->security = sec; in rxrpc_init_client_conn_security() 110 const struct rxrpc_security *sec; in rxrpc_get_incoming_security() local 115 sec = rxrpc_security_lookup(sp->hdr.securityIndex); in rxrpc_get_incoming_security() 116 if (!sec) { in rxrpc_get_incoming_security() 131 skb->priority = sec->no_key_abort; in rxrpc_get_incoming_security() 135 return sec; in rxrpc_get_incoming_security()
|
D | call_accept.c | 264 const struct rxrpc_security *sec, in rxrpc_alloc_incoming_call() argument 312 rxrpc_new_incoming_connection(rx, conn, sec, skb); in rxrpc_alloc_incoming_call() 352 const struct rxrpc_security *sec = NULL; in rxrpc_new_incoming_call() local 377 sec = rxrpc_get_incoming_security(rx, skb); in rxrpc_new_incoming_call() 378 if (!sec) in rxrpc_new_incoming_call() 382 call = rxrpc_alloc_incoming_call(rx, local, peer, conn, sec, skb); in rxrpc_new_incoming_call()
|
D | conn_service.c | 159 const struct rxrpc_security *sec, in rxrpc_new_incoming_connection() argument 172 conn->security = sec; in rxrpc_new_incoming_connection()
|
/net/ieee802154/ |
D | header_ops.c | 108 rc = ieee802154_hdr_push_sechdr(buf + pos, &hdr->sec); in ieee802154_hdr_push() 255 pos += ieee802154_hdr_get_sechdr(skb->data + pos, &hdr->sec); in ieee802154_hdr_pull() 300 pos += ieee802154_hdr_get_sechdr(buf + pos, &hdr->sec); in ieee802154_hdr_peek() 312 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload() 313 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload()
|
/net/bluetooth/rfcomm/ |
D | sock.c | 672 struct bt_security sec; in rfcomm_sock_setsockopt() local 694 sec.level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt() 696 len = min_t(unsigned int, sizeof(sec), optlen); in rfcomm_sock_setsockopt() 697 if (copy_from_sockptr(&sec, optval, len)) { in rfcomm_sock_setsockopt() 702 if (sec.level > BT_SECURITY_HIGH) { in rfcomm_sock_setsockopt() 707 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt() 815 struct bt_security sec; in rfcomm_sock_getsockopt() local 838 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt() 839 sec.key_size = 0; in rfcomm_sock_getsockopt() 841 len = min_t(unsigned int, len, sizeof(sec)); in rfcomm_sock_getsockopt() [all …]
|
/net/bluetooth/ |
D | l2cap_sock.c | 576 struct bt_security sec; in l2cap_sock_getsockopt() local 603 memset(&sec, 0, sizeof(sec)); in l2cap_sock_getsockopt() 605 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 608 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt() 610 sec.level = chan->sec_level; in l2cap_sock_getsockopt() 613 len = min_t(unsigned int, len, sizeof(sec)); in l2cap_sock_getsockopt() 614 if (copy_to_user(optval, (char *) &sec, len)) in l2cap_sock_getsockopt() 902 struct bt_security sec; in l2cap_sock_setsockopt() local 929 sec.level = BT_SECURITY_LOW; in l2cap_sock_setsockopt() 931 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 | 707 int sec = (s32)((u32)jiffies - (u32)pool->defer_start) / HZ; in page_pool_release_retry() local 710 __func__, inflight, sec); in page_pool_release_retry()
|
/net/netfilter/ |
D | nfnetlink_log.c | 593 ts.sec = cpu_to_be64(kts.tv_sec); in __build_packet_message()
|
D | nfnetlink_queue.c | 584 ts.sec = cpu_to_be64(kts.tv_sec); in nfqnl_build_packet_message()
|