Home
last modified time | relevance | path

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

12345678910>>...146

/linux/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()
830 struct key *keyring, *key = NULL; in key_create_or_update() local
1033 ret = key->type->update(key, &prep); in key_update()
1058 void key_revoke(struct key *key) in key_revoke() argument
1073 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/tools/testing/selftests/bpf/progs/
A Dtest_tunnel_kern.c49 __builtin_memset(&key, 0x0, sizeof(key)); in _gre_set_tunnel()
88 __builtin_memset(&key, 0x0, sizeof(key)); in _ip6gretap_set_tunnel()
121 key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); in _ip6gretap_get_tunnel()
133 __builtin_memset(&key, 0x0, sizeof(key)); in _erspan_set_tunnel()
217 __builtin_memset(&key, 0x0, sizeof(key)); in _ip4ip6erspan_set_tunnel()
303 __builtin_memset(&key, 0x0, sizeof(key)); in _vxlan_set_tunnel()
347 key.tunnel_id, key.remote_ipv4, md.gbp); in _vxlan_get_tunnel()
358 __builtin_memset(&key, 0x0, sizeof(key)); in _ip6vxlan_set_tunnel()
389 key.tunnel_id, key.remote_ipv6[3], key.tunnel_label); in _ip6vxlan_get_tunnel()
401 __builtin_memset(&key, 0x0, sizeof(key)); in _geneve_set_tunnel()
[all …]
/linux/crypto/
A Dtestmgr.h185 .key =
215 .key =
259 .key =
324 .key =
368 .key =
574 .key =
598 .key =
622 .key =
646 .key =
671 .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/net/mac80211/
A Dkey.c238 if (!key || !key->local->ops->set_key) in ieee80211_key_disable_hw_accel()
694 memcpy(key->conf.key, key_data, key_len); in ieee80211_key_alloc()
761 WARN_ON(key->sdata || key->local); in ieee80211_key_free_unused()
886 ieee80211_key_replace(key->sdata, key->sta, in ieee80211_key_free()
941 key->sta ? &key->sta->sta : NULL, in ieee80211_iter_keys()
948 key->sta ? &key->sta->sta : NULL, in ieee80211_iter_keys()
969 if (key->sta && key->sta->removed) in _ieee80211_iter_keys_rcu()
975 key->sta ? &key->sta->sta : NULL, in _ieee80211_iter_keys_rcu()
1015 ieee80211_key_replace(key->sdata, key->sta, in ieee80211_free_keys_iface()
1083 ieee80211_key_replace(key->sdata, key->sta, in ieee80211_free_sta_keys()
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_lru_map.c287 for (key = 1; key < end_key; key++) in test_lru_sanity1()
293 for (key = 1; key < end_key; key++) { in test_lru_sanity1()
305 for (; key < end_key; key++) { in test_lru_sanity1()
364 for (key = 1; key < end_key; key++) in test_lru_sanity2()
394 for (key = 1; key < end_key; key++) { in test_lru_sanity2()
409 for (key = 1 + tgt_free; key < end_key; key++) in test_lru_sanity2()
471 for (key = 1; key < end_key; key++) in test_lru_sanity3()
477 for (key = 1; key < end_key; key++) { in test_lru_sanity3()
529 for (key = 1; key <= 2 * tgt_free; key++) in test_lru_sanity4()
536 for (key = 1; key <= tgt_free; key++) { in test_lru_sanity4()
[all …]
/linux/kernel/
A Djump_label.c72 jea->key = jeb->key - delta; in jump_label_swap()
76 jeb->key = tmp.key + delta; in jump_label_swap()
263 __static_key_slow_dec(&key->key); in jump_label_update_timeout()
304 key->timeout = rl; in jump_label_rate_limit()
390 key->type |= type; in static_key_set_entries()
498 if (iterk == key) in jump_label_init()
501 key = iterk; in jump_label_init()
546 key->next = mod; in static_key_set_mod()
547 key->type |= type; in static_key_set_mod()
646 if (iterk == key) in jump_label_add_module()
[all …]
/linux/drivers/staging/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()
75 u8 *keybuf = key->key; in fill_tkip_group()
100 memcpy(msg->aes_key_data, key->key, key->keylen); in fill_ccmp_pair()
109 memcpy(msg->aes_key_data, key->key, key->keylen); in fill_ccmp_group()
119 u8 *keybuf = key->key; in fill_sms4_pair()
134 u8 *keybuf = key->key; in fill_sms4_group()
150 memcpy(msg->igtk_key_data, key->key, key->keylen); in fill_aes_cmac_group()
179 k.type = fill_wep_group(&k.key.wep_group_key, key); in wfx_add_key()
[all …]
/linux/net/openvswitch/
A Dflow.c549 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
569 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
586 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
595 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
603 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
614 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
642 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
682 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
696 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
710 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
[all …]
/linux/include/linux/
A Dkey.h172 struct key *key; member
294 extern void key_revoke(struct key *key);
296 extern void key_put(struct key *key);
300 static inline struct key *__key_get(struct key *key) in __key_get() argument
306 static inline struct key *key_get(struct key *key) in key_get() argument
308 return key ? __key_get(key) : key; in key_get()
396 struct key *key);
398 extern int key_move(struct key *key,
404 struct key *key);
426 struct key *key);
[all …]
A Djump_label.h83 __func__, (key))
177 entry->key |= 2; in jump_entry_set_init()
179 entry->key &= ~2; in jump_entry_set_init()
290 STATIC_KEY_CHECK_USE(key); in static_key_slow_inc()
291 atomic_inc(&key->enabled); in static_key_slow_inc()
296 STATIC_KEY_CHECK_USE(key); in static_key_slow_dec()
297 atomic_dec(&key->enabled); in static_key_slow_dec()
300 #define static_key_slow_inc_cpuslocked(key) static_key_slow_inc(key) argument
301 #define static_key_slow_dec_cpuslocked(key) static_key_slow_dec(key) argument
359 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 …]
A Dsiphash.h21 u64 key[2]; member
26 return !(key->key[0] | key->key[1]); in siphash_key_is_zero()
35 const siphash_key_t *key);
37 const siphash_key_t *key);
40 const siphash_key_t *key);
63 key); in ___siphash_aligned()
70 key); in ___siphash_aligned()
81 const siphash_key_t *key) in siphash() argument
91 unsigned long key[2]; member
113 key); in ___hsiphash_aligned()
[all …]
/linux/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/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/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/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/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/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
246 struct key *key; in security_disable() local
281 struct key *key, *newkey; in security_update() local
330 struct key *key = NULL; in security_erase() local
[all …]
/linux/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/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/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()
233 new->permits[j].key = key; in afs_cache_permit()
244 new->permits[j].key = key; in afs_cache_permit()
323 if (permits->permits[i].key < key) in afs_check_permit_rcu()
325 if (permits->permits[i].key > key) in afs_check_permit_rcu()
363 if (permits->permits[i].key < key) in afs_check_permit()
365 if (permits->permits[i].key > key) in afs_check_permit()
[all …]

Completed in 208 milliseconds

12345678910>>...146