Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 2443) sorted by relevance

12345678910>>...98

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtest_tunnel_kern.c68 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel()
90 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel_no_key()
127 __builtin_memset(&key, 0x0, sizeof(key)); in ip6gretap_set_tunnel()
159 key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); in ip6gretap_get_tunnel()
171 __builtin_memset(&key, 0x0, sizeof(key)); in erspan_set_tunnel()
250 __builtin_memset(&key, 0x0, sizeof(key)); in ip4ip6erspan_set_tunnel()
339 __builtin_memset(&key, 0x0, sizeof(key)); in vxlan_set_tunnel_dst()
378 __builtin_memset(&key, 0x0, sizeof(key)); in vxlan_set_tunnel_src()
428 key.tunnel_id, key.local_ipv4, in vxlan_get_tunnel_src()
507 __builtin_memset(&key, 0x0, sizeof(key)); in ip6vxlan_set_tunnel_dst()
[all …]
/linux-6.3-rc2/security/keys/
A Dkey.c39 void __key_check(const struct key *key) in __key_check() argument
42 key, key->magic, KEY_DEBUG_MAGIC); in __key_check()
231 struct key *key; in key_alloc() local
647 void key_put(struct key *key) in key_put() argument
664 struct key *key; in key_lookup() local
771 ret = key->type->update(key, prep); in __key_update()
810 struct key *keyring, *key = NULL; in __key_create_or_update() local
1096 ret = key->type->update(key, &prep); in key_update()
1121 void key_revoke(struct key *key) in key_revoke() argument
1136 key->type->revoke(key); in key_revoke()
[all …]
A Drequest_key.c25 struct key *key = current->cached_requested_key; in check_cached_key() local
27 if (key && in check_cached_key()
36 static void cache_requested_key(struct key *key) in cache_requested_key() argument
59 struct key *key = rka->target_key; in complete_request_key() local
373 struct key *key; in construct_alloc_key() local
481 struct key *key; in construct_key_and_link() local
580 struct key *key; in request_key_and_link() local
597 if (key) in request_key_and_link()
695 struct key *key; in request_key_tag() local
737 struct key *key; in request_key_with_auxdata() local
[all …]
A Dgc.c125 struct key *key = in key_gc_unused_keys() local
132 key_check(key); in key_gc_unused_keys()
135 remove_watch_list(key->watchers, key->serial); in key_gc_unused_keys()
141 key->type->destroy(key); in key_gc_unused_keys()
149 key->user->qnbytes -= key->quotalen; in key_gc_unused_keys()
161 memzero_explicit(key, sizeof(*key)); in key_gc_unused_keys()
186 struct key *key; in key_garbage_collector() local
218 key = rb_entry(cursor, struct key, serial_node); in key_garbage_collector()
237 if (key->expiry > limit && key->expiry < new_timer) { in key_garbage_collector()
239 key_serial(key), key->expiry - limit); in key_garbage_collector()
[all …]
A Dkeyring.c565 bool key_default_cmp(const struct key *key, in key_default_cmp() argument
675 struct key *key; in search_nested_keyrings() local
1101 struct key *keyring, *key; in find_key_to_update() local
1350 int __key_link_check_live_key(struct key *keyring, struct key *key) in __key_link_check_live_key() argument
1367 void __key_link(struct key *keyring, struct key *key, in __key_link() argument
1435 int key_link(struct key *keyring, struct key *key) in key_link() argument
1484 static int __key_unlink_begin(struct key *keyring, struct key *key, in __key_unlink_begin() argument
1506 static void __key_unlink(struct key *keyring, struct key *key, in __key_unlink() argument
1519 struct key *key, in __key_unlink_end()
1545 int key_unlink(struct key *keyring, struct key *key) in key_unlink() argument
[all …]
/linux-6.3-rc2/crypto/
A Dtestmgr.h187 .key =
230 .key =
297 .key =
405 .key =
449 .key =
655 .key =
679 .key =
703 .key =
727 .key =
752 .key =
[all …]
A Drsa_helper.c40 key->n = value; in rsa_get_n()
41 key->n_sz = vlen; in rsa_get_n()
52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e()
55 key->e = value; in rsa_get_e()
56 key->e_sz = vlen; in rsa_get_e()
67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d()
70 key->d = value; in rsa_get_d()
71 key->d_sz = vlen; in rsa_get_d()
85 key->p = value; in rsa_get_p()
100 key->q = value; in rsa_get_q()
[all …]
/linux-6.3-rc2/net/mac80211/
A Dkey.c242 if (!key || !key->local->ops->set_key) in ieee80211_key_disable_hw_accel()
365 if (!key) in __ieee80211_set_default_key()
600 if (!key) in ieee80211_key_alloc()
734 memcpy(key->conf.key, key_data, key_len); in ieee80211_key_alloc()
787 if (!key) in ieee80211_key_destroy()
801 WARN_ON(key->sdata || key->local); in ieee80211_key_free_unused()
937 if (!key) in ieee80211_key_free()
999 key->sta ? &key->sta->sta : NULL, in ieee80211_iter_keys()
1006 key->sta ? &key->sta->sta : NULL, in ieee80211_iter_keys()
1027 if (key->sta && key->sta->removed) in _ieee80211_iter_keys_rcu()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_lru_map.c270 for (key = 1; key < end_key; key++) in test_lru_sanity1()
276 for (key = 1; key < end_key; key++) { in test_lru_sanity1()
288 for (; key < end_key; key++) { in test_lru_sanity1()
347 for (key = 1; key < end_key; key++) in test_lru_sanity2()
377 for (key = 1; key < end_key; key++) { in test_lru_sanity2()
391 for (key = 1 + tgt_free; key < end_key; key++) in test_lru_sanity2()
453 for (key = 1; key < end_key; key++) in test_lru_sanity3()
459 for (key = 1; key < end_key; key++) { in test_lru_sanity3()
511 for (key = 1; key <= 2 * tgt_free; key++) in test_lru_sanity4()
518 for (key = 1; key <= tgt_free; key++) { in test_lru_sanity4()
[all …]
/linux-6.3-rc2/kernel/
A Djump_label.c72 jea->key = jeb->key - delta; in jump_label_swap()
76 jeb->key = tmp.key + delta; in jump_label_swap()
291 __static_key_slow_dec(&key->key); in jump_label_update_timeout()
332 key->timeout = rl; in jump_label_rate_limit()
414 key->type |= type; in static_key_set_entries()
522 if (iterk == key) in jump_label_init()
525 key = iterk; in jump_label_init()
570 key->next = mod; in static_key_set_mod()
571 key->type |= type; in static_key_set_mod()
645 if (iterk == key) in jump_label_add_module()
[all …]
/linux-6.3-rc2/drivers/net/wireless/silabs/wfx/
A Dkey.c38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair()
49 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_group()
56 u8 *keybuf = key->key; in fill_tkip_pair()
72 u8 *keybuf = key->key; in fill_tkip_group()
95 memcpy(msg->aes_key_data, key->key, key->keylen); in fill_ccmp_pair()
103 memcpy(msg->aes_key_data, key->key, key->keylen); in fill_ccmp_group()
113 u8 *keybuf = key->key; in fill_sms4_pair()
128 u8 *keybuf = key->key; in fill_sms4_group()
143 memcpy(msg->igtk_key_data, key->key, key->keylen); in fill_aes_cmac_group()
172 k.type = fill_wep_group(&k.key.wep_group_key, key); in wfx_add_key()
[all …]
/linux-6.3-rc2/include/linux/
A Dkey.h178 struct key *key; member
300 extern void key_revoke(struct key *key);
302 extern void key_put(struct key *key);
306 static inline struct key *__key_get(struct key *key) in __key_get() argument
312 static inline struct key *key_get(struct key *key) in key_get() argument
314 return key ? __key_get(key) : key; in key_get()
410 struct key *key);
412 extern int key_move(struct key *key,
418 struct key *key);
440 struct key *key);
[all …]
A Djump_label.h83 __func__, (key))
172 entry->key |= 2; in jump_entry_set_init()
174 entry->key &= ~2; in jump_entry_set_init()
286 STATIC_KEY_CHECK_USE(key); in static_key_fast_inc_not_disabled()
298 #define static_key_slow_inc(key) static_key_fast_inc_not_disabled(key) argument
302 STATIC_KEY_CHECK_USE(key); in static_key_slow_dec()
303 atomic_dec(&key->enabled); in static_key_slow_dec()
306 #define static_key_slow_inc_cpuslocked(key) static_key_slow_inc(key) argument
307 #define static_key_slow_dec_cpuslocked(key) static_key_slow_dec(key) argument
360 struct static_key key; member
[all …]
A Dkey-type.h51 bool (*cmp)(const struct key *key,
94 int (*instantiate)(struct key *key, struct key_preparsed_payload *prep);
101 int (*update)(struct key *key, struct key_preparsed_payload *prep);
116 void (*revoke)(struct key *key);
119 void (*destroy)(struct key *key);
122 void (*describe)(const struct key *key, struct seq_file *p);
131 long (*read)(const struct key *key, char *buffer, size_t buflen);
169 extern int key_payload_reserve(struct key *key, size_t datalen);
170 extern int key_instantiate_and_link(struct key *key,
175 extern int key_reject_and_link(struct key *key,
[all …]
/linux-6.3-rc2/security/selinux/ss/
A Davtab.c78 newnode->key = *key; in avtab_insert_node()
120 if (key->source_type == cur->key.source_type && in avtab_insert()
129 if (key->source_type < cur->key.source_type) in avtab_insert()
132 key->target_type < cur->key.target_type) in avtab_insert()
136 key->target_class < cur->key.target_class) in avtab_insert()
170 if (key->source_type < cur->key.source_type) in avtab_insert_nonunique()
173 key->target_type < cur->key.target_type) in avtab_insert_nonunique()
201 if (key->source_type < cur->key.source_type) in avtab_search()
204 key->target_type < cur->key.target_type) in avtab_search()
237 if (key->source_type < cur->key.source_type) in avtab_search_node()
[all …]
/linux-6.3-rc2/net/openvswitch/
A Dflow.c693 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
713 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
730 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
739 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
747 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
758 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
786 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
826 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
840 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
854 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
[all …]
/linux-6.3-rc2/drivers/s390/crypto/
A Dzcrypt_cca_key.h115 } __packed *key = p; in zcrypt_type6_mex_key_en() local
128 memset(key, 0, sizeof(*key)); in zcrypt_type6_mex_key_en()
152 key->pubsec.section_length = sizeof(key->pubsec) + in zcrypt_type6_mex_key_en()
155 key->pubsec.section_length + sizeof(key->pubhdr); in zcrypt_type6_mex_key_en()
156 key->t6_hdr.ulen = key->pubhdr.token_length + 4; in zcrypt_type6_mex_key_en()
157 key->t6_hdr.blen = key->pubhdr.token_length + 6; in zcrypt_type6_mex_key_en()
184 } __packed *key = p; in zcrypt_type6_crt_key() local
197 memset(key, 0, sizeof(*key)); in zcrypt_type6_crt_key()
215 key->pvt.section_length = sizeof(key->pvt) + key_len; in zcrypt_type6_crt_key()
218 key->pvt.p_len = key->pvt.dp_len = key->pvt.u_len = long_len; in zcrypt_type6_crt_key()
[all …]
/linux-6.3-rc2/lib/
A Dtest_static_keys.c129 .key = &true_key.key, in test_key_func()
134 .key = &true_key.key, in test_key_func()
139 .key = &false_key.key, in test_key_func()
144 .key = &false_key.key, in test_key_func()
171 .key = &base_true_key.key, in test_key_func()
176 .key = &base_true_key.key, in test_key_func()
181 .key = &base_inv_true_key.key, in test_key_func()
186 .key = &base_inv_true_key.key, in test_key_func()
191 .key = &base_false_key.key, in test_key_func()
196 .key = &base_false_key.key, in test_key_func()
[all …]
/linux-6.3-rc2/net/ceph/
A Dcrypto.c28 key->key = NULL; in set_secret()
40 if (!key->len) in set_secret()
43 key->key = kmemdup(buf, key->len, GFP_NOIO); in set_secret()
44 if (!key->key) { in set_secret()
59 ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len); in set_secret()
85 ceph_encode_copy(p, key->key, key->len); in ceph_crypto_key_encode()
131 key->type, key->len); in ceph_crypto_key_unarmor()
137 if (key) { in ceph_crypto_key_destroy()
138 kfree_sensitive(key->key); in ceph_crypto_key_destroy()
139 key->key = NULL; in ceph_crypto_key_destroy()
[all …]
/linux-6.3-rc2/fs/ubifs/
A Dkey.h93 key->u32[0] = inum; in ino_key_init()
122 key->u32[0] = inum; in lowest_ino_key()
123 key->u32[1] = 0; in lowest_ino_key()
135 key->u32[0] = inum; in highest_ino_key()
153 key->u32[0] = inum; in dent_key_init()
170 key->u32[0] = inum; in dent_key_init_hash()
204 key->u32[0] = inum; in lowest_dent_key()
222 key->u32[0] = inum; in xent_key_init()
255 key->u32[0] = inum; in lowest_xent_key()
271 key->u32[0] = inum; in data_key_init()
[all …]
/linux-6.3-rc2/fs/nilfs2/
A Ddirect.c167 __u64 key; in nilfs_direct_seek_key() local
169 for (key = start; key <= NILFS_DIRECT_KEY_MAX; key++) { in nilfs_direct_seek_key()
172 *keyp = key; in nilfs_direct_seek_key()
181 __u64 key, lastkey; in nilfs_direct_last_key() local
184 for (key = NILFS_DIRECT_KEY_MIN; key <= NILFS_DIRECT_KEY_MAX; key++) in nilfs_direct_last_key()
187 lastkey = key; in nilfs_direct_last_key()
205 __u64 key; in nilfs_direct_gather_data() local
212 for (key = 0; key < nitems; key++) { in nilfs_direct_gather_data()
215 keys[n] = key; in nilfs_direct_gather_data()
261 __u64 key; in nilfs_direct_propagate() local
[all …]
/linux-6.3-rc2/drivers/crypto/qat/qat_common/
A Dadf_gen2_config.c29 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i); in adf_gen2_crypto_dev_config()
35 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_BANK_NUM, i); in adf_gen2_crypto_dev_config()
41 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY, in adf_gen2_crypto_dev_config()
48 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); in adf_gen2_crypto_dev_config()
56 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); in adf_gen2_crypto_dev_config()
63 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); in adf_gen2_crypto_dev_config()
70 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, i); in adf_gen2_crypto_dev_config()
77 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, i); in adf_gen2_crypto_dev_config()
84 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, i); in adf_gen2_crypto_dev_config()
142 snprintf(key, sizeof(key), ADF_DC "%d" ADF_RING_DC_TX, i); in adf_gen2_comp_dev_config()
[all …]
/linux-6.3-rc2/drivers/input/
A Dsparse-keymap.c28 for (key = dev->keycode; key->type != KE_END; key++) { in sparse_keymap_get_key_index()
45 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_by_index()
66 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_from_scancode()
68 return key; in sparse_keymap_entry_from_scancode()
87 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_from_keycode()
88 if (key->type == KE_KEY && keycode == key->keycode) in sparse_keymap_entry_from_keycode()
106 key = NULL; in sparse_keymap_locate()
108 return key; in sparse_keymap_locate()
118 if (key && key->type == KE_KEY) { in sparse_keymap_getkeycode()
124 memcpy(ke->scancode, &key->code, sizeof(key->code)); in sparse_keymap_getkeycode()
[all …]
/linux-6.3-rc2/drivers/nvdimm/
A Dsecurity.c27 static void *key_data(struct key *key) in key_data() argument
36 static void nvdimm_put_key(struct key *key) in nvdimm_put_key() argument
52 struct key *key = NULL; in nvdimm_request_key() local
81 struct key **key) in nvdimm_get_key_payload() argument
94 struct key *key; in nvdimm_lookup_user_key() local
141 struct key *key; in nvdimm_key_revalidate() local
169 struct key *key; in __nvdimm_security_unlock() local
253 struct key *key; in security_disable() local
302 struct key *key, *newkey; in security_update() local
351 struct key *key = NULL; in security_erase() local
[all …]
/linux-6.3-rc2/fs/afs/
A Dsecurity.c25 struct key *key; in afs_request_key() local
53 struct key *key; in afs_request_key_rcu() local
164 if (permits->permits[i].key < key) in afs_cache_permit()
166 if (permits->permits[i].key > key) in afs_cache_permit()
232 new->permits[j].key = key; in afs_cache_permit()
243 new->permits[j].key = key; in afs_cache_permit()
322 if (permits->permits[i].key < key) in afs_check_permit_rcu()
324 if (permits->permits[i].key > key) in afs_check_permit_rcu()
362 if (permits->permits[i].key < key) in afs_check_permit()
364 if (permits->permits[i].key > key) in afs_check_permit()
[all …]

Completed in 118 milliseconds

12345678910>>...98