/linux/include/linux/ |
A D | key.h | 96 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, 340 static inline struct key *request_key(struct key_type *type, in request_key() 414 const struct key_type *type, [all …]
|
A D | key-type.h | 64 struct key_type { struct 164 extern struct key_type key_type_keyring; argument 166 extern int register_key_type(struct key_type *ktype); 167 extern void unregister_key_type(struct key_type *ktype);
|
/linux/security/keys/ |
A D | internal.h | 41 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;
|
A D | gc.c | 31 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()
|
/linux/include/crypto/ |
A D | public_key.h | 56 struct key_type; 60 const struct key_type *type, 65 const struct key_type *type, 70 const struct key_type *type,
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | linked_maps2.c | 9 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/fs/ubifs/ |
A D | gc.c | 119 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() 178 key_type(c, &sa->key) == UBIFS_XENT_KEY); in nondata_nodes_cmp() 180 key_type(c, &sb->key) == UBIFS_XENT_KEY); in nondata_nodes_cmp() 256 key_type(c, &snod->key) == UBIFS_INO_KEY || in sort_nodes() 257 key_type(c, &snod->key) == UBIFS_DENT_KEY || in sort_nodes() 258 key_type(c, &snod->key) == UBIFS_XENT_KEY); in sort_nodes() 275 if (key_type(c, &snod->key) != UBIFS_DATA_KEY) in sort_nodes() [all …]
|
A D | replay.c | 218 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()
|
A D | tnc_misc.c | 327 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() 464 int err, type = key_type(c, key); in ubifs_tnc_read_node()
|
/linux/drivers/staging/vt6656/ |
A D | key.c | 35 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument 51 if (key_type != VNT_KEY_DEFAULTKEY) { in vnt_set_keymode() 63 switch (key_type) { in vnt_set_keymode() 83 key_mode |= key_type; in vnt_set_keymode()
|
/linux/crypto/asymmetric_keys/ |
A D | restrict.c | 71 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() 259 const struct key_type *type, in restrict_link_by_key_or_keyring_chain()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | crypto.c | 9 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/fs/btrfs/ |
A D | verity.c | 103 static int drop_verity_items(struct btrfs_inode *inode, u8 key_type) in drop_verity_items() argument 129 key.type = key_type; in drop_verity_items() 147 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in drop_verity_items() 211 static int write_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in write_key_bytes() argument 237 key.type = key_type; in write_key_bytes() 291 static int read_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in read_key_bytes() argument 316 key.type = key_type; in read_key_bytes() 333 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in read_key_bytes()
|
/linux/kernel/bpf/ |
A D | local_storage.c | 359 const struct btf_type *key_type, in cgroup_storage_check_btf() argument 377 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_STRUCT || in cgroup_storage_check_btf() 378 BTF_INFO_VLEN(key_type->info) != 2) in cgroup_storage_check_btf() 384 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf() 386 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf() 395 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf() 404 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_INT) in cgroup_storage_check_btf() 407 int_data = *(u32 *)(key_type + 1); in cgroup_storage_check_btf()
|
/linux/drivers/staging/vt6655/ |
A D | key.c | 19 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument 35 if (key_type != VNT_KEY_DEFAULTKEY) { in vnt_set_keymode() 47 switch (key_type) { in vnt_set_keymode()
|
/linux/drivers/crypto/cavium/cpt/ |
A D | cptvf_algs.c | 122 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/drivers/staging/rtl8723bs/os_dep/ |
A D | recv_linux.c | 143 enum nl80211_key_type key_type = 0; in rtw_handle_tkip_mic_err() local 165 key_type |= NL80211_KEYTYPE_GROUP; in rtw_handle_tkip_mic_err() 167 key_type |= NL80211_KEYTYPE_PAIRWISE; in rtw_handle_tkip_mic_err() 170 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/ |
A D | core.c | 1530 u8 key_type = NO_ENCRYPTION; in rtl_op_set_key() local 1561 key_type = WEP40_ENCRYPTION; in rtl_op_set_key() 1566 key_type = WEP104_ENCRYPTION; in rtl_op_set_key() 1569 key_type = TKIP_ENCRYPTION; in rtl_op_set_key() 1573 key_type = AESCCMP_ENCRYPTION; in rtl_op_set_key() 1580 key_type = AESCMAC_ENCRYPTION; in rtl_op_set_key() 1590 if (key_type == WEP40_ENCRYPTION || in rtl_op_set_key() 1591 key_type == WEP104_ENCRYPTION || in rtl_op_set_key() 1615 key_type == WEP104_ENCRYPTION) { in rtl_op_set_key() 1631 key_type); in rtl_op_set_key() [all …]
|
/linux/include/keys/ |
A D | user-type.h | 33 extern struct key_type key_type_user; 34 extern struct key_type key_type_logon;
|
A D | system_keyring.h | 16 const struct key_type *type, 34 const struct key_type *type,
|
/linux/net/bluetooth/ |
A D | amp.c | 178 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 %u", 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()
|
/linux/drivers/crypto/marvell/octeontx/ |
A D | otx_cptvf_algs.c | 410 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_skcipher_xts_setkey() 413 ctx->key_type = OTX_CPT_AES_256_BIT; in otx_cpt_skcipher_xts_setkey() 445 ctx->key_type = OTX_CPT_AES_128_BIT; in cpt_aes_setkey() 448 ctx->key_type = OTX_CPT_AES_192_BIT; in cpt_aes_setkey() 451 ctx->key_type = OTX_CPT_AES_256_BIT; in cpt_aes_setkey() 870 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_aead_cbc_aes_sha_setkey() 873 ctx->key_type = OTX_CPT_AES_192_BIT; in otx_cpt_aead_cbc_aes_sha_setkey() 876 ctx->key_type = OTX_CPT_AES_256_BIT; in otx_cpt_aead_cbc_aes_sha_setkey() 943 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_aead_gcm_aes_setkey() 947 ctx->key_type = OTX_CPT_AES_192_BIT; in otx_cpt_aead_gcm_aes_setkey() [all …]
|
A D | otx_cptvf_algs.h | 133 u8 key_type; member 179 u8 key_type; member
|
/linux/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cptvf_algs.c | 425 ctx->key_type = OTX2_CPT_AES_128_BIT; in otx2_cpt_skcipher_xts_setkey() 428 ctx->key_type = OTX2_CPT_AES_192_BIT; in otx2_cpt_skcipher_xts_setkey() 431 ctx->key_type = OTX2_CPT_AES_256_BIT; in otx2_cpt_skcipher_xts_setkey() 463 ctx->key_type = OTX2_CPT_AES_128_BIT; in cpt_aes_setkey() 466 ctx->key_type = OTX2_CPT_AES_192_BIT; in cpt_aes_setkey() 469 ctx->key_type = OTX2_CPT_AES_256_BIT; in cpt_aes_setkey() 925 ctx->key_type = OTX2_CPT_AES_128_BIT; in otx2_cpt_aead_cbc_aes_sha_setkey() 928 ctx->key_type = OTX2_CPT_AES_192_BIT; in otx2_cpt_aead_cbc_aes_sha_setkey() 931 ctx->key_type = OTX2_CPT_AES_256_BIT; in otx2_cpt_aead_cbc_aes_sha_setkey() 995 ctx->key_type = OTX2_CPT_AES_128_BIT; in otx2_cpt_aead_gcm_aes_setkey() [all …]
|
A D | otx2_cptvf_algs.h | 123 u8 key_type; member 170 u8 key_type; member
|