Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 25 of 137) sorted by relevance

123456

/linux/include/linux/
H A Dkey.h102 struct key_type;
129 struct key_type *type;
172 const struct key_type *type,
179 struct key_type *keytype;
250 struct key_type *type; /* type of key */
283 extern struct key *key_alloc(struct key_type *type,
322 extern struct key *request_key_tag(struct key_type *type,
327 extern struct key *request_key_rcu(struct key_type *type,
331 extern struct key *request_key_with_auxdata(struct key_type *type,
346 static inline struct key *request_key(struct key_type *type, in request_key()
[all …]
H A Dkey-type.h64 struct key_type { struct
165 extern struct key_type key_type_keyring; argument
167 extern int register_key_type(struct key_type *ktype);
168 extern void unregister_key_type(struct key_type *ktype);
/linux/include/keys/
H A Dsystem_keyring.h23 const struct key_type *type,
27 const struct key_type *type,
46 const struct key_type *type,
50 const struct key_type *type,
65 const struct key_type *type,
H A Duser-type.h33 extern struct key_type key_type_user;
34 extern struct key_type key_type_logon;
/linux/security/landlock/
H A Druleset.c84 static bool is_object_pointer(const enum landlock_key_type key_type) in is_object_pointer() argument
86 switch (key_type) { in is_object_pointer()
141 const enum landlock_key_type key_type) in get_root() argument
143 switch (key_type) { in get_root()
159 const enum landlock_key_type key_type) in free_rule() argument
164 if (is_object_pointer(key_type)) in free_rule()
325 const enum landlock_key_type key_type) in merge_tree() argument
335 src_root = get_root(src, key_type); in merge_tree()
347 .type = key_type, in merge_tree()
409 const enum landlock_key_type key_type) in inherit_tree() argument
[all …]
/linux/security/keys/
H A Dinternal.h41 extern struct key_type key_type_dead;
42 extern struct key_type key_type_user;
43 extern struct key_type key_type_logon;
92 extern struct key_type *key_type_lookup(const char *type);
93 extern void key_type_put(struct key_type *ktype);
150 extern struct key *request_key_and_link(struct key_type *type,
169 struct key_type *dead_type);
173 extern void key_gc_keytype(struct key_type *ktype);
205 extern struct key_type key_type_request_key_auth;
H A Dgc.c31 static struct key_type *key_gc_dead_keytype;
43 struct key_type key_type_dead = {
112 void key_gc_keytype(struct key_type *ktype) in key_gc_keytype()
H A Duser_defined.c23 struct key_type key_type_user = {
43 struct key_type key_type_logon = {
/linux/tools/testing/selftests/bpf/progs/
H A Dlinked_maps2.c9 typedef struct my_key { long x; } key_type; typedef
14 __type(key, key_type);
43 key_type key_struct = { .x = 2 }; in BPF_PROG()
58 key_type key_struct = { .x = 1 }; in BPF_PROG()
/linux/crypto/asymmetric_keys/
H A Drestrict.c71 const struct key_type *type, in restrict_link_by_signature()
131 const struct key_type *type, in restrict_link_by_ca()
172 const struct key_type *type, in restrict_link_by_digsig()
207 const struct key_type *type, in key_or_keyring_common()
329 const struct key_type *type, in restrict_link_by_key_or_keyring()
357 const struct key_type *type, in restrict_link_by_key_or_keyring_chain()
/linux/fs/ubifs/
H A Dgc.c119 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp()
120 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DATA_KEY); in data_nodes_cmp()
163 ubifs_assert(c, key_type(c, &sa->key) != UBIFS_DATA_KEY && in nondata_nodes_cmp()
164 key_type(c, &sb->key) != UBIFS_DATA_KEY); in nondata_nodes_cmp()
177 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp()
178 key_type(c, &sa->key) == UBIFS_XENT_KEY); in nondata_nodes_cmp()
179 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp()
180 key_type(c, &sb->key) == UBIFS_XENT_KEY); in nondata_nodes_cmp()
255 ubifs_assert(c, key_type(c, &snod->key) == UBIFS_DATA_KEY || in sort_nodes()
256 key_type(c, &snod->key) == UBIFS_INO_KEY || in sort_nodes()
[all …]
H A Dreplay.c218 ubifs_assert(c, key_type(c, &rino->key) == UBIFS_INO_KEY); in inode_still_linked()
227 key_type(c, &r->key) == UBIFS_INO_KEY) in inode_still_linked()
258 switch (key_type(c, &r->key)) { in apply_replay_entry()
485 int key_type = key_type_flash(c, dent->key); in ubifs_validate_entry() local
491 (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || in ubifs_validate_entry()
493 ubifs_err(c, "bad %s node", key_type == UBIFS_DENT_KEY ? in ubifs_validate_entry()
498 if (key_type != UBIFS_DENT_KEY && key_type != UBIFS_XENT_KEY) { in ubifs_validate_entry()
499 ubifs_err(c, "bad key type %d", key_type); in ubifs_validate_entry()
H A Dtnc_misc.c349 switch (key_type(c, &zbr->key)) { in read_znode()
357 i, key_type(c, &zbr->key)); in read_znode()
365 type = key_type(c, &zbr->key); in read_znode()
486 int err, type = key_type(c, key); in ubifs_tnc_read_node()
/linux/certs/
H A Dsystem_keyring.c46 const struct key_type *type, in restrict_link_by_builtin_trusted()
66 const struct key_type *type, in restrict_link_by_digsig_builtin()
89 const struct key_type *type, in restrict_link_by_builtin_and_secondary_trusted()
118 const struct key_type *type, in restrict_link_by_digsig_builtin_and_secondary()
208 const struct key_type *type, in restrict_link_by_builtin_secondary_and_machine()
/linux/fs/btrfs/
H A Dverity.c108 static int drop_verity_items(struct btrfs_inode *inode, u8 key_type) in drop_verity_items() argument
134 key.type = key_type; in drop_verity_items()
152 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in drop_verity_items()
216 static int write_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in write_key_bytes() argument
242 key.type = key_type; in write_key_bytes()
296 static int read_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in read_key_bytes() argument
321 key.type = key_type; in read_key_bytes()
338 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in read_key_bytes()
/linux/kernel/bpf/
H A Dlocal_storage.c358 const struct btf_type *key_type, in cgroup_storage_check_btf() argument
376 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_STRUCT || in cgroup_storage_check_btf()
377 BTF_INFO_VLEN(key_type->info) != 2) in cgroup_storage_check_btf()
383 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf()
385 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
394 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
403 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_INT) in cgroup_storage_check_btf()
406 int_data = *(u32 *)(key_type + 1); in cgroup_storage_check_btf()
/linux/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.c122 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
249 ctx->key_type = AES_128_BIT; in cvm_xts_setkey()
252 ctx->key_type = AES_256_BIT; in cvm_xts_setkey()
267 ctx->key_type = AES_128_BIT; in cvm_validate_keylen()
270 ctx->key_type = AES_192_BIT; in cvm_validate_keylen()
273 ctx->key_type = AES_256_BIT; in cvm_validate_keylen()
280 ctx->key_type = 0; in cvm_validate_keylen()
/linux/drivers/staging/rtl8723bs/os_dep/
H A Drecv_linux.c142 enum nl80211_key_type key_type = 0; in rtw_handle_tkip_mic_err() local
164 key_type |= NL80211_KEYTYPE_GROUP; in rtw_handle_tkip_mic_err()
166 key_type |= NL80211_KEYTYPE_PAIRWISE; in rtw_handle_tkip_mic_err()
169 cfg80211_michael_mic_failure(padapter->pnetdev, (u8 *)&pmlmepriv->assoc_bssid[0], key_type, -1, in rtw_handle_tkip_mic_err()
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Dcore.c1500 u8 key_type = NO_ENCRYPTION; in rtl_op_set_key() local
1531 key_type = WEP40_ENCRYPTION; in rtl_op_set_key()
1536 key_type = WEP104_ENCRYPTION; in rtl_op_set_key()
1539 key_type = TKIP_ENCRYPTION; in rtl_op_set_key()
1543 key_type = AESCCMP_ENCRYPTION; in rtl_op_set_key()
1550 key_type = AESCMAC_ENCRYPTION; in rtl_op_set_key()
1560 if (key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1561 key_type == WEP104_ENCRYPTION || in rtl_op_set_key()
1584 if (!group_key || key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1585 key_type == WEP104_ENCRYPTION) { in rtl_op_set_key()
[all …]
/linux/fs/bcachefs/
H A Dstr_hash.h134 u8 key_type; member
145 return k.k->type == desc.key_type && in is_visible_key()
239 if (k.k->type != desc.key_type && in bch2_hash_needs_whiteout()
243 if (k.k->type == desc.key_type && in bch2_hash_needs_whiteout()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.h133 u8 key_type; member
179 u8 key_type; member
H A Dotx_cptvf_algs.c274 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
411 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_skcipher_xts_setkey()
414 ctx->key_type = OTX_CPT_AES_256_BIT; in otx_cpt_skcipher_xts_setkey()
446 ctx->key_type = OTX_CPT_AES_128_BIT; in cpt_aes_setkey()
449 ctx->key_type = OTX_CPT_AES_192_BIT; in cpt_aes_setkey()
452 ctx->key_type = OTX_CPT_AES_256_BIT; in cpt_aes_setkey()
777 ctx->key_type = OTX_CPT_AES_128_BIT; in aead_hmac_init()
780 ctx->key_type = OTX_CPT_AES_192_BIT; in aead_hmac_init()
783 ctx->key_type = OTX_CPT_AES_256_BIT; in aead_hmac_init()
863 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_aead_gcm_aes_setkey()
[all …]
/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.c260 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
430 ctx->key_type = OTX2_CPT_AES_128_BIT; in otx2_cpt_skcipher_xts_setkey()
433 ctx->key_type = OTX2_CPT_AES_192_BIT; in otx2_cpt_skcipher_xts_setkey()
436 ctx->key_type = OTX2_CPT_AES_256_BIT; in otx2_cpt_skcipher_xts_setkey()
468 ctx->key_type = OTX2_CPT_AES_128_BIT; in cpt_aes_setkey()
471 ctx->key_type = OTX2_CPT_AES_192_BIT; in cpt_aes_setkey()
474 ctx->key_type = OTX2_CPT_AES_256_BIT; in cpt_aes_setkey()
866 ctx->key_type = OTX2_CPT_AES_128_BIT; in aead_hmac_init()
869 ctx->key_type = OTX2_CPT_AES_192_BIT; in aead_hmac_init()
872 ctx->key_type = OTX2_CPT_AES_256_BIT; in aead_hmac_init()
[all …]
H A Dotx2_cptvf_algs.h124 u8 key_type; member
175 u8 key_type; member
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dmanager-sysfs.c161 enum omap_dss_trans_key_type key_type; in manager_trans_key_type_show() local
166 key_type = info.trans_key_type; in manager_trans_key_type_show()
167 BUG_ON(key_type >= ARRAY_SIZE(trans_key_type_str)); in manager_trans_key_type_show()
169 return sysfs_emit(buf, "%s\n", trans_key_type_str[key_type]); in manager_trans_key_type_show()

123456