Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/include/linux/
Dkey.h96 struct key_type;
123 struct key_type *type;
166 const struct key_type *type,
173 struct key_type *keytype;
244 struct key_type *type; /* type of key */
277 extern struct key *key_alloc(struct key_type *type,
316 extern struct key *request_key_tag(struct key_type *type,
321 extern struct key *request_key_rcu(struct key_type *type,
325 extern struct key *request_key_with_auxdata(struct key_type *type,
340 static inline struct key *request_key(struct key_type *type, in request_key()
[all …]
Dkey-type.h63 struct key_type { struct
163 extern struct key_type key_type_keyring; argument
165 extern int register_key_type(struct key_type *ktype);
166 extern void unregister_key_type(struct key_type *ktype);
/kernel/linux/linux-5.10/include/crypto/
Dpublic_key.h57 struct key_type;
61 const struct key_type *type,
66 const struct key_type *type,
71 const struct key_type *type,
/kernel/linux/linux-5.10/security/keys/
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);
157 extern struct key *request_key_and_link(struct key_type *type,
178 struct key_type *dead_type);
181 extern void key_gc_keytype(struct key_type *ktype);
213 extern struct key_type key_type_request_key_auth;
Dgc.c31 static struct key_type *key_gc_dead_keytype;
43 struct key_type key_type_dead = {
99 void key_gc_keytype(struct key_type *ktype) in key_gc_keytype()
Duser_defined.c23 struct key_type key_type_user = {
43 struct key_type key_type_logon = {
/kernel/linux/linux-5.10/drivers/staging/vt6656/
Dkey.c37 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument
53 if (key_type != VNT_KEY_DEFAULTKEY) { in vnt_set_keymode()
65 switch (key_type) { in vnt_set_keymode()
85 key_mode |= key_type; in vnt_set_keymode()
/kernel/linux/linux-5.10/fs/ubifs/
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 …]
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()
483 int key_type = key_type_flash(c, dent->key); in ubifs_validate_entry() local
489 (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || in ubifs_validate_entry()
491 ubifs_err(c, "bad %s node", key_type == UBIFS_DENT_KEY ? in ubifs_validate_entry()
496 if (key_type != UBIFS_DENT_KEY && key_type != UBIFS_XENT_KEY) { in ubifs_validate_entry()
497 ubifs_err(c, "bad key type %d", key_type); in ubifs_validate_entry()
Dtnc_misc.c327 switch (key_type(c, &zbr->key)) { in read_znode()
335 i, key_type(c, &zbr->key)); in read_znode()
343 type = key_type(c, &zbr->key); in read_znode()
465 int err, type = key_type(c, key); in ubifs_tnc_read_node()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dcrypto.c9 u32 key_type, u32 *p_key_id) in mlx5_create_encryption_key() argument
44 MLX5_SET(encryption_key_obj, obj, key_type, key_type); in mlx5_create_encryption_key()
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Drestrict.c71 const struct key_type *type, in restrict_link_by_signature()
119 const struct key_type *type, in key_or_keyring_common()
231 const struct key_type *type, in restrict_link_by_key_or_keyring()
258 const struct key_type *type, in restrict_link_by_key_or_keyring_chain()
/kernel/linux/linux-5.10/include/keys/
Duser-type.h33 extern struct key_type key_type_user;
34 extern struct key_type key_type_logon;
Dsystem_keyring.h16 const struct key_type *type,
27 const struct key_type *type,
Dceph-type.h7 extern struct key_type key_type_ceph;
Ddns_resolver-type.h13 extern struct key_type key_type_dns_resolver;
Dencrypted-type.h33 extern struct key_type key_type_encrypted;
/kernel/linux/linux-5.10/drivers/staging/vt6655/
Dkey.c21 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument
37 if (key_type != VNT_KEY_DEFAULTKEY) { in vnt_set_keymode()
49 switch (key_type) { in vnt_set_keymode()
/kernel/linux/linux-5.10/kernel/bpf/
Dlocal_storage.c360 const struct btf_type *key_type, in cgroup_storage_check_btf() argument
378 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_STRUCT || in cgroup_storage_check_btf()
379 BTF_INFO_VLEN(key_type->info) != 2) in cgroup_storage_check_btf()
385 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf()
387 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
396 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
405 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_INT) in cgroup_storage_check_btf()
408 int_data = *(u32 *)(key_type + 1); in cgroup_storage_check_btf()
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/
Dcptvf_algs.c122 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
250 ctx->key_type = AES_128_BIT; in cvm_xts_setkey()
253 ctx->key_type = AES_256_BIT; in cvm_xts_setkey()
268 ctx->key_type = AES_128_BIT; in cvm_validate_keylen()
271 ctx->key_type = AES_192_BIT; in cvm_validate_keylen()
274 ctx->key_type = AES_256_BIT; in cvm_validate_keylen()
281 ctx->key_type = 0; in cvm_validate_keylen()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
Dcore.c1511 u8 key_type = NO_ENCRYPTION; in rtl_op_set_key() local
1542 key_type = WEP40_ENCRYPTION; in rtl_op_set_key()
1547 key_type = WEP104_ENCRYPTION; in rtl_op_set_key()
1550 key_type = TKIP_ENCRYPTION; in rtl_op_set_key()
1554 key_type = AESCCMP_ENCRYPTION; in rtl_op_set_key()
1561 key_type = AESCMAC_ENCRYPTION; in rtl_op_set_key()
1571 if (key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1572 key_type == WEP104_ENCRYPTION || in rtl_op_set_key()
1595 if (!group_key || key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1596 key_type == WEP104_ENCRYPTION) { in rtl_op_set_key()
[all …]
/kernel/linux/linux-5.10/net/bluetooth/
Damp.c178 BT_DBG("conn %p key_type %d", conn, conn->key_type); in phylink_gen_key()
181 if (conn->key_type < 3) { in phylink_gen_key()
182 bt_dev_err(hdev, "legacy key type %d", conn->key_type); in phylink_gen_key()
186 *type = conn->key_type; in phylink_gen_key()
206 if (conn->key_type == HCI_LK_DEBUG_COMBINATION) { in phylink_gen_key()
453 &cp.key_type)) { in amp_create_phylink()
492 &cp.key_type)) { in amp_accept_phylink()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c165 enum nl80211_key_type key_type = 0; in rtw_handle_tkip_mic_err() local
187 key_type |= NL80211_KEYTYPE_GROUP; in rtw_handle_tkip_mic_err()
189 key_type |= NL80211_KEYTYPE_PAIRWISE; in rtw_handle_tkip_mic_err()
192 cfg80211_michael_mic_failure(padapter->pnetdev, (u8 *)&pmlmepriv->assoc_bssid[0], key_type, -1, in rtw_handle_tkip_mic_err()
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.h133 u8 key_type; member
179 u8 key_type; member
/kernel/linux/linux-5.10/fs/cifs/
Dcifs_spnego.h43 extern struct key_type cifs_spnego_key_type;

123456