| /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);
|
| H A D | blk-crypto.h | 85 enum blk_crypto_key_type key_type; member 145 enum blk_crypto_key_type key_type,
|
| /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/security/landlock/ |
| H A D | ruleset.c | 93 static bool is_object_pointer(const enum landlock_key_type key_type) in is_object_pointer() argument 95 switch (key_type) { in is_object_pointer() 150 const enum landlock_key_type key_type) in get_root() argument 152 switch (key_type) { in get_root() 168 const enum landlock_key_type key_type) in free_rule() argument 173 if (is_object_pointer(key_type)) in free_rule() 322 const enum landlock_key_type key_type) in merge_tree() argument 332 src_root = get_root(src, key_type); in merge_tree() 344 .type = key_type, in merge_tree() 407 const enum landlock_key_type key_type) in inherit_tree() argument [all …]
|
| /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/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/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/fs/ubifs/ |
| H 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() 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 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() 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 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()
|
| /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 | 108 static int drop_verity_items(struct btrfs_inode *inode, u8 key_type) in drop_verity_items() argument 132 key.type = key_type; in drop_verity_items() 150 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 235 key.type = key_type; in write_key_bytes() 288 static int read_key_bytes(struct btrfs_inode *inode, u8 key_type, u64 offset, in read_key_bytes() argument 313 key.type = key_type; in read_key_bytes() 330 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in read_key_bytes()
|
| /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/block/ |
| H A D | blk-crypto.c | 341 enum blk_crypto_key_type key_type, in blk_crypto_init_key() argument 354 switch (key_type) { in blk_crypto_init_key() 377 blk_key->crypto_cfg.key_type = key_type; in blk_crypto_init_key() 401 cfg->key_type == BLK_CRYPTO_KEY_TYPE_RAW) in blk_crypto_config_supported() 428 if (key->crypto_cfg.key_type != BLK_CRYPTO_KEY_TYPE_RAW) { in blk_crypto_start_using_key()
|
| /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/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | manager-sysfs.c | 161 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()
|