Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 607) sorted by relevance

12345678910>>...25

/linux-4.19.296/include/linux/
Dkey.h38 struct key;
115 static inline key_ref_t make_key_ref(const struct key *key, in make_key_ref() argument
118 return (key_ref_t) ((unsigned long) key | possession); in make_key_ref()
121 static inline struct key *key_ref_to_ptr(const key_ref_t key_ref) in key_ref_to_ptr()
123 return (struct key *) ((unsigned long) key_ref & ~1UL); in key_ref_to_ptr()
131 typedef int (*key_restrict_link_func_t)(struct key *dest_keyring,
134 struct key *restriction_key);
138 struct key *key; member
155 struct key { struct
237 extern struct key *key_alloc(struct key_type *type,
[all …]
Djump_label.h81 #define STATIC_KEY_CHECK_USE(key) WARN(!static_key_initialized, \ argument
83 __func__, (key))
136 static __always_inline bool static_key_false(struct static_key *key) in static_key_false() argument
138 return arch_static_branch(key, false); in static_key_false()
141 static __always_inline bool static_key_true(struct static_key *key) in static_key_true() argument
143 return !arch_static_branch(key, true); in static_key_true()
158 extern void static_key_slow_inc(struct static_key *key);
159 extern void static_key_slow_dec(struct static_key *key);
160 extern void static_key_slow_inc_cpuslocked(struct static_key *key);
161 extern void static_key_slow_dec_cpuslocked(struct static_key *key);
[all …]
Dkey-type.h41 typedef int (*request_key_actor_t)(struct key *auth_key, void *aux);
51 bool (*cmp)(const struct key *key,
91 int (*instantiate)(struct key *key, struct key_preparsed_payload *prep);
98 int (*update)(struct key *key, struct key_preparsed_payload *prep);
113 void (*revoke)(struct key *key);
116 void (*destroy)(struct key *key);
119 void (*describe)(const struct key *key, struct seq_file *p);
128 long (*read)(const struct key *key, char *buffer, size_t buflen);
158 extern int key_payload_reserve(struct key *key, size_t datalen);
159 extern int key_instantiate_and_link(struct key *key,
[all …]
Dsiphash.h21 u64 key[2]; member
24 static inline bool siphash_key_is_zero(const siphash_key_t *key) in siphash_key_is_zero() argument
26 return !(key->key[0] | key->key[1]); in siphash_key_is_zero()
29 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key);
30 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key);
32 u64 siphash_1u64(const u64 a, const siphash_key_t *key);
33 u64 siphash_2u64(const u64 a, const u64 b, const siphash_key_t *key);
35 const siphash_key_t *key);
37 const siphash_key_t *key);
38 u64 siphash_1u32(const u32 a, const siphash_key_t *key);
[all …]
Djump_label_ratelimit.h10 struct static_key key; member
15 extern void static_key_slow_dec_deferred(struct static_key_deferred *key);
16 extern void static_key_deferred_flush(struct static_key_deferred *key);
18 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl);
22 struct static_key key; member
24 static inline void static_key_slow_dec_deferred(struct static_key_deferred *key) in static_key_slow_dec_deferred() argument
26 STATIC_KEY_CHECK_USE(key); in static_key_slow_dec_deferred()
27 static_key_slow_dec(&key->key); in static_key_slow_dec_deferred()
29 static inline void static_key_deferred_flush(struct static_key_deferred *key) in static_key_deferred_flush() argument
31 STATIC_KEY_CHECK_USE(key); in static_key_deferred_flush()
[all …]
Dbtree-type.h38 static inline void *BTREE_FN(lookup)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) in BTREE_FN()
40 unsigned long _key = key; in BTREE_FN()
44 static inline int BTREE_FN(insert)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, in BTREE_FN()
47 unsigned long _key = key; in BTREE_FN()
51 static inline int BTREE_FN(update)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key, in BTREE_FN()
54 unsigned long _key = key; in BTREE_FN()
58 static inline void *BTREE_FN(remove)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE key) in BTREE_FN()
60 unsigned long _key = key; in BTREE_FN()
64 static inline void *BTREE_FN(last)(BTREE_TYPE_HEAD *head, BTREE_KEYTYPE *key) in BTREE_FN()
69 *key = _key; in BTREE_FN()
[all …]
Dbtree.h101 unsigned long *key);
116 unsigned long *key, void *val, gfp_t gfp);
129 unsigned long *key, void *val);
141 unsigned long *key);
173 unsigned long *key);
187 unsigned long *key);
194 unsigned long *key, size_t index,
202 unsigned long *key,
216 #define btree_for_each_safel(head, key, val) \ argument
217 for (val = btree_lastl(head, &key); \
[all …]
/linux-4.19.296/crypto/
Dtestmgr.h37 const char *key; member
66 const char *key; member
82 const char *key; member
101 const char *key; member
128 const unsigned char *key; member
160 .key =
190 .key =
234 .key =
299 .key =
343 .key =
[all …]
Drsa_helper.c24 struct rsa_key *key = context; in rsa_get_n() local
45 key->n = value; in rsa_get_n()
46 key->n_sz = vlen; in rsa_get_n()
54 struct rsa_key *key = context; in rsa_get_e() local
57 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e()
60 key->e = value; in rsa_get_e()
61 key->e_sz = vlen; in rsa_get_e()
69 struct rsa_key *key = context; in rsa_get_d() local
72 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d()
75 key->d = value; in rsa_get_d()
[all …]
Dcast6_generic.c100 static inline void W(u32 *key, unsigned int i) in W() argument
103 key[6] ^= F1(key[7], Tr[i % 4][0], Tm[i][0]); in W()
104 key[5] ^= F2(key[6], Tr[i % 4][1], Tm[i][1]); in W()
105 key[4] ^= F3(key[5], Tr[i % 4][2], Tm[i][2]); in W()
106 key[3] ^= F1(key[4], Tr[i % 4][3], Tm[i][3]); in W()
107 key[2] ^= F2(key[3], Tr[i % 4][4], Tm[i][4]); in W()
108 key[1] ^= F3(key[2], Tr[i % 4][5], Tm[i][5]); in W()
109 key[0] ^= F1(key[1], Tr[i % 4][6], Tm[i][6]); in W()
110 key[7] ^= F2(key[0], Tr[i % 4][7], Tm[i][7]); in W()
117 u32 key[8]; in __cast6_setkey() local
[all …]
/linux-4.19.296/lib/
Dtest_static_keys.c45 struct static_key *key; member
49 #define test_key_func(key, branch) \ argument
50 static bool key ## _ ## branch(void) \
52 return branch(&key); \
55 static void invert_key(struct static_key *key) in invert_key() argument
57 if (static_key_enabled(key)) in invert_key()
58 static_key_disable(key); in invert_key()
60 static_key_enable(key); in invert_key()
69 if (previous != keys[i].key) { in invert_keys()
70 invert_key(keys[i].key); in invert_keys()
[all …]
/linux-4.19.296/drivers/s390/crypto/
Dzcrypt_cca_key.h117 } __packed *key = p; in zcrypt_type6_mex_key_en() local
130 memset(key, 0, sizeof(*key)); in zcrypt_type6_mex_key_en()
132 key->pubHdr = static_pub_hdr; in zcrypt_type6_mex_key_en()
133 key->pubSec = static_pub_sec; in zcrypt_type6_mex_key_en()
136 temp = key->exponent; in zcrypt_type6_mex_key_en()
151 key->pubSec.modulus_bit_len = 8 * mex->inputdatalength; in zcrypt_type6_mex_key_en()
152 key->pubSec.modulus_byte_len = mex->inputdatalength; in zcrypt_type6_mex_key_en()
153 key->pubSec.exponent_len = mex->inputdatalength - i; in zcrypt_type6_mex_key_en()
154 key->pubSec.section_length = sizeof(key->pubSec) + in zcrypt_type6_mex_key_en()
156 key->pubHdr.token_length = in zcrypt_type6_mex_key_en()
[all …]
/linux-4.19.296/fs/ubifs/
Dkey.h103 union ubifs_key *key, ino_t inum) in ino_key_init() argument
105 key->u32[0] = inum; in ino_key_init()
106 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
118 union ubifs_key *key = k; in ino_key_init_flash() local
120 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
121 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
132 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
134 key->u32[0] = inum; in lowest_ino_key()
135 key->u32[1] = 0; in lowest_ino_key()
145 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
[all …]
/linux-4.19.296/fs/nilfs2/
Ddirect.c24 nilfs_direct_get_ptr(const struct nilfs_bmap *direct, __u64 key) in nilfs_direct_get_ptr() argument
26 return le64_to_cpu(*(nilfs_direct_dptrs(direct) + key)); in nilfs_direct_get_ptr()
30 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument
32 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr()
36 __u64 key, int level, __u64 *ptrp) in nilfs_direct_lookup() argument
40 if (key > NILFS_DIRECT_KEY_MAX || level != 1) in nilfs_direct_lookup()
42 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup()
51 __u64 key, __u64 *ptrp, in nilfs_direct_lookup_contig() argument
59 if (key > NILFS_DIRECT_KEY_MAX) in nilfs_direct_lookup_contig()
61 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig()
[all …]
/linux-4.19.296/fs/btrfs/
Dfree-space-tree.c29 num_bitmaps = div_u64(cache->key.offset + bitmap_range - 1, in set_free_space_tree_thresholds()
52 struct btrfs_key key; in add_new_free_space_info() local
56 key.objectid = block_group->key.objectid; in add_new_free_space_info()
57 key.type = BTRFS_FREE_SPACE_INFO_KEY; in add_new_free_space_info()
58 key.offset = block_group->key.offset; in add_new_free_space_info()
60 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
84 struct btrfs_key key; in search_free_space_info() local
87 key.objectid = block_group->key.objectid; in search_free_space_info()
88 key.type = BTRFS_FREE_SPACE_INFO_KEY; in search_free_space_info()
89 key.offset = block_group->key.offset; in search_free_space_info()
[all …]
Dexport.c67 struct btrfs_key key; in btrfs_get_dentry() local
74 key.objectid = root_objectid; in btrfs_get_dentry()
75 key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_get_dentry()
76 key.offset = (u64)-1; in btrfs_get_dentry()
80 root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_get_dentry()
86 key.objectid = objectid; in btrfs_get_dentry()
87 key.type = BTRFS_INODE_ITEM_KEY; in btrfs_get_dentry()
88 key.offset = 0; in btrfs_get_dentry()
90 inode = btrfs_iget(sb, &key, root, NULL); in btrfs_get_dentry()
163 struct btrfs_key key; in btrfs_get_parent() local
[all …]
/linux-4.19.296/include/keys/
Duser-type.h44 extern int user_update(struct key *key, struct key_preparsed_payload *prep);
45 extern void user_revoke(struct key *key);
46 extern void user_destroy(struct key *key);
47 extern void user_describe(const struct key *user, struct seq_file *m);
48 extern long user_read(const struct key *key, char *buffer, size_t buflen);
50 static inline const struct user_key_payload *user_key_payload_rcu(const struct key *key) in user_key_payload_rcu() argument
52 return (struct user_key_payload *)dereference_key_rcu(key); in user_key_payload_rcu()
55 static inline struct user_key_payload *user_key_payload_locked(const struct key *key) in user_key_payload_locked() argument
57 return (struct user_key_payload *)dereference_key_locked((struct key *)key); in user_key_payload_locked()
/linux-4.19.296/crypto/asymmetric_keys/
Drestrict.c74 int restrict_link_by_signature(struct key *dest_keyring, in restrict_link_by_signature()
77 struct key *trust_keyring) in restrict_link_by_signature()
80 struct key *key; in restrict_link_by_signature() local
101 key = find_asymmetric_key(trust_keyring, in restrict_link_by_signature()
104 if (IS_ERR(key)) in restrict_link_by_signature()
107 if (use_builtin_keys && !test_bit(KEY_FLAG_BUILTIN, &key->flags)) in restrict_link_by_signature()
110 ret = verify_signature(key, sig); in restrict_link_by_signature()
111 key_put(key); in restrict_link_by_signature()
122 static int key_or_keyring_common(struct key *dest_keyring, in key_or_keyring_common()
125 struct key *trusted, bool check_dest) in key_or_keyring_common()
[all …]
Dpkcs7_trust.c28 struct key *trust_keyring) in pkcs7_validate_trust_one()
32 struct key *key; in pkcs7_validate_trust_one() local
54 key = find_asymmetric_key(trust_keyring, in pkcs7_validate_trust_one()
56 if (!IS_ERR(key)) { in pkcs7_validate_trust_one()
63 sinfo->index, x509->index, key_serial(key)); in pkcs7_validate_trust_one()
66 if (key == ERR_PTR(-ENOMEM)) in pkcs7_validate_trust_one()
86 key = find_asymmetric_key(trust_keyring, in pkcs7_validate_trust_one()
90 if (!IS_ERR(key)) { in pkcs7_validate_trust_one()
93 sinfo->index, x509->index, key_serial(key)); in pkcs7_validate_trust_one()
96 if (PTR_ERR(key) != -ENOKEY) in pkcs7_validate_trust_one()
[all …]
Dasymmetric_type.c49 struct key *find_asymmetric_key(struct key *keyring, in find_asymmetric_key()
54 struct key *key; in find_asymmetric_key() local
106 key = key_ref_to_ptr(ref); in find_asymmetric_key()
108 const struct asymmetric_key_ids *kids = asymmetric_key_ids(key); in find_asymmetric_key()
120 pr_devel("<==%s() = 0 [%x]\n", __func__, key_serial(key)); in find_asymmetric_key()
121 return key; in find_asymmetric_key()
124 key_put(key); in find_asymmetric_key()
250 static bool asymmetric_key_cmp(const struct key *key, in asymmetric_key_cmp() argument
253 const struct asymmetric_key_ids *kids = asymmetric_key_ids(key); in asymmetric_key_cmp()
263 static bool asymmetric_key_cmp_partial(const struct key *key, in asymmetric_key_cmp_partial() argument
[all …]
/linux-4.19.296/fs/nfs/
Dfscache.c58 struct nfs_server_key key; in nfs_fscache_get_client_cookie() local
59 uint16_t len = sizeof(key.hdr); in nfs_fscache_get_client_cookie()
61 memset(&key, 0, sizeof(key)); in nfs_fscache_get_client_cookie()
62 key.hdr.nfsversion = clp->rpc_ops->version; in nfs_fscache_get_client_cookie()
63 key.hdr.minorversion = clp->cl_minorversion; in nfs_fscache_get_client_cookie()
64 key.hdr.family = clp->cl_addr.ss_family; in nfs_fscache_get_client_cookie()
68 key.hdr.port = sin->sin_port; in nfs_fscache_get_client_cookie()
69 key.ipv4_addr = sin->sin_addr; in nfs_fscache_get_client_cookie()
70 len += sizeof(key.ipv4_addr); in nfs_fscache_get_client_cookie()
74 key.hdr.port = sin6->sin6_port; in nfs_fscache_get_client_cookie()
[all …]
Ddns_resolve.c75 struct nfs_dns_ent *key; in nfs_dns_ent_update() local
78 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_update()
80 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
81 new->addrlen = key->addrlen; in nfs_dns_ent_update()
88 struct nfs_dns_ent *key; in nfs_dns_ent_init() local
91 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_init()
94 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
96 new->namelen = key->namelen; in nfs_dns_ent_init()
126 static unsigned int nfs_dns_hash(const struct nfs_dns_ent *key) in nfs_dns_hash() argument
128 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash()
[all …]
/linux-4.19.296/fs/afs/
Dsecurity.c27 struct key *afs_request_key(struct afs_cell *cell) in afs_request_key()
29 struct key *key; in afs_request_key() local
34 key = request_key(&key_type_rxrpc, cell->anonymous_key->description, in afs_request_key()
36 if (IS_ERR(key)) { in afs_request_key()
37 if (PTR_ERR(key) != -ENOKEY) { in afs_request_key()
38 _leave(" = %ld", PTR_ERR(key)); in afs_request_key()
39 return key; in afs_request_key()
47 _leave(" = {%x} [auth]", key_serial(key)); in afs_request_key()
48 return key; in afs_request_key()
62 key_put(permits->permits[i].key); in afs_permits_rcu()
[all …]
/linux-4.19.296/fs/btrfs/tests/
Dextent-buffer-tests.c25 struct btrfs_key key; in test_btrfs_split_item() local
59 key.objectid = 0; in test_btrfs_split_item()
60 key.type = BTRFS_EXTENT_CSUM_KEY; in test_btrfs_split_item()
61 key.offset = 0; in test_btrfs_split_item()
63 setup_items_for_insert(root, path, &key, &value_len, value_len, in test_btrfs_split_item()
69 key.offset = 3; in test_btrfs_split_item()
76 ret = btrfs_split_item(NULL, root, path, &key, 17); in test_btrfs_split_item()
86 btrfs_item_key_to_cpu(eb, &key, 0); in test_btrfs_split_item()
87 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
88 key.offset != 0) { in test_btrfs_split_item()
[all …]
/linux-4.19.296/fs/cachefiles/
Dkey.c41 char *key; in cachefiles_cook_key() local
81 key = kmalloc(max, cachefiles_gfp); in cachefiles_cook_key()
82 if (!key) in cachefiles_cook_key()
88 sprintf(key, "@%02x%c+", (unsigned) csum, 0); in cachefiles_cook_key()
96 key[len + 1] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key()
98 key[len] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key()
104 key[len++] = '\0'; in cachefiles_cook_key()
106 key[len++] = '+'; in cachefiles_cook_key()
110 key[len++] = *raw++; in cachefiles_cook_key()
123 key[len++] = '\0'; in cachefiles_cook_key()
[all …]

12345678910>>...25