Home
last modified time | relevance | path

Searched refs:hash_len (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/certs/
Dblacklist.c146 static char *get_raw_hash(const u8 *hash, size_t hash_len, in get_raw_hash() argument
166 buffer = kmalloc(type_len + 1 + hash_len * 2 + 1, GFP_KERNEL); in get_raw_hash()
172 bin2hex(p, hash, hash_len); in get_raw_hash()
173 p += hash_len * 2; in get_raw_hash()
201 int mark_hash_blacklisted(const u8 *hash, size_t hash_len, in mark_hash_blacklisted() argument
207 buffer = get_raw_hash(hash, hash_len, hash_type); in mark_hash_blacklisted()
221 int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument
228 buffer = get_raw_hash(hash, hash_len, hash_type); in is_hash_blacklisted()
243 int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
245 if (is_hash_blacklisted(hash, hash_len, BLACKLIST_HASH_BINARY) == in is_binary_blacklisted()
/linux-6.1.9/include/keys/
Dsystem_keyring.h64 extern int mark_hash_blacklisted(const u8 *hash, size_t hash_len,
66 extern int is_hash_blacklisted(const u8 *hash, size_t hash_len,
68 extern int is_binary_blacklisted(const u8 *hash, size_t hash_len);
70 static inline int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument
76 static inline int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
/linux-6.1.9/tools/perf/util/
Ddemangle-rust.c47 static const size_t hash_len = 16; variable
85 if (len <= hash_prefix_len + hash_len) in rust_is_mangled()
89 len_without_hash = len - (hash_prefix_len + hash_len); in rust_is_mangled()
112 for (end = str + hash_len; str < end; str++) in is_prefixed_hash()
193 end = sym + strlen(sym) - (hash_prefix_len + hash_len); in rust_demangle_sym()
/linux-6.1.9/drivers/md/
Ddm-ima.c344 table->md->ima.inactive_table.hash_len = strlen(digest_buf); in dm_ima_measure_on_table_load()
396 md->ima.active_table.hash_len = 0; in dm_ima_measure_on_device_resume()
408 md->ima.active_table.hash_len = md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_resume()
410 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_device_resume()
438 md->ima.active_table.hash_len); in dm_ima_measure_on_device_resume()
439 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_resume()
534 md->ima.active_table.hash_len); in dm_ima_measure_on_device_remove()
535 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_remove()
548 md->ima.inactive_table.hash_len); in dm_ima_measure_on_device_remove()
549 l += md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_remove()
[all …]
Ddm-ima.h47 unsigned int hash_len; member
/linux-6.1.9/drivers/nvme/host/
Dauth.c31 size_t hash_len; member
177 chap->hash_len = 0; in nvme_auth_process_dhchap_challenge()
207 chap->hash_len = data->hl; in nvme_auth_process_dhchap_challenge()
277 memcpy(chap->c1, data->cval, chap->hash_len); in nvme_auth_process_dhchap_challenge()
285 memcpy(chap->ctrl_key, data->cval + chap->hash_len, in nvme_auth_process_dhchap_challenge()
300 size += 2 * chap->hash_len; in nvme_auth_set_dhchap_reply_data()
314 data->hl = chap->hash_len; in nvme_auth_set_dhchap_reply_data()
316 memcpy(data->rval, chap->response, chap->hash_len); in nvme_auth_set_dhchap_reply_data()
318 get_random_bytes(chap->c2, chap->hash_len); in nvme_auth_set_dhchap_reply_data()
321 memcpy(data->rval + chap->hash_len, chap->c2, in nvme_auth_set_dhchap_reply_data()
[all …]
/linux-6.1.9/fs/ubifs/
Dauth.c49 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac()
140 int len = min(c->hash_len, 20); in ubifs_bad_hash()
141 int cropped = len != c->hash_len; in ubifs_bad_hash()
310 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication()
311 if (c->hash_len > UBIFS_HASH_ARR_SZ) { in ubifs_init_authentication()
313 c->auth_hash_name, c->hash_len, UBIFS_HASH_ARR_SZ); in ubifs_init_authentication()
Dmisc.h188 return UBIFS_IDX_NODE_SZ + (UBIFS_BRANCH_SZ + c->key_len + c->hash_len) in ubifs_idx_node_sz()
204 (UBIFS_BRANCH_SZ + c->key_len + c->hash_len) * bnum); in ubifs_idx_branch()
Dubifs.h1372 int hash_len; member
1608 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash()
1674 memcpy(to, from, c->hash_len); in ubifs_copy_hash()
Dreplay.c616 c->hash_len, hmac); in authenticate_sleb()
/linux-6.1.9/drivers/nvme/target/
Dfabrics-cmd-auth.c360 int hash_len = nvme_auth_hmac_hash_len(ctrl->shash_id); in nvmet_auth_challenge() local
361 int data_size = sizeof(*d) + hash_len; in nvmet_auth_challenge()
376 data->hl = hash_len; in nvmet_auth_challenge()
399 int hash_len = nvme_auth_hmac_hash_len(ctrl->shash_id); in nvmet_auth_success1() local
406 data->hl = hash_len; in nvmet_auth_success1()
Dnvmet.h714 unsigned int hash_len);
716 unsigned int hash_len);
/linux-6.1.9/drivers/crypto/ccree/
Dcc_hash.c98 unsigned int hash_len; member
155 ctx->hash_len); in cc_init_req()
159 ctx->hash_len); in cc_init_req()
396 ctx->hash_len); in cc_fin_hmac()
489 ctx->hash_len, NS_BIT); in cc_hash_digest()
491 set_din_const(&desc[idx], 0, ctx->hash_len); in cc_hash_digest()
508 ctx->hash_len, NS_BIT, 0); in cc_hash_digest()
546 ctx->hash_len, NS_BIT); in cc_restore_hash()
617 ctx->hash_len, NS_BIT, 1); in cc_hash_update()
681 ctx->hash_len, NS_BIT, 0); in cc_do_finup()
[all …]
Dcc_aead.c58 unsigned int hash_len; member
199 ctx->hash_len = cc_get_aead_hash_len(tfm); in cc_aead_init()
322 set_din_const(&desc[idx], 0, ctx->hash_len); in hmac_setkey()
468 set_din_const(&desc[idx], 0, ctx->hash_len); in cc_get_plain_hmac_key()
1013 ctx->hash_len); in cc_set_hmac_desc()
1112 ctx->hash_len); in cc_proc_scheme_desc()
1142 ctx->hash_len); in cc_proc_scheme_desc()
/linux-6.1.9/fs/cifs/
Dcifsencrypt.c514 unsigned int hash_len; in CalcNTLMv2_response() local
517 hash_len = ses->auth_key.len - (CIFS_SESS_KEY_SIZE + in CalcNTLMv2_response()
546 ntlmv2->challenge.key, hash_len); in CalcNTLMv2_response()
/linux-6.1.9/fs/
Ddcache.c1910 q.hash_len = hashlen_string(parent, name); in d_alloc_name()
2282 u64 hashlen = name->hash_len; in __d_lookup_rcu_op_compare()
2348 u64 hashlen = name->hash_len; in __d_lookup_rcu()
2402 if (dentry->d_name.hash_len != hashlen) in __d_lookup_rcu()
2907 swap(dentry->d_name.hash_len, target->d_name.hash_len); in swap_names()
2922 dentry->d_name.hash_len = target->d_name.hash_len; in copy_name()
Dnamei.c2258 u64 hash_len; in link_path_walk() local
2266 hash_len = hash_name(nd->path.dentry, name); in link_path_walk()
2269 if (name[0] == '.') switch (hashlen_len(hash_len)) { in link_path_walk()
2283 struct qstr this = { { .hash_len = hash_len }, .name = name }; in link_path_walk()
2287 hash_len = this.hash_len; in link_path_walk()
2292 nd->last.hash_len = hash_len; in link_path_walk()
2296 name += hashlen_len(hash_len); in link_path_walk()
/linux-6.1.9/include/linux/
Ddcache.h54 u64 hash_len; member
/linux-6.1.9/drivers/crypto/
Dn2_core.c215 unsigned int hash_len, in control_word_base() argument
234 if (hash_len) in control_word_base()
235 word |= ((u64) (hash_len - 1)) << CONTROL_HASH_LEN_SHIFT; in control_word_base()
/linux-6.1.9/fs/exfat/
Dnamei.c741 WARN_ON(alias->d_name.hash_len != in exfat_lookup()
742 dentry->d_name.hash_len); in exfat_lookup()
/linux-6.1.9/security/selinux/
Dhooks.c3537 q.hash_len = hashlen_string(kn_dir, kn->name); in selinux_kernfs_init_security()