Home
last modified time | relevance | path

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

12345678910>>...140

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_tunnel_kern.c63 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel()
85 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel_no_key()
122 __builtin_memset(&key, 0x0, sizeof(key)); in ip6gretap_set_tunnel()
154 key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); in ip6gretap_get_tunnel()
166 __builtin_memset(&key, 0x0, sizeof(key)); in erspan_set_tunnel()
245 __builtin_memset(&key, 0x0, sizeof(key)); in ip4ip6erspan_set_tunnel()
334 __builtin_memset(&key, 0x0, sizeof(key)); in vxlan_set_tunnel_dst()
373 __builtin_memset(&key, 0x0, sizeof(key)); in vxlan_set_tunnel_src()
421 key.tunnel_id, key.local_ipv4, in vxlan_get_tunnel_src()
498 __builtin_memset(&key, 0x0, sizeof(key)); in ip6vxlan_set_tunnel_dst()
[all …]
/linux-6.15/security/keys/
H A Dkey.c38 void __key_check(const struct key *key) in __key_check() argument
41 key, key->magic, KEY_DEBUG_MAGIC); in __key_check()
230 struct key *key; in key_alloc() local
646 void key_put(struct key *key) in key_put() argument
675 struct key *key; in key_lookup() local
781 ret = key->type->update(key, prep); in __key_update()
820 struct key *keyring, *key = NULL; in __key_create_or_update() local
1105 ret = key->type->update(key, &prep); in key_update()
1130 void key_revoke(struct key *key) in key_revoke() argument
1145 key->type->revoke(key); in key_revoke()
[all …]
H 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
62 struct key *key = rka->target_key; in complete_request_key() local
376 struct key *key; in construct_alloc_key() local
497 struct key *key; in construct_key_and_link() local
596 struct key *key; in request_key_and_link() local
613 if (key) in request_key_and_link()
711 struct key *key; in request_key_tag() local
753 struct key *key; in request_key_with_auxdata() local
[all …]
H A Dgc.c72 void key_set_expiry(struct key *key, time64_t expiry) in key_set_expiry() argument
138 struct key *key = in key_gc_unused_keys() local
145 key_check(key); in key_gc_unused_keys()
148 remove_watch_list(key->watchers, key->serial); in key_gc_unused_keys()
154 key->type->destroy(key); in key_gc_unused_keys()
166 memzero_explicit(key, sizeof(*key)); in key_gc_unused_keys()
190 struct key *key; in key_garbage_collector() local
218 key = rb_entry(cursor, struct key, serial_node); in key_garbage_collector()
230 key->perm = 0; in key_garbage_collector()
244 key_serial(key), key->expiry - limit); in key_garbage_collector()
[all …]
H 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
1104 struct key *keyring, *key; in find_key_to_update() local
1353 int __key_link_check_live_key(struct key *keyring, struct key *key) in __key_link_check_live_key() argument
1370 void __key_link(struct key *keyring, struct key *key, in __key_link() argument
1438 int key_link(struct key *keyring, struct key *key) in key_link() argument
1487 static int __key_unlink_begin(struct key *keyring, struct key *key, in __key_unlink_begin() argument
1509 static void __key_unlink(struct key *keyring, struct key *key, in __key_unlink() argument
1522 struct key *key, in __key_unlink_end()
1548 int key_unlink(struct key *keyring, struct key *key) in key_unlink() argument
[all …]
/linux-6.15/kernel/
H A Djump_label.c72 jea->key = jeb->key - delta; in jump_label_swap()
76 jeb->key = tmp.key + delta; in jump_label_swap()
329 __static_key_slow_dec(&key->key); in jump_label_update_timeout()
370 key->timeout = rl; in jump_label_rate_limit()
452 key->type |= type; in static_key_set_entries()
560 if (iterk == key) in jump_label_init()
563 key = iterk; in jump_label_init()
647 key->next = mod; in static_key_set_mod()
648 key->type |= type; in static_key_set_mod()
721 if (iterk == key) in jump_label_add_module()
[all …]
/linux-6.15/tools/testing/selftests/bpf/
H A Dtest_lru_map.c271 for (key = 1; key < end_key; key++) in test_lru_sanity1()
277 for (key = 1; key < end_key; key++) { in test_lru_sanity1()
289 for (; key < end_key; key++) { in test_lru_sanity1()
348 for (key = 1; key < end_key; key++) in test_lru_sanity2()
378 for (key = 1; key < end_key; key++) { in test_lru_sanity2()
392 for (key = 1 + tgt_free; key < end_key; key++) in test_lru_sanity2()
454 for (key = 1; key < end_key; key++) in test_lru_sanity3()
460 for (key = 1; key < end_key; key++) { in test_lru_sanity3()
512 for (key = 1; key <= 2 * tgt_free; key++) in test_lru_sanity4()
519 for (key = 1; key <= tgt_free; key++) { in test_lru_sanity4()
[all …]
/linux-6.15/drivers/net/wireless/silabs/wfx/
H 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.15/net/mac80211/
H A Dkey.c236 if (!key || !key->local->ops->set_key) in ieee80211_key_disable_hw_accel()
358 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()
788 if (!key) in ieee80211_key_destroy()
802 if (!key) in ieee80211_key_free_unused()
805 WARN_ON(key->sdata || key->local); in ieee80211_key_free_unused()
952 if (!key) in ieee80211_key_free()
959 ieee80211_key_replace(key->sdata, NULL, key->sta, in ieee80211_key_free()
1002 if (key->sta && key->sta->removed) in ieee80211_key_iter()
[all …]
/linux-6.15/crypto/
H A Dtestmgr.h194 .key =
237 .key =
304 .key =
412 .key =
456 .key =
1838 .key =
1863 .key =
1888 .key =
1913 .key =
1947 .key =
[all …]
H 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.15/include/linux/
H A Dkey.h33 struct key;
178 struct key *key; member
301 extern void key_revoke(struct key *key);
303 extern void key_put(struct key *key);
307 static inline struct key *__key_get(struct key *key) in __key_get() argument
313 static inline struct key *key_get(struct key *key) in key_get() argument
315 return key ? __key_get(key) : key; in key_get()
411 struct key *key);
413 extern int key_move(struct key *key,
419 struct key *key);
[all …]
H A Djump_label.h84 __func__, (key))
173 entry->key |= 2; in jump_entry_set_init()
175 entry->key &= ~2; in jump_entry_set_init()
290 STATIC_KEY_CHECK_USE(key); in static_key_fast_inc_not_disabled()
302 #define static_key_slow_inc(key) static_key_fast_inc_not_disabled(key) argument
306 STATIC_KEY_CHECK_USE(key); in static_key_slow_dec()
307 atomic_dec(&key->enabled); in static_key_slow_dec()
310 #define static_key_slow_inc_cpuslocked(key) static_key_slow_inc(key) argument
311 #define static_key_slow_dec_cpuslocked(key) static_key_slow_dec(key) argument
366 struct static_key key; member
[all …]
H A Dkey-type.h51 bool (*cmp)(const struct key *key,
95 int (*instantiate)(struct key *key, struct key_preparsed_payload *prep);
102 int (*update)(struct key *key, struct key_preparsed_payload *prep);
117 void (*revoke)(struct key *key);
120 void (*destroy)(struct key *key);
123 void (*describe)(const struct key *key, struct seq_file *p);
132 long (*read)(const struct key *key, char *buffer, size_t buflen);
170 extern int key_payload_reserve(struct key *key, size_t datalen);
171 extern int key_instantiate_and_link(struct key *key,
176 extern int key_reject_and_link(struct key *key,
[all …]
/linux-6.15/net/openvswitch/
H A Dflow.c694 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
714 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
731 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
740 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
748 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
759 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
787 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
827 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
841 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
855 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
[all …]
/linux-6.15/drivers/s390/crypto/
H A Dzcrypt_cca_key.h112 } __packed *key = p; in zcrypt_type6_mex_key_en() local
124 memset(key, 0, sizeof(*key)); in zcrypt_type6_mex_key_en()
130 ptr = key->exponent; in zcrypt_type6_mex_key_en()
141 key->pubsec.section_length = sizeof(key->pubsec) + in zcrypt_type6_mex_key_en()
144 key->pubsec.section_length + sizeof(key->pubhdr); in zcrypt_type6_mex_key_en()
145 key->t6_hdr.ulen = key->pubhdr.token_length + 4; in zcrypt_type6_mex_key_en()
146 key->t6_hdr.blen = key->pubhdr.token_length + 6; in zcrypt_type6_mex_key_en()
185 memset(key, 0, sizeof(*key)); in zcrypt_type6_crt_key()
203 key->pvt.section_length = sizeof(key->pvt) + key_len; in zcrypt_type6_crt_key()
206 key->pvt.p_len = key->pvt.dp_len = key->pvt.u_len = long_len; in zcrypt_type6_crt_key()
[all …]
/linux-6.15/lib/
H 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.15/fs/ubifs/
H 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.15/fs/nilfs2/
H A Ddirect.c172 __u64 key; in nilfs_direct_seek_key() local
174 for (key = start; key <= NILFS_DIRECT_KEY_MAX; key++) { in nilfs_direct_seek_key()
177 *keyp = key; in nilfs_direct_seek_key()
186 __u64 key, lastkey; in nilfs_direct_last_key() local
189 for (key = NILFS_DIRECT_KEY_MIN; key <= NILFS_DIRECT_KEY_MAX; key++) in nilfs_direct_last_key()
192 lastkey = key; in nilfs_direct_last_key()
210 __u64 key; in nilfs_direct_gather_data() local
217 for (key = 0; key < nitems; key++) { in nilfs_direct_gather_data()
220 keys[n] = key; in nilfs_direct_gather_data()
266 __u64 key; in nilfs_direct_propagate() local
[all …]
/linux-6.15/drivers/crypto/intel/qat/qat_common/
H A Dadf_gen2_config.c30 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i); in adf_gen2_crypto_dev_config()
36 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_BANK_NUM, i); in adf_gen2_crypto_dev_config()
42 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY, in adf_gen2_crypto_dev_config()
49 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); in adf_gen2_crypto_dev_config()
57 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); in adf_gen2_crypto_dev_config()
64 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); in adf_gen2_crypto_dev_config()
71 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, i); in adf_gen2_crypto_dev_config()
78 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, i); in adf_gen2_crypto_dev_config()
85 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, i); in adf_gen2_crypto_dev_config()
143 snprintf(key, sizeof(key), ADF_DC "%d" ADF_RING_DC_TX, i); in adf_gen2_comp_dev_config()
[all …]
H A Dadf_gen4_config.c32 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i); in adf_crypto_dev_config()
39 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_BANK_NUM, i); in adf_crypto_dev_config()
45 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY, in adf_crypto_dev_config()
52 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); in adf_crypto_dev_config()
60 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); in adf_crypto_dev_config()
67 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); in adf_crypto_dev_config()
74 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, i); in adf_crypto_dev_config()
81 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, i); in adf_crypto_dev_config()
88 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, i); in adf_crypto_dev_config()
151 snprintf(key, sizeof(key), ADF_DC "%d" ADF_RING_DC_TX, i); in adf_comp_dev_config()
[all …]
/linux-6.15/drivers/input/
H 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.15/drivers/nvdimm/
H 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.15/net/ceph/
H 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()
83 ceph_decode_copy(p, &key->created, sizeof(key->created)); in ceph_crypto_key_decode()
119 key->type, key->len); in ceph_crypto_key_unarmor()
125 if (key) { in ceph_crypto_key_destroy()
126 kfree_sensitive(key->key); in ceph_crypto_key_destroy()
127 key->key = NULL; in ceph_crypto_key_destroy()
[all …]
/linux-6.15/tools/testing/selftests/bpf/map_tests/
H A Dlpm_trie_map_basic_ops.c35 uint8_t key[]; member
70 memcpy(node->key, key, n); in tlpm_add()
81 memcpy(node->key, key, n); in tlpm_add()
252 key = alloca(sizeof(*key) + keysize); in test_lpm_map()
253 memset(key, 0, sizeof(*key) + keysize); in test_lpm_map()
306 memcpy(key->data, list->key, keysize); in test_lpm_map()
814 key.data = 0; in test_lpm_trie_update_flags()
1022 memset(key.data, 0, sizeof(key.data)); in test_lpm_trie_iterate_strs()
1046 memset(key.data, 0, sizeof(key.data)); in test_lpm_trie_iterate_strs()
1056 key.prefixlen = sizeof(key.data) * 8; in test_lpm_trie_iterate_strs()
[all …]

12345678910>>...140