Home
last modified time | relevance | path

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

123456

/Linux-v5.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,
315 extern struct key *request_key_tag(struct key_type *type,
320 extern struct key *request_key_rcu(struct key_type *type,
324 extern struct key *request_key_with_auxdata(struct key_type *type,
339 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);
/Linux-v5.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,
/Linux-v5.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 = {
/Linux-v5.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()
/Linux-v5.10/fs/ubifs/
Dgc.c118 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp()
119 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DATA_KEY); in data_nodes_cmp()
162 ubifs_assert(c, key_type(c, &sa->key) != UBIFS_DATA_KEY && in nondata_nodes_cmp()
163 key_type(c, &sb->key) != UBIFS_DATA_KEY); in nondata_nodes_cmp()
176 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp()
177 key_type(c, &sa->key) == UBIFS_XENT_KEY); in nondata_nodes_cmp()
178 ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DENT_KEY || in nondata_nodes_cmp()
179 key_type(c, &sb->key) == UBIFS_XENT_KEY); in nondata_nodes_cmp()
254 ubifs_assert(c, key_type(c, &snod->key) == UBIFS_DATA_KEY || in sort_nodes()
255 key_type(c, &snod->key) == UBIFS_INO_KEY || in sort_nodes()
[all …]
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()
/Linux-v5.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()
/Linux-v5.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()
/Linux-v5.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;
/Linux-v5.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()
/Linux-v5.10/kernel/bpf/
Dlocal_storage.c362 const struct btf_type *key_type, in cgroup_storage_check_btf() argument
380 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_STRUCT || in cgroup_storage_check_btf()
381 BTF_INFO_VLEN(key_type->info) != 2) in cgroup_storage_check_btf()
387 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf()
389 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
398 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
407 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_INT) in cgroup_storage_check_btf()
410 int_data = *(u32 *)(key_type + 1); in cgroup_storage_check_btf()
/Linux-v5.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()
/Linux-v5.10/drivers/net/wireless/realtek/rtlwifi/
Dcore.c1509 u8 key_type = NO_ENCRYPTION; in rtl_op_set_key() local
1540 key_type = WEP40_ENCRYPTION; in rtl_op_set_key()
1545 key_type = WEP104_ENCRYPTION; in rtl_op_set_key()
1548 key_type = TKIP_ENCRYPTION; in rtl_op_set_key()
1552 key_type = AESCCMP_ENCRYPTION; in rtl_op_set_key()
1559 key_type = AESCMAC_ENCRYPTION; in rtl_op_set_key()
1569 if (key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1570 key_type == WEP104_ENCRYPTION || in rtl_op_set_key()
1593 if (!group_key || key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1594 key_type == WEP104_ENCRYPTION) { in rtl_op_set_key()
[all …]
/Linux-v5.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()
450 &cp.key_type)) { in amp_create_phylink()
489 &cp.key_type)) { in amp_accept_phylink()
/Linux-v5.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()
/Linux-v5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.h133 u8 key_type; member
179 u8 key_type; member
Dotx_cptvf_algs.c272 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
409 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_skcipher_xts_setkey()
412 ctx->key_type = OTX_CPT_AES_256_BIT; in otx_cpt_skcipher_xts_setkey()
444 ctx->key_type = OTX_CPT_AES_128_BIT; in cpt_aes_setkey()
447 ctx->key_type = OTX_CPT_AES_192_BIT; in cpt_aes_setkey()
450 ctx->key_type = OTX_CPT_AES_256_BIT; in cpt_aes_setkey()
869 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_aead_cbc_aes_sha_setkey()
872 ctx->key_type = OTX_CPT_AES_192_BIT; in otx_cpt_aead_cbc_aes_sha_setkey()
875 ctx->key_type = OTX_CPT_AES_256_BIT; in otx_cpt_aead_cbc_aes_sha_setkey()
942 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_aead_gcm_aes_setkey()
[all …]
/Linux-v5.10/fs/cifs/
Dcifs_spnego.h43 extern struct key_type cifs_spnego_key_type;

123456