| /linux/include/linux/ |
| H A D | key.h | 102 struct key_type; 129 struct key_type *type; 172 const struct key_type *type, 179 struct key_type *keytype; 251 struct key_type *type; /* type of key */ 284 extern struct key *key_alloc(struct key_type *type, 323 extern struct key *request_key_tag(struct key_type *type, 328 extern struct key *request_key_rcu(struct key_type *type, 332 extern struct key *request_key_with_auxdata(struct key_type *type, 347 static inline struct key *request_key(struct key_type *type, in request_key() [all …]
|
| H A D | key-type.h | 64 struct key_type { struct 168 extern struct key_type key_type_keyring; argument 170 extern int register_key_type(struct key_type *ktype); 171 extern void unregister_key_type(struct key_type *ktype);
|
| /linux/include/keys/ |
| H A D | system_keyring.h | 23 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 D | user-type.h | 33 extern struct key_type key_type_user; 34 extern struct key_type key_type_logon;
|
| H A D | ceph-type.h | 7 extern struct key_type key_type_ceph;
|
| H A D | dns_resolver-type.h | 13 extern struct key_type key_type_dns_resolver;
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H 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/security/keys/ |
| H 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); 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 D | gc.c | 31 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 D | user_defined.c | 23 struct key_type key_type_user = { 43 struct key_type key_type_logon = {
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | npc.c | 1742 int npc_mcam_idx_2_key_type(struct rvu *rvu, u16 mcam_idx, u8 *key_type) in npc_mcam_idx_2_key_type() argument 1771 *key_type = sb->key_type; in npc_mcam_idx_2_key_type() 1784 if (sb->key_type == NPC_MCAM_KEY_X4 && in npc_subbank_idx_2_mcam_idx() 1795 if (sb->key_type == NPC_MCAM_KEY_X2 && in npc_subbank_idx_2_mcam_idx() 1859 int key_type, int sidx, in __npc_subbank_contig_alloc() argument 1926 int key_type, int sidx, in __npc_subbank_non_contig_alloc() argument 2046 sb->key_type = 0; in __npc_subbank_mark_free() 2083 int key_type) in __npc_subbank_mark_used() argument 2088 sb->key_type = key_type; in __npc_subbank_mark_used() 2089 if (key_type == NPC_MCAM_KEY_X4) in __npc_subbank_mark_used() [all …]
|
| /linux/crypto/asymmetric_keys/ |
| H A D | restrict.c | 74 const struct key_type *type, in restrict_link_by_signature() 134 const struct key_type *type, in restrict_link_by_ca() 175 const struct key_type *type, in restrict_link_by_digsig() 210 const struct key_type *type, in key_or_keyring_common() 332 const struct key_type *type, in restrict_link_by_key_or_keyring() 360 const struct key_type *type, in restrict_link_by_key_or_keyring_chain()
|
| /linux/certs/ |
| H A D | system_keyring.c | 46 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 D | verity.c | 122 static int drop_verity_items(struct btrfs_inode *inode, u8 key_type) in drop_verity_items() argument 146 key.type = key_type; in drop_verity_items() 164 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in drop_verity_items() 225 static int write_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in write_key_bytes() argument 249 key.type = key_type; in write_key_bytes() 302 static int read_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in read_key_bytes() argument 327 key.type = key_type; in read_key_bytes() 344 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in read_key_bytes()
|
| /linux/security/landlock/ |
| H A D | domain.c | 224 const enum landlock_key_type key_type) in landlock_init_layer_masks() argument 229 switch (key_type) { in landlock_init_layer_masks() 271 const enum landlock_key_type key_type) in merge_tree() argument 280 src_root = landlock_get_rule_root(&src->rules, key_type); in merge_tree() 292 .type = key_type, in merge_tree() 351 const enum landlock_key_type key_type) in inherit_tree() argument 359 parent_root = landlock_get_rule_root(&parent->rules, key_type); in inherit_tree() 368 .type = key_type, in inherit_tree()
|
| H A D | ruleset.c | 98 static bool is_object_pointer(const enum landlock_key_type key_type) in is_object_pointer() argument 100 switch (key_type) { in is_object_pointer() 155 const enum landlock_key_type key_type) in free_rule() argument 160 if (is_object_pointer(key_type)) in free_rule()
|
| H A D | ruleset.h | 228 const enum landlock_key_type key_type) in landlock_get_rule_root() argument 230 switch (key_type) { in landlock_get_rule_root()
|
| /linux/drivers/crypto/cavium/cpt/ |
| H A D | cptvf_algs.c | 122 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/md/ |
| H A D | dm-inlinecrypt.c | 48 enum blk_crypto_key_type key_type; member 110 struct key_type *type; in inlinecrypt_get_keyring_key() 269 ctx->key_type = BLK_CRYPTO_KEY_TYPE_RAW; in inlinecrypt_ctr_optional() 271 ctx->key_type = BLK_CRYPTO_KEY_TYPE_HW_WRAPPED; in inlinecrypt_ctr_optional() 386 ctx->key_type = BLK_CRYPTO_KEY_TYPE_RAW; in inlinecrypt_ctr() 409 ctx->key_type, cipher->mode_num, in inlinecrypt_ctr() 527 ctx->key_type, ctx->iv_offset, in inlinecrypt_status()
|
| /linux/kernel/bpf/ |
| H A D | local_storage.c | 370 const struct btf_type *key_type, in cgroup_storage_check_btf() argument 388 if (BTF_INFO_KIND(key_type->info) != BTF_KIND_STRUCT || in cgroup_storage_check_btf() 389 BTF_INFO_VLEN(key_type->info) != 2) in cgroup_storage_check_btf() 395 m = (struct btf_member *)(key_type + 1); in cgroup_storage_check_btf() 397 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf() 406 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf() 412 if (!btf_type_is_i64(key_type)) in cgroup_storage_check_btf()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | core.c | 1489 u8 key_type = NO_ENCRYPTION; in rtl_op_set_key() local 1520 key_type = WEP40_ENCRYPTION; in rtl_op_set_key() 1525 key_type = WEP104_ENCRYPTION; in rtl_op_set_key() 1528 key_type = TKIP_ENCRYPTION; in rtl_op_set_key() 1532 key_type = AESCCMP_ENCRYPTION; in rtl_op_set_key() 1539 key_type = AESCMAC_ENCRYPTION; in rtl_op_set_key() 1549 if (key_type == WEP40_ENCRYPTION || in rtl_op_set_key() 1550 key_type == WEP104_ENCRYPTION || in rtl_op_set_key() 1573 if (!group_key || key_type == WEP40_ENCRYPTION || in rtl_op_set_key() 1574 key_type == WEP104_ENCRYPTION) { in rtl_op_set_key() [all …]
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.h | 133 u8 key_type; member 179 u8 key_type; member
|
| H A D | otx_cptvf_algs.c | 274 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 D | otx2_cptvf_algs.h | 124 u8 key_type; member 175 u8 key_type; member
|
| /linux/fs/ubifs/ |
| H A D | tnc_misc.c | 347 switch (key_type(c, &zbr->key)) { in read_znode() 355 i, key_type(c, &zbr->key)); in read_znode() 362 type = key_type(c, &zbr->key); in read_znode() 479 int err, type = key_type(c, key); in ubifs_tnc_read_node()
|